aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-05 08:41:41 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-05 08:41:41 +0000
commite40a650628ce6b03e67c4c6d96ea396e7bd2afb3 (patch)
tree72904548bb54dcaf78017d3b35296765437e0bd5 /networking
parent49ec1a2dc6dfba670b3659286524fd5baf12e6fe (diff)
downloadbusybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.tar.gz
busybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.tar.bz2
busybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.zip
Yet another major rework of the BusyBox config system, using the considerably
modified Kbuild system I put into uClibc. With this, there should be no more need to modify Rules.mak since I've moved all the interesting options into the config system. I think I've got everything updated, but you never know, I may have made some mistakes, so watch closely. -Erik git-svn-id: svn://busybox.net/trunk/busybox@6102 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r--networking/Config.in332
-rw-r--r--networking/config.in92
-rw-r--r--networking/udhcp/Config.in42
-rw-r--r--networking/udhcp/Makefile.in6
-rw-r--r--networking/udhcp/config.in18
5 files changed, 380 insertions, 110 deletions
diff --git a/networking/Config.in b/networking/Config.in
new file mode 100644
index 000000000..0ff3f52bc
--- /dev/null
+++ b/networking/Config.in
@@ -0,0 +1,332 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Networking Utilities"
7
8config CONFIG_FEATURE_IPV6
9 bool "Enable IPv6 support"
10 default n
11 help
12 Please submit a patch to add help text for this item.
13
14config CONFIG_HOSTNAME
15 bool "hostname"
16 default n
17 help
18 Please submit a patch to add help text for this item.
19
20config CONFIG_IFCONFIG
21 bool "ifconfig"
22 default n
23 help
24 Please submit a patch to add help text for this item.
25
26config CONFIG_FEATURE_IFCONFIG_STATUS
27 bool " Enable status reporting output (+7k)"
28 default y
29 depends on CONFIG_IFCONFIG
30 help
31 Please submit a patch to add help text for this item.
32
33config CONFIG_FEATURE_IFCONFIG_SLIP
34 bool " Enable slip-specific options \"keepalive\" and \"outfill\""
35 default n
36 depends on CONFIG_IFCONFIG
37 help
38 Please submit a patch to add help text for this item.
39
40config CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
41 bool " Enable options \"mem_start\", \"io_addr\", and \"irq\""
42 default n
43 depends on CONFIG_IFCONFIG
44 help
45 Please submit a patch to add help text for this item.
46
47config CONFIG_FEATURE_IFCONFIG_HW
48 bool " Enable option \"hw\" (ether only)"
49 default y
50 depends on CONFIG_IFCONFIG
51 help
52 Please submit a patch to add help text for this item.
53
54config CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS
55 bool " Set the broadcast automatically"
56 default n
57 depends on CONFIG_IFCONFIG
58 help
59 Please submit a patch to add help text for this item.
60
61config CONFIG_IFUPDOWN
62 bool "ifupdown"
63 default n
64 help
65 Please submit a patch to add help text for this item.
66
67config CONFIG_FEATURE_IFUPDOWN_IPV4
68 bool " Enable support for IPv4"
69 default y
70 depends on CONFIG_IFUPDOWN
71 help
72 Please submit a patch to add help text for this item.
73
74config CONFIG_FEATURE_IFUPDOWN_IPV6
75 bool " Enable support for IPv6 (requires ip command)"
76 default n
77 depends on CONFIG_IFUPDOWN
78 help
79 Please submit a patch to add help text for this item.
80
81config CONFIG_FEATURE_IFUPDOWN_IPX
82 bool " Enable support for IPX (requires ipx_interface command)"
83 default n
84 depends on CONFIG_IFUPDOWN
85 help
86 Please submit a patch to add help text for this item.
87
88config CONFIG_IP
89 bool "ip"
90 default n
91 help
92 Please submit a patch to add help text for this item.
93
94if CONFIG_IP && CONFIG_IPADDR
95 config CONFIG_FEATURE_IP_ADDRESS
96 default y
97 comment " address (forced enabled for ipaddr)"
98endif
99if ! (CONFIG_IP && CONFIG_IPADDR)
100 config CONFIG_FEATURE_IP_ADDRESS
101 bool " address"
102 default n
103 depends on CONFIG_IP
104 help
105 Please submit a patch to add help text for this item.
106endif
107
108if CONFIG_IP && CONFIG_IPLINK
109 config CONFIG_FEATURE_IP_LINK
110 default y
111 comment " link (forced enabled for iplink)"
112endif
113if !(CONFIG_IP && CONFIG_IPLINK)
114 config CONFIG_FEATURE_IP_LINK
115 bool " link"
116 default y
117 depends on CONFIG_IP
118 help
119 Please submit a patch to add help text for this item.
120endif
121
122if CONFIG_IP && CONFIG_IPROUTE
123 config CONFIG_FEATURE_IP_ROUTE
124 default y
125 comment " route (forced enabled for iproute)"
126endif
127if !(CONFIG_IP && CONFIG_IPROUTE)
128 config CONFIG_FEATURE_IP_ROUTE
129 bool " route"
130 default y
131 depends on CONFIG_IP
132 help
133 Please submit a patch to add help text for this item.
134endif
135
136if CONFIG_IP && CONFIG_IPTUNNEL
137 config CONFIG_FEATURE_IP_TUNNEL
138 default y
139 comment " tunnel (forced enabled for iptunnel)"
140endif
141if !(CONFIG_IP && CONFIG_IPTUNNEL)
142 config CONFIG_FEATURE_IP_TUNNEL
143 bool " tunnel"
144 default y
145 depends on CONFIG_IP
146 help
147 Please submit a patch to add help text for this item.
148endif
149
150config CONFIG_IPCALC
151 bool "ipcalc"
152 default n
153 help
154 Please submit a patch to add help text for this item.
155
156config CONFIG_FEATURE_IPCALC_FANCY
157 bool " Fancy IPCALC, more options, adds 300 bytes"
158 default y
159 help
160 Please submit a patch to add help text for this item.
161
162config CONFIG_IPADDR
163 bool "ipaddr"
164 default n
165 help
166 Please submit a patch to add help text for this item.
167
168config CONFIG_IPLINK
169 bool "iplink"
170 default n
171 help
172 Please submit a patch to add help text for this item.
173
174config CONFIG_IPROUTE
175 bool "iproute"
176 default n
177 help
178 Please submit a patch to add help text for this item.
179
180config CONFIG_IPTUNNEL
181 bool "iptunnel"
182 default n
183 help
184 Please submit a patch to add help text for this item.
185
186config CONFIG_NC
187 bool "nc"
188 default n
189 help
190 Please submit a patch to add help text for this item.
191
192config CONFIG_NETSTAT
193 bool "netstat"
194 default n
195 help
196 Please submit a patch to add help text for this item.
197
198config CONFIG_NSLOOKUP
199 bool "nslookup"
200 default n
201 help
202 Please submit a patch to add help text for this item.
203
204config CONFIG_PING
205 bool "ping"
206 default n
207 help
208 Please submit a patch to add help text for this item.
209
210config CONFIG_FEATURE_FANCY_PING
211 bool " Enable fancy ping output"
212 default y
213 depends on CONFIG_PING
214 help
215 Please submit a patch to add help text for this item.
216
217config CONFIG_PING6
218 bool "ping6"
219 default n
220 depends on CONFIG_FEATURE_IPV6
221 help
222 Please submit a patch to add help text for this item.
223
224config CONFIG_FEATURE_FANCY_PING6
225 bool " Enable fancy ping6 output"
226 default y
227 depends on CONFIG_PING6
228 help
229 Please submit a patch to add help text for this item.
230
231config CONFIG_ROUTE
232 bool "route"
233 default n
234 help
235 Please submit a patch to add help text for this item.
236
237config CONFIG_TELNET
238 bool "telnet"
239 default n
240 help
241 Please submit a patch to add help text for this item.
242
243config CONFIG_FEATURE_TELNET_TTYPE
244 bool " Pass TERM type to remote host"
245 default y
246 help
247 Please submit a patch to add help text for this item.
248
249config CONFIG_TELNETD
250 bool "telnetd"
251 default n
252 help
253 Please submit a patch to add help text for this item.
254
255config CONFIG_TFTP
256 bool "tftp"
257 default n
258 help
259 Please submit a patch to add help text for this item.
260
261config CONFIG_FEATURE_TFTP_GET
262 bool " Enable \"get\" command"
263 default y
264 depends on CONFIG_TFTP
265 help
266 Please submit a patch to add help text for this item.
267
268config CONFIG_FEATURE_TFTP_PUT
269 bool " Enable \"put\" command"
270 default y
271 depends on CONFIG_TFTP
272 help
273 Please submit a patch to add help text for this item.
274
275config CONFIG_FEATURE_TFTP_BLOCKSIZE
276 bool " Enable \"blocksize\" command"
277 default n
278 depends on CONFIG_TFTP
279 help
280 Please submit a patch to add help text for this item.
281
282config CONFIG_FEATURE_TFTP_DEBUG
283 bool " Enable debug"
284 default y
285 depends on CONFIG_TFTP
286 help
287 Please submit a patch to add help text for this item.
288
289config CONFIG_TRACEROUTE
290 bool "traceroute"
291 default n
292 help
293 Please submit a patch to add help text for this item.
294
295config CONFIG_FEATURE_TRACEROUTE_VERBOSE
296 bool " Enable verbose output"
297 default y
298 depends on CONFIG_TRACEROUTE
299 help
300 Please submit a patch to add help text for this item.
301
302config CONFIG_FEATURE_TRACEROUTE_SO_DEBUG
303 bool " Enable SO_DEBUG option"
304 default y
305 depends on CONFIG_TRACEROUTE
306 help
307 Please submit a patch to add help text for this item.
308
309config CONFIG_WGET
310 bool "wget"
311 default n
312 help
313 Please submit a patch to add help text for this item.
314
315config CONFIG_FEATURE_WGET_STATUSBAR
316 bool " Enable a nifty process meter (+2k)"
317 default y
318 depends on CONFIG_WGET
319 help
320 Please submit a patch to add help text for this item.
321
322config CONFIG_FEATURE_WGET_AUTHENTICATION
323 bool " Enable HTTP authentication"
324 default y
325 depends on CONFIG_WGET
326 help
327 Please submit a patch to add help text for this item.
328
329source networking/udhcp/Config.in
330
331endmenu
332
diff --git a/networking/config.in b/networking/config.in
deleted file mode 100644
index de5b92064..000000000
--- a/networking/config.in
+++ /dev/null
@@ -1,92 +0,0 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6mainmenu_option next_comment
7comment 'Networking Utilities'
8
9bool 'Enable IPv6 support' CONFIG_FEATURE_IPV6
10bool 'hostname' CONFIG_HOSTNAME
11bool 'ifconfig' CONFIG_IFCONFIG
12if [ "$CONFIG_IFCONFIG" = "y" ]; then
13 bool ' Enable status reporting output (+7k)' CONFIG_FEATURE_IFCONFIG_STATUS
14 bool ' Enable slip-specific options "keepalive" and "outfill"' CONFIG_FEATURE_IFCONFIG_SLIP
15 bool ' Enable options "mem_start", "io_addr", and "irq"' CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
16 bool ' Enable option "hw" (ether only)' CONFIG_FEATURE_IFCONFIG_HW
17 bool ' Set the broadcast automatically' CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS
18fi
19bool 'ifupdown' CONFIG_IFUPDOWN
20if [ "$CONFIG_IFUPDOWN" = "y" ]; then
21 bool ' Enable support for IPv4' CONFIG_FEATURE_IFUPDOWN_IPV4
22 bool ' Enable support for IPv6 (requires ip command)' CONFIG_FEATURE_IFUPDOWN_IPV6
23 bool ' Enable support for IPX (requires ipx_interface command)' CONFIG_FEATURE_IFUPDOWN_IPX
24fi
25bool 'ip' CONFIG_IP
26if [ "$CONFIG_IP" = "y" ]; then
27 bool ' address' CONFIG_FEATURE_IP_ADDRESS
28 bool ' link' CONFIG_FEATURE_IP_LINK
29 bool ' route' CONFIG_FEATURE_IP_ROUTE
30 bool ' tunnel' CONFIG_FEATURE_IP_TUNNEL
31fi
32bool 'ipcalc' CONFIG_IPCALC
33if [ "$CONFIG_IPCALC" = "y" ]; then
34 bool ' Fancy IPCALC, more options, adds 300 bytes' CONFIG_FEATURE_IPCALC_FANCY
35fi
36bool 'ipaddr' CONFIG_IPADDR
37if [ "$CONFIG_IP" = "y" ] && [ "$CONFIG_IPADDR" = "y" ]; then
38 define_bool CONFIG_FEATURE_IP_ADDRESS y
39fi
40bool 'iplink' CONFIG_IPLINK
41if [ "$CONFIG_IP" = "y" ] && [ "$CONFIG_IPLINK" = "y" ]; then
42 define_bool CONFIG_FEATURE_IP_LINK y
43fi
44bool 'iproute' CONFIG_IPROUTE
45if [ "$CONFIG_IP" = "y" ] && [ "$CONFIG_IPROUTE" = "y" ]; then
46 define_bool CONFIG_FEATURE_IP_ROUTE y
47fi
48bool 'iptunnel' CONFIG_IPTUNNEL
49if [ "$CONFIG_IP" = "y" ] && [ "$CONFIG_IPTUNNEL" = "y" ]; then
50 define_bool CONFIG_FEATURE_IP_TUNNEL y
51fi
52bool 'nc' CONFIG_NC
53bool 'netstat' CONFIG_NETSTAT
54bool 'nslookup' CONFIG_NSLOOKUP
55bool 'ping' CONFIG_PING
56if [ "$CONFIG_PING" = "y" ]; then
57 bool ' Enable fancy ping output' CONFIG_FEATURE_FANCY_PING
58fi
59if [ "$CONFIG_FEATURE_IPV6" = "y" ]; then
60 bool 'ping6' CONFIG_PING6
61 if [ "$CONFIG_PING6" = "y" ]; then
62 bool ' Enable fancy ping6 output' CONFIG_FEATURE_FANCY_PING6
63 fi
64fi
65bool 'route' CONFIG_ROUTE
66bool 'telnet' CONFIG_TELNET
67if [ "$CONFIG_TELNET" = "y" ]; then
68 bool ' Pass TERM type to remote host' CONFIG_FEATURE_TELNET_TTYPE
69fi
70bool 'telnetd' CONFIG_TELNETD
71bool 'tftp' CONFIG_TFTP
72if [ "$CONFIG_TFTP" = "y" ]; then
73 bool ' Enable "get" command' CONFIG_FEATURE_TFTP_GET
74 bool ' Enable "put" command' CONFIG_FEATURE_TFTP_PUT
75 bool ' Enable "blocksize" option' CONFIG_FEATURE_TFTP_BLOCKSIZE
76 bool ' Enable debug' CONFIG_FEATURE_TFTP_DEBUG
77fi
78bool 'traceroute' CONFIG_TRACEROUTE
79if [ "$CONFIG_TRACEROUTE" = "y" ]; then
80 bool ' Enable verbose output' CONFIG_FEATURE_TRACEROUTE_VERBOSE
81 bool ' Enable SO_DEBUG option' CONFIG_FEATURE_TRACEROUTE_SO_DEBUG
82fi
83bool 'wget' CONFIG_WGET
84if [ "$CONFIG_WGET" = "y" ]; then
85 bool ' Enable a nifty process meter (+2k)' CONFIG_FEATURE_WGET_STATUSBAR
86 bool ' Enable HTTP authentication' CONFIG_FEATURE_WGET_AUTHENTICATION
87fi
88
89source networking/udhcp/config.in
90
91endmenu
92
diff --git a/networking/udhcp/Config.in b/networking/udhcp/Config.in
new file mode 100644
index 000000000..5baaa6a49
--- /dev/null
+++ b/networking/udhcp/Config.in
@@ -0,0 +1,42 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "udhcp Server/Client"
7
8config CONFIG_UDHCPD
9 bool "udhcp Server (udhcpd)"
10 default n
11 help
12 Please submit a patch to add help text for this item.
13
14config CONFIG_UDHCPC
15 bool "udhcp Client (udhcpc)"
16 default n
17 help
18 Please submit a patch to add help text for this item.
19
20config CONFIG_DUMPLEASES
21 bool "Lease display utility (dumpleases)"
22 default n
23 depends on CONFIG_UDHCPD
24 help
25 Please submit a patch to add help text for this item.
26
27config CONFIG_FEATURE_UDHCP_SYSLOG
28 bool " Log udhcp messages to syslog (instead of stdout)"
29 default n
30 depends on CONFIG_UDHCPD || CONFIG_UDHCPC
31 help
32 Please submit a patch to add help text for this item.
33
34config CONFIG_FEATURE_UDHCP_DEBUG
35 bool " Compile udhcp with noisy debugging messages"
36 default n
37 depends on CONFIG_UDHCPD || CONFIG_UDHCPC
38 help
39 Please submit a patch to add help text for this item.
40
41endmenu
42
diff --git a/networking/udhcp/Makefile.in b/networking/udhcp/Makefile.in
index d76715baa..0b94d9c8f 100644
--- a/networking/udhcp/Makefile.in
+++ b/networking/udhcp/Makefile.in
@@ -44,3 +44,9 @@ libraries-y+=$(UDHCP_DIR)$(UDHCP_AR)
44$(UDHCP_DIR)$(UDHCP_AR): $(patsubst %,$(UDHCP_DIR)%, $(UDHCP-y)) 44$(UDHCP_DIR)$(UDHCP_AR): $(patsubst %,$(UDHCP_DIR)%, $(UDHCP-y))
45 $(AR) -ro $@ $(patsubst %,$(UDHCP_DIR)%, $(UDHCP-y)) 45 $(AR) -ro $@ $(patsubst %,$(UDHCP_DIR)%, $(UDHCP-y))
46 46
47$(UDHCP_DIR)dhcpc.o: $(UDHCP_DIR)dhcpc.c
48 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DCOMBINED_BINARY -c $< -o $@
49
50$(UDHCP_DIR)dhcpd.o: $(UDHCP_DIR)dhcpd.c
51 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DCOMBINED_BINARY -c $< -o $@
52
diff --git a/networking/udhcp/config.in b/networking/udhcp/config.in
deleted file mode 100644
index ede632a8a..000000000
--- a/networking/udhcp/config.in
+++ /dev/null
@@ -1,18 +0,0 @@
1#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6mainmenu_option next_comment
7comment 'udhcp Server/Client'
8
9bool 'udhcp Server (udhcpd)' CONFIG_UDHCPD
10bool 'udhcp Client (udhcpc)' CONFIG_UDHCPC
11bool 'Lease display utility (dumpleases)' CONFIG_DUMPLEASES
12if [ "$CONFIG_UDHCPD" = "y" -o "$CONFIG_UDHCPC" = "y" ]; then
13 bool ' Log udhcp messages to syslog (instead of stdout)' CONFIG_FEATURE_UDHCP_SYSLOG
14 bool ' Compile udhcp with noisy debugging messages' CONFIG_FEATURE_UDHCP_DEBUG
15fi
16
17endmenu
18