1 # SPDX-License-Identifier: GPL-2.0
2 # Configuration heplers
4 # Creates 'merged defconfigs'
5 # ---------------------------------------------------------------------------
7 # $(call merge_into_defconfig,base_config,config_fragment1 config_fragment2 ...)
9 # Input config fragments without '.config' suffix
10 define merge_into_defconfig
11 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
12 -m -O $(objtree) $(srctree)/arch/$(SRCARCH)/configs/$(1) \
13 $(foreach config,$(2),$(srctree)/arch/$(SRCARCH)/configs/$(config).config)
14 +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
18 # Creates 'merged defconfigs without warning about overrides'
19 # ---------------------------------------------------------------------------
21 # $(call merge_into_defconfig_override,base_config,config_fragment1 config_fragment2 ...)
23 # Input config fragments without '.config' suffix
24 define merge_into_defconfig_override
25 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
26 -Q -m -O $(objtree) $(srctree)/arch/$(SRCARCH)/configs/$(1) \
27 $(foreach config,$(2),$(srctree)/arch/$(SRCARCH)/configs/$(config).config)
28 +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig