永发信息网

如何给kernel添加defconfig文件

答案:2  悬赏:50  手机版
解决时间 2021-12-02 08:27
  • 提问者网友:记得曾经
  • 2021-12-01 15:54
如何给kernel添加defconfig文件
最佳答案
  • 五星知识达人网友:大漠
  • 2021-12-01 16:17
现在编译也都不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结尾。
全部回答
  • 1楼网友:话散在刀尖上
  • 2021-12-01 17:00
现在编译也都不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结尾。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯