【imx6ULL uboot源码编译与分析 make xxx_defconfig部分】

第一部分:执行__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 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值