diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-16 19:27:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-16 19:27:35 +0000 |
commit | 7340bc73f2bf2bea7c5c3edf700351dd5dd19e23 (patch) | |
tree | 237ce549b64b7de2dcf7e8a33f5d28323e3effde /package/utils/busybox/Makefile | |
parent | 405b5c2b925d4e6342c364d12264a6a108d13ba7 (diff) | |
download | mtk-20170518-7340bc73f2bf2bea7c5c3edf700351dd5dd19e23.zip mtk-20170518-7340bc73f2bf2bea7c5c3edf700351dd5dd19e23.tar.gz mtk-20170518-7340bc73f2bf2bea7c5c3edf700351dd5dd19e23.tar.bz2 |
busybox: add support for config overrides via env/busybox-config
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39107
Diffstat (limited to 'package/utils/busybox/Makefile')
-rw-r--r-- | package/utils/busybox/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index db8d033..0b11a59 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) \ |