Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] add some simple "config & build" board shortcuts
@ 2010-11-18 10:26 Mike Frysinger
  2010-11-18 10:59 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-11-18 10:26 UTC (permalink / raw)
  To: buildroot

I like to be able to do `make foo` and have buildroot build up an image
for the board named "foo".  This saves me from having to do a full clean,
config, and make cycle.  Yes, I am that lazy :P.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makefile |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 0396e37..f6d82df 100644
--- a/Makefile
+++ b/Makefile
@@ -562,6 +562,11 @@ source-check: allyesconfig
 
 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
 
+%: $(TOPDIR)/configs/%_defconfig
+	$(MAKE) clean
+	$(MAKE) $@_defconfig
+	$(MAKE)
+
 #############################################################
 #
 # Cleanup and misc junk
@@ -638,4 +643,3 @@ release:
 	git archive --format=tar --prefix=$(OUT)/ master|gzip -9 >$(OUT).tar.gz
 
 .PHONY: $(noconfig_targets)
-
-- 
1.7.3.2

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

end of thread, other threads:[~2010-11-18 11:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 10:26 [Buildroot] [PATCH] add some simple "config & build" board shortcuts Mike Frysinger
2010-11-18 10:59 ` Thomas Petazzoni
2010-11-18 11:32   ` Mike Frysinger

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