diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-12-16 19:09:57 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-12-16 19:09:57 +0000 |
commit | ef012c94f16ef5c7892236861d1f55f62b0b1532 (patch) | |
tree | 68ed83c001b049c6e38a70d3b15de9cfc54e43d2 /package/utils/busybox/Makefile | |
parent | 419db8ef231eae6c0a514f32ff6c423c384900ca (diff) |
busybox: remove busybox menuconfig from top level menuconfig
This will help with avoiding bogus bug reports caused by stale configs
and bad cases of user tinkering :)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39106 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/busybox/Makefile')
-rw-r--r-- | package/utils/busybox/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 15f96ebb3c..db8d0339d8 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_BUILD_DEPENDS:=BUSYBOX_CONFIG_FEATURE_HAVE_RPC:librpc +PKG_CONFIG_DEPENDS:=CONFIG_BUSYBOX_ENABLE_NFS_MOUNT PKG_BUILD_PARALLEL:=1 PKG_LICENSE:=GPLv2 BSD-4c @@ -25,10 +25,6 @@ PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE include $(INCLUDE_DIR)/package.mk -ifeq ($(DUMP),) - STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell $(SH_FUNC) grep '^CONFIG_BUSYBOX_' $(TOPDIR)/.config | md5s) -endif - ifneq ($(findstring c,$(OPENWRT_VERBOSE)),) BB_MAKE_VERBOSE := V=1 else @@ -46,7 +42,7 @@ define Package/busybox MAINTAINER:=Nicolas Thill <nico@openwrt.org> TITLE:=Core utilities for embedded Linux URL:=http://busybox.net/ - DEPENDS:=+BUSYBOX_CONFIG_FEATURE_HAVE_RPC:librpc + DEPENDS:=+BUSYBOX_ENABLE_NFS_MOUNT:librpc MENU:=1 endef @@ -59,9 +55,18 @@ define Package/busybox/config source "$(SOURCE)/Config.in" endef +CONFIG_TEMPLATE:=./config/default + +LDLIBS:=m crypt +ifdef CONFIG_BUSYBOX_ENABLE_NFS_MOUNT + TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include + export LDFLAGS=$(TARGET_LDFLAGS) + LDLIBS += rpc + CONFIG_TEMPLATE:=+ $(CONFIG_TEMPLATE) ./config/nfsmount +endif + define Build/Configure - rm -f $(PKG_BUILD_DIR)/.configured* - grep 'CONFIG_BUSYBOX_' $(TOPDIR)/.config | sed -e "s,\\(# \)\\?CONFIG_BUSYBOX_\\(.*\\),\\1\\2,g" > $(PKG_BUILD_DIR)/.config + $(SCRIPT_DIR)/kconfig.pl $(CONFIG_TEMPLATE) > $(PKG_BUILD_DIR)/.config yes 'n' | $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ CROSS_COMPILE="$(TARGET_CROSS)" \ @@ -75,13 +80,6 @@ ifdef CONFIG_GCC_VERSION_LLVM TARGET_CFLAGS += -fnested-functions endif -LDLIBS:=m crypt -ifdef CONFIG_BUSYBOX_CONFIG_FEATURE_HAVE_RPC - TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include - export LDFLAGS=$(TARGET_LDFLAGS) - LDLIBS += rpc -endif - define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ |