kconfig: Use KCONFIG_CONFIG instead of .config
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Tue, 5 Dec 2023 10:45:59 +0000 (11:45 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 28 Dec 2023 07:22:47 +0000 (16:22 +0900)
When using a custom location for kernel config files this merge config
command fails as it doesn't use the configuration set with
KCONFIG_CONFIG.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/Makefile

index 7c025f82718e21e6e411015145963a1bef8b5ceb..ea1bf3b3dbde1bc463abbc8640537f873adc830f 100644 (file)
@@ -107,7 +107,7 @@ config-fragments = $(call configfiles,$@)
 
 %.config: $(obj)/conf
        $(if $(config-fragments),, $(error $@ fragment does not exists on this architecture))
-       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(config-fragments)
+       $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m $(KCONFIG_CONFIG) $(config-fragments)
        $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
 
 PHONY += tinyconfig