文章目录
第一部分:执行__build: scripts/basic/fixdep
【1】uboot编译源码可以执行以下shell脚本
(mx6ull_14x14_ddr512_emmc_defconfig需要根据自己的配置文件替换)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_14x14_ddr512_emmc_defconfig #配置文件
make V=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j12
#设置成我们虚拟机所设置的核心数,如果在 VMware 里面给虚拟就分配了 4 个核,
#那么使用-j4 是最合适的,这样 4 个核都会一起编译
【2】uboot顶层源码(截取部分)两个依赖scripts_basic 和outputmakefile
# *config targets only - make sure prerequisites are updated, and descend
# in scripts/kconfig to make the *config target
KBUILD_DEFCONFIG := sandbox_defconfig
export KBUILD_DEFCONFIG KBUILD_KCONFIG
config: scripts_basic outputmakefile FORCE
$(Q)$(MAKE) $(build)=scripts/kconfig $@
%config: scripts_basic outputmakefile FORCE
$(Q)$(MAKE) $(build)=scripts/kconfig $@
%是通配符,比如我们上面写的shell脚本中 make mx6ull_14x14_ddr512_emmc_defconfig
# outputmakefile generates a Makefile in the output directory, if using a
# separate output directory. This allows convenient

最低0.47元/天 解锁文章
1159

被折叠的 条评论
为什么被折叠?



