aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-16 19:27:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-12-16 19:27:35 +0000
commit993a9de79a0c3f82940190bf9b49c77abce47118 (patch)
treebd8d475e60629e1216b0f0a74eae213259080def
parent39bb49bcf4f3f78c109e32d1c730925a5ab01778 (diff)
downloadmaster-187ad058-993a9de79a0c3f82940190bf9b49c77abce47118.tar.gz
master-187ad058-993a9de79a0c3f82940190bf9b49c77abce47118.tar.bz2
master-187ad058-993a9de79a0c3f82940190bf9b49c77abce47118.zip
busybox: add support for config overrides via env/busybox-config
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39107 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/utils/busybox/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index db8d0339d8..0b11a59805 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -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) \