xref: /linux-6.15/scripts/Makefile.defconf (revision a400c287)
1# SPDX-License-Identifier: GPL-2.0
2# Configuration heplers
3
4# Creates 'merged defconfigs'
5# ---------------------------------------------------------------------------
6# Usage:
7#   $(call merge_into_defconfig,base_config,config_fragment1 config_fragment2 ...)
8#
9# Input config fragments without '.config' suffix
10define merge_into_defconfig
11	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh \
12		-m -O $(objtree) $(srctree)/arch/$(ARCH)/configs/$(1) \
13		$(foreach config,$(2),$(srctree)/arch/$(ARCH)/configs/$(config).config)
14	+$(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
15endef
16