busybox: make nfs support optional

This commit is contained in:
Stefan Saraev 2013-07-20 19:29:27 +03:00
parent a3a25c1741
commit 8556d6536f
2 changed files with 10 additions and 1 deletions

View File

@ -44,6 +44,10 @@ cd $BUILD/busybox*
sed -i -e "s|^CONFIG_FEATURE_CROND_D=.*$|# CONFIG_FEATURE_CROND_D is not set|" .config
sed -i -e "s|^CONFIG_CRONTAB=.*$|# CONFIG_CRONTAB is not set|" .config
fi
if [ ! "$NFS_SUPPORT" = yes ]; then
sed -i -e "s|^CONFIG_FEATURE_MOUNT_NFS=.*$|# CONFIG_FEATURE_MOUNT_NFS is not set|" .config
fi
make oldconfig
make ARCH=$TARGET_ARCH \

View File

@ -25,7 +25,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.busybox.net"
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="kexec-tools hdparm dosfstools e2fsprogs speedcontrol zip pciutils usbutils less procps-ng rpcbind"
PKG_DEPENDS="kexec-tools hdparm dosfstools e2fsprogs speedcontrol zip pciutils usbutils less procps-ng"
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
PKG_PRIORITY="required"
PKG_SECTION="system"
@ -39,3 +39,8 @@ PKG_AUTORECONF="no"
if [ "$NANO_EDITOR" = "yes" ]; then
PKG_DEPENDS="$PKG_DEPENDS nano"
fi
# nfs support
if [ "$NFS_SUPPORT" = yes ]; then
PKG_DEPENDS="$PKG_DEPENDS rpcbind"
fi