3.2.1 编译 uboot
make uboot-clean
make uboot
3.2.2 编译 kernel
make kernel-clean
make kernel-menuconfig
make kernel -j8
3.2.3 编译 buildroot
make buildroot-clean
make buildroot-distclean
make buildroot-menuconfig
make buildroot -j8
make buildroot-rebuild #局部修改 buildroot 后编译 buildroot 的方法#buildroot 工程所包含的第三方软件位于 buildroot/packages 目录下,编译输出位于#/out/product/halley5/obj/buildroot-intermediate/build。3.2.4 编译模块
make$(LOCAL_MODULE)#以工程目录 /packages/example/App/v4l2-h264dec 模块为例#该模块在其目录下的 Build.mk 文件中 LOCAL_MODULE 赋值为:v4l2-h264decmake v4l2-h264dec
make$(LOCAL_MODULE)-clean
make v4l2-h264dec-clean
3.2.5 编译文件系统镜像
make systemimage
#会在工程目录/out/product/halley5/image 下重新生成 system 的镜像3.2.6 打包文件系统镜像
make post-image
#将编译后输出的文件打包成最终的文件系统镜像,用于烧录到开发板。#最终的文件系统镜像输出在工程目录/out/product/halley5/image 目录下。