一般我们通过make defconfig来生成.config.其中这个defconfig 是存在arch/arm64/configs/defconfig 路径的
如果想自定义一个的deconfig的话,一定要命名成*_defconfig。如果rule是在根目录下面的Makefile中决定的,code如下所示:
boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*_defconfig)
boards := $(sort $(notdir $(boards)))
board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig))
board-dirs := $(sort $(notdir $(board-dirs:/=)))
如果想自定义一个的deconfig的话,一定要命名成*_defconfig。如果rule是在根目录下面的Makefile中决定的,code如下所示:
boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*_defconfig)
boards := $(sort $(notdir $(boards)))
board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig))
board-dirs := $(sort $(notdir $(board-dirs:/=)))