[RFC PATCH 1/3] scripts: kconfig: Add config fragment support in board/../

Simon Glass sjg at google.com
Wed Jul 12 16:00:28 CEST 2023


Hi Jason,

On Tue, 11 Jul 2023 at 16:29, Jason Kacines <j-kacines at ti.com> wrote:
>
> Add support to config fragments (.config) located in the /board
> directory. This will allow only base defconfigs to live in /configs and

Does this mean defconfigs?

> all fragments to live in their respective device directory in /board/..

Why do we want this? The patch should have a motivation.

>
> Signed-off-by: Jason Kacines <j-kacines at ti.com>
> ---
>  scripts/kconfig/Makefile | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> 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))
> --
> 2.34.1
>

Regards,
SImon


More information about the U-Boot mailing list