From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Mon, 04 Aug 2014 19:49:24 +0200 Subject: [U-Boot] [PATCH] Makefile: restore *_config target In-Reply-To: <20140804105116.D54B.AA925319@jp.panasonic.com> References: <1406921334-7573-1-git-send-email-jeroen@myspectrum.nl> <20140804105116.D54B.AA925319@jp.panasonic.com> Message-ID: <53DFC7A4.2030307@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, On 04-08-14 03:51, Masahiro Yamada wrote: > Hi Jeroen, > > > > On Fri, 1 Aug 2014 21:28:54 +0200 > Jeroen Hofstee wrote: > >> The switch to KConfig break the [board]_config target. This breaks >> backwards compatibility and hence all documentation about how to >> build u-boot is no longer valid. It is also annoying for general >> recipes to build u-boot as contained in buildroot, crochet, oe, >> poky, eldk etc. Hence restore the *_config target. > > OK. > > >> cc: Tom Rini >> cc: Masahiro Yamada >> cc: Simon Glass >> Signed-off-by: Jeroen Hofstee >> --- >> Makefile | 7 ++++++- >> 1 file changed, 6 insertions(+), 1 deletion(-) >> >> diff --git a/Makefile b/Makefile >> index 5e49545..2a339aa 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -413,7 +413,7 @@ endif >> version_h := include/generated/version_autogenerated.h >> timestamp_h := include/generated/timestamp_autogenerated.h >> >> -no-dot-config-targets := clean clobber mrproper distclean \ >> +no-dot-config-targets := clean clobber %_config mrproper distclean \ >> help %docs check% coccicheck \ >> ubootversion backup tools-only > > This change is not necessay at all, I think. > Depends on the intention, I do _not_ want to invoke the %config for the %_config target, and this prevents that. > >> @@ -436,6 +436,11 @@ ifeq ($(KBUILD_EXTMOD),) >> endif >> endif >> >> +# Before the switch to KConfig the configure target was %_config instead >> +# of %_defconfig. Just reinvoke make to be backwards compatible. >> +%_config: FORCE >> + $(Q)$(MAKE) $(@:_config=_defconfig) >> + >> ifeq ($(mixed-targets),1) >> # =========================================================================== >> # We're called with mixed targets (*config and build targets). > > Because _config matches "%config" pattern at line 467, Well only when ifeq ($(config-targets),1) was true, which above prevents. > could you modify scripts/multiconfig.py, please? > I don't understand what you want to change there... it should only see %_defconfig. Regards, Jeroen