给kernel添加defconfig文件


现在编译也都不make menuconfig了,都用“make htc_msm_nand_defconfig ARCH=arm”,
那linux kernel是怎样识别htc_msm_nand_defconfig 文件的呢?自己添加过一个config文件,编译配置却报“make[1]: *** No rule to make target”。
后来发现,根目录的Makefile,有这么一段
# Brief documentation of the typical targets used
# —————————————————————————
boards := $(wildcard $(srctree)/arch/$(ARCH)/configs/*_defconfig)
boards := $(notdir $(boards))
所以新的config文件要以_defconfig结尾。

合作联系邮箱:cofface#cofface.com(请将#替换为@)

转载请注明来源:Cofface Blog » 给kernel添加defconfig文件

赞 (5) 打赏

感谢您的支持,我会继续努力的!

支付宝扫一扫打赏