public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: restore *_config target
@ 2014-08-01 19:28 Jeroen Hofstee
  2014-08-04  1:51 ` Masahiro Yamada
  2014-08-04 10:09 ` Simon Glass
  0 siblings, 2 replies; 9+ messages in thread
From: Jeroen Hofstee @ 2014-08-01 19:28 UTC (permalink / raw)
  To: u-boot

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.

cc: Tom Rini <trini@ti.com>
cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
 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
 
@@ -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).
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-07 20:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01 19:28 [U-Boot] [PATCH] Makefile: restore *_config target Jeroen Hofstee
2014-08-04  1:51 ` Masahiro Yamada
2014-08-04 17:49   ` Jeroen Hofstee
2014-08-05  1:50     ` Masahiro Yamada
2014-08-05 19:35       ` Jeroen Hofstee
2014-08-06  2:11         ` Masahiro Yamada
2014-08-07 20:40           ` Jeroen Hofstee
2014-08-04 10:09 ` Simon Glass
2014-08-04 17:35   ` Jeroen Hofstee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox