diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-17 20:37:27 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-17 20:37:27 +0000 |
commit | d2329f88f376e1e55d6d0377a27514681568a915 (patch) | |
tree | c0f680c26fd8ee2bb687e20d41f706c68cecacd1 /package/utils/busybox/Makefile | |
parent | 5c2aee90acc78d273d96a5f3126537257757fef7 (diff) | |
download | mtk-20170518-d2329f88f376e1e55d6d0377a27514681568a915.zip mtk-20170518-d2329f88f376e1e55d6d0377a27514681568a915.tar.gz mtk-20170518-d2329f88f376e1e55d6d0377a27514681568a915.tar.bz2 |
busybox: add back support for top-level menuconfig based config overrides (can be used by custom packages to alter the config)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39125
Diffstat (limited to 'package/utils/busybox/Makefile')
-rw-r--r-- | package/utils/busybox/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 2cf4477..cf4f1f2 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox/Makefile @@ -17,7 +17,7 @@ PKG_SOURCE_URL:=http://www.busybox.net/downloads \ http://distfiles.gentoo.org/distfiles/ PKG_MD5SUM:=9c0cae5a0379228e7b55e5b29528df8e -PKG_CONFIG_DEPENDS:=CONFIG_BUSYBOX_ENABLE_NFS_MOUNT +PKG_CONFIG_DEPENDS:=CONFIG_BUSYBOX_CONFIG_FEATURE_MOUNT_NFS PKG_BUILD_PARALLEL:=1 PKG_LICENSE:=GPLv2 BSD-4c @@ -53,13 +53,14 @@ endef CONFIG_TEMPLATE:=./config/default LDLIBS:=m crypt -ifdef CONFIG_BUSYBOX_ENABLE_NFS_MOUNT +ifdef CONFIG_BUSYBOX_CONFIG_FEATURE_MOUNT_NFS TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include export LDFLAGS=$(TARGET_LDFLAGS) LDLIBS += rpc - CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) ./config/nfsmount endif +CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) $(PKG_BUILD_DIR)/.config.build + ENV_CONFIG:=$(wildcard $(TOPDIR)/env/busybox-config) ifneq ($(ENV_CONFIG),) CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) $(ENV_CONFIG) @@ -67,6 +68,8 @@ ifneq ($(ENV_CONFIG),) endif define Build/Configure + grep -E '^(# )?CONFIG_BUSYBOX_CONFIG_' $(TOPDIR)/.config | \ + sed -e 's,CONFIG_BUSYBOX_CONFIG_,CONFIG_,' > $(PKG_BUILD_DIR)/.config.build $(SCRIPT_DIR)/kconfig.pl $(CONFIG_TEMPLATE) > $(PKG_BUILD_DIR)/.config yes 'n' | $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ |