[Buildroot] [PATCH] add some simple "config & build" board shortcuts

Mike Frysinger vapier at gentoo.org
Thu Nov 18 10:26:36 UTC 2010


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 at 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




More information about the buildroot mailing list