From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Tue, 29 Jul 2014 23:48:32 +0200 Subject: [U-Boot] [PATCH v7 06/15] kconfig: switch to Kconfig In-Reply-To: <1406630072-24962-7-git-send-email-yamada.m@jp.panasonic.com> References: <1406630072-24962-1-git-send-email-yamada.m@jp.panasonic.com> <1406630072-24962-7-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <53D816B0.6020609@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. > > +# 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