]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
scripts: kconfig: Add config fragment support in board/../
authorJason Kacines <j-kacines@ti.com>
Tue, 11 Jul 2023 21:20:46 +0000 (16:20 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 9 Aug 2023 13:21:42 +0000 (09:21 -0400)
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>
scripts/kconfig/Makefile

index 12e525ee31f181a871d1bb356f6595c676f3f9aa..2d97aab8d21e881ff427f77bf9dbdb90e1a3a8cc 100644 (file)
@@ -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))