1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # Configuration heplers 2 # Configuration heplers 3 3 4 # Creates 'merged defconfigs' 4 # Creates 'merged defconfigs' 5 # -------------------------------------------- 5 # --------------------------------------------------------------------------- 6 # Usage: 6 # Usage: 7 # $(call merge_into_defconfig,base_config,co 7 # $(call merge_into_defconfig,base_config,config_fragment1 config_fragment2 ...) 8 # 8 # 9 # Input config fragments without '.config' suf 9 # Input config fragments without '.config' suffix 10 define merge_into_defconfig 10 define merge_into_defconfig 11 $(Q)$(CONFIG_SHELL) $(srctree)/scripts 11 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ 12 -m -O $(objtree) $(srctree)/ar !! 12 -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \ 13 $(foreach config,$(2),$(srctre !! 13 $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) 14 +$(Q)$(MAKE) -f $(srctree)/Makefile ol 14 +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig 15 endef 15 endef 16 16 17 17 18 # Creates 'merged defconfigs without warning a 18 # Creates 'merged defconfigs without warning about overrides' 19 # -------------------------------------------- 19 # --------------------------------------------------------------------------- 20 # Usage: 20 # Usage: 21 # $(call merge_into_defconfig_override,base_ 21 # $(call merge_into_defconfig_override,base_config,config_fragment1 config_fragment2 ...) 22 # 22 # 23 # Input config fragments without '.config' suf 23 # Input config fragments without '.config' suffix 24 define merge_into_defconfig_override 24 define merge_into_defconfig_override 25 $(Q)$(CONFIG_SHELL) $(srctree)/scripts 25 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \ 26 -Q -m -O $(objtree) $(srctree) !! 26 -Q -m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \ 27 $(foreach config,$(2),$(srctre !! 27 $(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config) 28 +$(Q)$(MAKE) -f $(srctree)/Makefile ol 28 +$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig 29 endef 29 endef
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.