mk脚本的主要作用是编译bsp中的所有的源代码(包括bootloader、kernel、rootfs等),实际是整个BSP的Makefile。mk脚本可以指定BSP中的某个目标进行编译,也可以编译全部目标(bootloader、kernel、rootfs)。使用方法如下: -j=n using n threads when building source project (example: -j=16) -x, --xboot build bootloader xboot from source file -ui,--uboot_inand build uboot for emmc -un,--uboot_nand build uboot for nand flash -k, --kernel build kernel from source file and using default config file -r, --rootfs build root file system -re,--rootfs_ext3 build rootfs for emmc,used with uboot -rj,--rootfs_jffs2 build rootfs for nand,used with uboot -U, --update gen update package update.bin,used with xboot -a, --all build all, include anything -h, --help display this help and exit 本文出自 “生命不息,奋斗不止” 博客,转载请与作者联系!