[U-Boot] [PATCH v7 06/15] kconfig: switch to Kconfig

Jeroen Hofstee dasuboot at myspectrum.nl
Tue Jul 29 23:48:32 CEST 2014


Hello Masahiro / Tom,

On 29-07-14 12:34, Masahiro Yamada wrote:
> This commit enables Kconfig.
> Going forward, we use Kconfig for the board configuration.
> mkconfig will never be used. Nor will include/config.mk be generated.
>
> Kconfig must be adjusted for U-Boot because our situation is
> a little more complicated than Linux Kernel.
> We have to generate multiple boot images (Normal, SPL, TPL)
> from one source tree.
> Each image needs its own configuration input.
>
<snip>
> +# We want to include arch/$(ARCH)/config.mk only when include/config/auto.conf
> +# is up-to-date. When we switch to a different board configuration, old CONFIG
> +# macros are still remaining in include/config/auto.conf. Without the following
> +# gimmick, wrong config.mk would be included leading nasty warnings/errors.
> +autoconf_is_current := $(if $(wildcard $(KCONFIG_CONFIG)),$(shell find \
> +		-path ./include/config/auto.conf -newer $(KCONFIG_CONFIG)))

fyi, this patchset seems to work remarkably well on FreeBSD, except
above line. FreeBSD find requires a directory (dot in this case) as first
argument. I will send a patch for it after this got merged, not to hold 
this.
Just a heads up, since it is likely slightly after the merge window.

Regards,
Jeroen




More information about the U-Boot mailing list