[U-Boot] [PATCH v2] new default shortcut to config & build a board
Mike Frysinger
vapier at gentoo.org
Thu Oct 1 18:11:54 CEST 2009
The majority of the time that I build things in U-Boot, I want to just
build for the board. I don't make board config tweaks after selecting the
board. So add a new pattern rule that allows people to combine two steps
in one go:
`make foo_config && make` => `make foo`
This shouldn't conflict with any existing make rules as the pattern rule
is used only the rule doesn't already exist.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
v2
- fix duplicate config left over from original code pointed out by Luigi
Makefile | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 9c5b2a5..15363b8 100644
--- a/Makefile
+++ b/Makefile
@@ -501,6 +501,9 @@ unconfig:
$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
+%: %_config
+ $(MAKE)
+
#========================================================================
# PowerPC
#========================================================================
@@ -3525,10 +3528,6 @@ BFIN_BOARDS += ibf-dsp561
$(BFIN_BOARDS:%=%_config) : unconfig
@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
-$(BFIN_BOARDS):
- $(MAKE) $@_config
- $(MAKE)
-
#========================================================================
# AVR32
#========================================================================
--
1.6.5.rc2
More information about the U-Boot
mailing list