summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-25 03:59:22 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-27 21:16:59 +0200
commit6ad4f5fe1b225eaa0f7e42839a6ee98fa15ff925 (patch)
treed68b738bff243e4bf9eac27b1b354156c5c9f7f4 /common/Kconfig
parent13b026091be0c9d784c768242c308ffa303bf241 (diff)
downloadbarebox-6ad4f5fe1b225eaa0f7e42839a6ee98fa15ff925.tar.gz
barebox-6ad4f5fe1b225eaa0f7e42839a6ee98fa15ff925.tar.xz
kbuild: make DEFCONFIG_LIST work
Most of the Kconfig commands (except defconfig and all*config) read the .config file as a base set of CONFIG options. When it does not exist, the files in DEFCONFIG_LIST are searched in this order and loaded if found. This is not working for barebox because ARCH_DEFCONFIG is not set by anyone, nor arch/$(ARCH)/defconfig exists. Fix this. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 400c0553cf..893bdeaffc 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1,8 +1,7 @@
config DEFCONFIG_LIST
string
option defconfig_list
- default ARCH_DEFCONFIG
- default "arch/$(ARCH)/defconfig"
+ default "arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)"
config GREGORIAN_CALENDER
bool