mark Linux-specific configuration options
PLATFORM_LINUX is used as a dependency for applets or features
which require Linux-specific interfaces.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/networking/Config.src b/networking/Config.src
index 4494362..26c59e7 100644
--- a/networking/Config.src
+++ b/networking/Config.src
@@ -43,6 +43,7 @@
config VERBOSE_RESOLUTION_ERRORS
bool "Verbose resolution errors"
default n
+ depends on PLATFORM_LINUX #because of xsocket() in libbb/xfuncs_prinf.c
help
Enable if you are not satisfied with simplistic
"can't resolve 'hostname.com'" and want to know more.
@@ -51,18 +52,21 @@
config ARP
bool "arp"
default y
+ depends on PLATFORM_LINUX
help
Manipulate the system ARP cache.
config ARPING
bool "arping"
default y
+ depends on PLATFORM_LINUX
help
Ping hosts by ARP packets.
config BRCTL
bool "brctl"
default y
+ depends on PLATFORM_LINUX
help
Manage ethernet bridges.
Supports addbr/delbr and addif/delif.
@@ -95,6 +99,7 @@
config ETHER_WAKE
bool "ether-wake"
default y
+ depends on PLATFORM_LINUX
help
Send a magic packet to wake up sleeping machines.
@@ -269,6 +274,7 @@
config IFCONFIG
bool "ifconfig"
default y
+ depends on PLATFORM_LINUX
help
Ifconfig is used to configure the kernel-resident network interfaces.
@@ -316,6 +322,7 @@
config IFENSLAVE
bool "ifenslave"
default y
+ depends on PLATFORM_LINUX
help
Userspace application to bind several interfaces
to a logical interface (use with kernel bonding driver).
@@ -323,6 +330,7 @@
config IFPLUGD
bool "ifplugd"
default y
+ depends on PLATFORM_LINUX
help
Network interface plug detection daemon.
@@ -364,7 +372,7 @@
config FEATURE_IFUPDOWN_IP_BUILTIN
bool "Use busybox ip applet"
default y
- depends on FEATURE_IFUPDOWN_IP
+ depends on FEATURE_IFUPDOWN_IP && PLATFORM_LINUX
select IP
select FEATURE_IP_ADDRESS
select FEATURE_IP_LINK
@@ -483,6 +491,7 @@
config IP
bool "ip"
default y
+ depends on PLATFORM_LINUX
help
The "ip" applet is a TCP/IP interface configuration and routing
utility. You generally don't need "ip" to use busybox with
@@ -598,6 +607,7 @@
config NAMEIF
bool "nameif"
default y
+ depends on PLATFORM_LINUX
select FEATURE_SYSLOG
help
nameif is used to rename network interface by its MAC address.
@@ -626,6 +636,7 @@
config NETSTAT
bool "netstat"
default y
+ depends on PLATFORM_LINUX
help
netstat prints information about the Linux networking subsystem.
@@ -654,6 +665,7 @@
config NTPD
bool "ntpd"
default y
+ depends on PLATFORM_LINUX
help
The NTP client/server daemon.
@@ -668,6 +680,7 @@
config PING
bool "ping"
default y
+ depends on PLATFORM_LINUX
help
ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
elicit an ICMP ECHO_RESPONSE from a host or gateway.
@@ -696,12 +709,14 @@
config ROUTE
bool "route"
default y
+ depends on PLATFORM_LINUX
help
Route displays or manipulates the kernel's IP routing tables.
config SLATTACH
bool "slattach"
default y
+ depends on PLATFORM_LINUX
help
slattach is a small utility to attach network interfaces to serial
lines.
@@ -719,6 +734,7 @@
config TCPSVD
bool "tcpsvd"
default y
+ depends on PLATFORM_LINUX
help
tcpsvd listens on a TCP port and runs a program for each new
connection.
@@ -888,6 +904,7 @@
config TRACEROUTE
bool "traceroute"
default y
+ depends on PLATFORM_LINUX
help
Utility to trace the route of IP packets.
@@ -924,6 +941,7 @@
config TUNCTL
bool "tunctl"
default y
+ depends on PLATFORM_LINUX
help
tunctl creates or deletes tun devices.
@@ -949,6 +967,7 @@
config UDPSVD
bool "udpsvd"
default y
+ depends on PLATFORM_LINUX
help
udpsvd listens on an UDP port and runs a program for each new
connection.
@@ -956,6 +975,7 @@
config VCONFIG
bool "vconfig"
default y
+ depends on PLATFORM_LINUX
help
Creates, removes, and configures VLAN interfaces
@@ -990,6 +1010,7 @@
config ZCIP
bool "zcip"
default y
+ depends on PLATFORM_LINUX
select FEATURE_SYSLOG
help
ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src
index aac8856..331dffc 100644
--- a/networking/udhcp/Config.src
+++ b/networking/udhcp/Config.src
@@ -8,6 +8,7 @@
config UDHCPD
bool "udhcp server (udhcpd)"
default y
+ depends on PLATFORM_LINUX
help
udhcpd is a DHCP server geared primarily toward embedded systems,
while striving to be fully functional and RFC compliant.
@@ -51,6 +52,7 @@
config UDHCPC
bool "udhcp client (udhcpc)"
default y
+ depends on PLATFORM_LINUX
help
udhcpc is a DHCP client geared primarily toward embedded systems,
while striving to be fully functional and RFC compliant.