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 | 691e7028cf14304ae1da88ea86faa094d7c8b963 (patch) | |
tree | b0474dfb7dc8a726e4472e80d5bdb6b072aa5085 /package/utils | |
parent | 000da8290388199f50090bba61ca83910f1f1f3b (diff) | |
download | master-187ad058-691e7028cf14304ae1da88ea86faa094d7c8b963.tar.gz master-187ad058-691e7028cf14304ae1da88ea86faa094d7c8b963.tar.bz2 master-187ad058-691e7028cf14304ae1da88ea86faa094d7c8b963.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39125 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils')
-rw-r--r-- | package/utils/busybox/Config.in | 2 | ||||
-rw-r--r-- | package/utils/busybox/Makefile | 9 | ||||
-rw-r--r-- | package/utils/busybox/config/nfsmount | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/package/utils/busybox/Config.in b/package/utils/busybox/Config.in index 9a8def66b9..c7532fdd82 100644 --- a/package/utils/busybox/Config.in +++ b/package/utils/busybox/Config.in @@ -1,6 +1,6 @@ if PACKAGE_busybox -config BUSYBOX_ENABLE_NFS_MOUNT +config BUSYBOX_CONFIG_FEATURE_MOUNT_NFS bool "Enable NFS mount support" endif diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 2cf44770b9..cf4f1f2060 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)" \ diff --git a/package/utils/busybox/config/nfsmount b/package/utils/busybox/config/nfsmount deleted file mode 100644 index 3343c7d959..0000000000 --- a/package/utils/busybox/config/nfsmount +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_FEATURE_HAVE_RPC=y -CONFIG_FEATURE_MOUNT_NFS=y |