[Buildroot] [git commit] prevent recursion in %_defconfig rules
Peter Korsgaard
peter at korsgaard.com
Mon Jan 13 08:59:44 UTC 2014
commit: http://git.buildroot.net/buildroot/commit/?id=94dd02f5d0ce89549a82a99c56602e1c4a73bae7
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Jérémy Rosen <jeremy.rosen at openwide.fr>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
Makefile | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 7624f59..9aa8536 100644
--- a/Makefile
+++ b/Makefile
@@ -761,10 +761,14 @@ defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
@mkdir -p $(BUILD_DIR)/buildroot-config
@$(COMMON_CONFIG_ENV) $< --defconfig=$(TOPDIR)/configs/$@ $(CONFIG_CONFIG_IN)
+$(TOPDIR)/configs/%_defconfig:;
+
%_defconfig: $(BUILD_DIR)/buildroot-config/conf $(BR2_EXTERNAL)/configs/%_defconfig outputmakefile
@mkdir -p $(BUILD_DIR)/buildroot-config
@$(COMMON_CONFIG_ENV) $< --defconfig=$(BR2_EXTERNAL)/configs/$@ $(CONFIG_CONFIG_IN)
+$(BR2_EXTERNAL)/configs/%_defconfig:;
+
savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
@mkdir -p $(BUILD_DIR)/buildroot-config
@$(COMMON_CONFIG_ENV) $< \
More information about the buildroot
mailing list