aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-06-22 15:25:33 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-06-22 15:28:36 +0200
commitab5208886e80ddaeb67af18797b6116e1ec4436f (patch)
tree938470b3fbde0a435e4e9101bf02e31a1889ce2c /package/busybox
parent263c8dc7b89b997b011214e224074e03279a37a0 (diff)
downloadbuildroot-novena-ab5208886e80ddaeb67af18797b6116e1ec4436f.tar.gz
buildroot-novena-ab5208886e80ddaeb67af18797b6116e1ec4436f.zip
busybox: autodetect nfs mount support based on BR2_INET_RPC setting
Override nfs mount support based on BR2_INET_RPC setting, so BR will DTRT. This way you will automatically get NFS support in busybox if available in the toolchain, and the build won't break if the defconfig enables it but the user has it disabled in the toolchain. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/busybox.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index fcec41a47..a5978da2c 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -72,6 +72,11 @@ ifeq ($(BR2_INET_IPV6),y)
else
$(SED) "s/^.*CONFIG_FEATURE_IPV6.*/CONFIG_FEATURE_IPV6=n/;" $(BUSYBOX_DIR)/.config
endif
+ifeq ($(BR2_INET_RPC),y)
+ $(SED) "s/^.*CONFIG_FEATURE_MOUNT_NFS.*/CONFIG_FEATURE_MOUNT_NFS=y/;" $(BUSYBOX_DIR)/.config
+else
+ $(SED) "s/^.*CONFIG_FEATURE_MOUNT_NFS.*/CONFIG_FEATURE_MOUNT_NFS=n/;" $(BUSYBOX_DIR)/.config
+endif
ifeq ($(BR2_PACKAGE_BUSYBOX_SKELETON),y)
# force mdev on
$(SED) "s/^.*CONFIG_MDEV.*/CONFIG_MDEV=y/" $(BUSYBOX_DIR)/.config