From 83f1bf9e4553ab4ac01f17566b3f74df8058987d Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 22 Aug 2011 21:28:48 +0200 Subject: [PATCH] barebox: add barebox-config and barebox-savedefconfig support [Peter: only activate if barebox is enabled, fix deps] Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Peter Korsgaard --- Makefile | 4 ++++ boot/barebox/barebox.mk | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 7e7e25f751..f74a6acb8f 100644 --- a/Makefile +++ b/Makefile @@ -659,6 +659,10 @@ ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) 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:' diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index 5c615f8624..d3143e69a1 100644 --- a/boot/barebox/barebox.mk +++ b/boot/barebox/barebox.mk @@ -60,4 +60,14 @@ ifeq ($(BAREBOX_BOARD_DEFCONFIG),) $(error No Barebox defconfig file. Check your BR2_TARGET_BAREBOX_BOARD_DEFCONFIG setting) endif endif + +barebox-menuconfig barebox-xconfig barebox-gconfig barebox-nconfig: barebox-configure + $(MAKE) $(BAREBOX_MAKE_FLAGS) -C $(BAREBOX_DIR) \ + $(subst barebox-,,$@) + rm -f $(BAREBOX_DIR)/.stamp_{built,target_installed,images_installed} + +barebox-savedefconfig: barebox-configure + $(MAKE) $(BAREBOX_MAKE_FLAGS) -C $(BAREBOX_DIR) \ + $(subst barebox-,,$@) + endif -- 2.30.2