aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Kacines <j-kacines@ti.com>2023-07-11 16:20:46 -0500
committerTom Rini <trini@konsulko.com>2023-08-09 09:21:42 -0400
commit06b51f77f5be60200a5f0037509c191b102e5e00 (patch)
treedf15c6c203dcdd35fe15f7dae4ff024f82d5a618
parentccea96f443e2d35cf5ecc341bb14569029eb93b8 (diff)
downloadu-boot-WIP/2023-08-09-misc-cleanups.zip
u-boot-WIP/2023-08-09-misc-cleanups.tar.gz
u-boot-WIP/2023-08-09-misc-cleanups.tar.bz2
scripts: kconfig: Add config fragment support in board/../WIP/2023-08-09-misc-cleanups
Add support to config fragments (.config) located in the /board directory. This will allow only base defconfigs to live in /configs and all fragments to live in their respective device directory in /board/.. Signed-off-by: Jason Kacines <j-kacines@ti.com>
-rw-r--r--scripts/kconfig/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 12e525e..2d97aab 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -99,7 +99,9 @@ endif
%_config: %_defconfig
@:
-configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
+configfiles=$(wildcard $(srctree)/kernel/configs/$@ \
+ $(srctree)/arch/$(SRCARCH)/configs/$@ \
+ $(shell find $(srctree)/board -name "$@"))
%.config: $(obj)/conf
$(if $(call configfiles),, $(error No configuration exists for this target on this architecture))