busybox: add support for config overrides via env/busybox-config
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Dec 2013 19:27:35 +0000 (19:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 16 Dec 2013 19:27:35 +0000 (19:27 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39107

package/utils/busybox/Makefile

index db8d0339d8f61e06f6fa3a99c04dfec9679cab73..0b11a598052f42d4dfa84e2ab7e5bf7ace5f10f4 100644 (file)
@@ -65,6 +65,12 @@ ifdef CONFIG_BUSYBOX_ENABLE_NFS_MOUNT
   CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) ./config/nfsmount
 endif
 
+ENV_CONFIG:=$(wildcard $(TOPDIR)/env/busybox-config)
+ifneq ($(ENV_CONFIG),)
+  CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) $(ENV_CONFIG)
+  STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(shell $(SH_FUNC) md5s < $(ENV_CONFIG))
+endif
+
 define Build/Configure
        $(SCRIPT_DIR)/kconfig.pl $(CONFIG_TEMPLATE) > $(PKG_BUILD_DIR)/.config
        yes 'n' | $(MAKE) -C $(PKG_BUILD_DIR) \