[Buildroot] [PATCH 2/2] barebox: add barebox-<n/x/menu>config and barebox-savedefconfig support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Aug 22 19:28:48 UTC 2011


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 Makefile                |    4 ++++
 boot/barebox/barebox.mk |    9 +++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 7e7e25f..f74a6ac 100644
--- a/Makefile
+++ b/Makefile
@@ -660,6 +660,10 @@ endif
 ifeq ($(BR2_TOOLCHAIN_CTNG),y)
 	@echo '  ctng-menuconfig        - Run crosstool-NG menuconfig'
 endif
+ifeq ($(BR2_TARGET_BAREBOX),y)
+	@echo '  barebox-menuconfig     - Run barebox menuconfig'
+	@echo '  barebox-savedefconfig  - Run barebox savedefconfig'
+endif
 	@echo
 	@echo 'Miscellaneous:'
 	@echo '  source                 - download all sources needed for offline-build'
diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk
index 5c615f8..454b545 100644
--- a/boot/barebox/barebox.mk
+++ b/boot/barebox/barebox.mk
@@ -53,6 +53,15 @@ endif
 
 $(eval $(call GENTARGETS,boot,barebox))
 
+barebox-menuconfig barebox-xconfig barebox-gconfig barebox-nconfig: dirs $(BAREBOX_DIR)/.stamp_configured
+	$(MAKE) $(BAREBOX_MAKE_FLAGS) -C $(BAREBOX_DIR) \
+		$(subst barebox-,,$@)
+	rm -f $(BAREBOX_DIR)/.stamp_{built,target_installed,images_installed}
+
+barebox-savedefconfig: dirs $(BAREBOX_DIR)/.stamp_configured
+	$(MAKE) $(BAREBOX_MAKE_FLAGS) -C $(BAREBOX_DIR) \
+		$(subst barebox-,,$@)
+
 ifeq ($(BR2_TARGET_BAREBOX),y)
 # we NEED a board defconfig file unless we're at make source
 ifeq ($(filter source,$(MAKECMDGOALS)),)
-- 
1.7.5.4




More information about the buildroot mailing list