From: Jason Kacines Date: Tue, 11 Jul 2023 21:20:46 +0000 (-0500) Subject: scripts: kconfig: Add config fragment support in board/../ X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=06b51f77f5be60200a5f0037509c191b102e5e00;p=u-boot.git scripts: kconfig: Add config fragment support in board/../ 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 --- diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 12e525ee31..2d97aab8d2 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))