[Buildroot] [PATCH] filter BR2_DEFCONFIG out of defconfig files
Jérémy Rosen
jeremy.rosen at openwide.fr
Tue Feb 4 14:12:28 UTC 2014
When it is set, BR2_DEFCONFIG is saved like any config variable.
However, at this point it is a completely expanded, absolute path
It is not a good idea to save absolute paths in defconfig files
moreover it makes little sense to save the defconfig location
within the defconfig
Signed-off-by: Jérémy Rosen <jeremy.rosen at openwide.fr>
---
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 4a675d4..f63a058 100644
--- a/Makefile
+++ b/Makefile
@@ -772,6 +772,7 @@ savedefconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
@$(COMMON_CONFIG_ENV) $< \
--savedefconfig=$(if $(DEFCONFIG),$(DEFCONFIG),$(CONFIG_DIR)/defconfig) \
$(CONFIG_CONFIG_IN)
+ sed -i '/^BR2_DEFCONFIG=/d' $(DEFCONFIG)
# check if download URLs are outdated
source-check:
--
1.8.5.3
More information about the buildroot
mailing list