From: Jeremy Rosen Date: Tue, 7 Jan 2014 16:22:07 +0000 (+0100) Subject: prevent recursion in %_defconfig rules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94dd02f5d0ce89549a82a99c56602e1c4a73bae7;p=buildroot.git prevent recursion in %_defconfig rules Signed-off-by: Jérémy Rosen Signed-off-by: Peter Korsgaard --- diff --git a/Makefile b/Makefile index 7624f593d6..9aa8536a07 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) $< \