simplifying the networking/Config.in WRT "ip"

Robert P. J. Day rpjday at mindspring.com
Fri Apr 14 12:20:31 PDT 2006


  depending on what the visuals should be, it's not hard to cut down
the amount of "ip"-related stuff in networking/Config.in as follows.
for each of the four ip-alternative commands, do:

config CONFIG_IPADDR
	bool "ipaddr"
	default n

config CONFIG_IPLINK
... etc, followed by ...

config CONFIG_IP
	bool "Add ip equivalent commands to the above."
	default n
	help
	  Add the ip command to support equivalent commands to
	  ipaddr, iplink, iproute and iptunnel.

config CONFIG_FEATURE_IP_ADDRESS
	bool
	default y
	depends on CONFIG_IP && CONFIG_IPADDR

... remaining three as well.

  obviously, this requires you to explicitly select what you want from
ipaddr, iplink, iproute and iptunnel, with one final selection as to
whether you want the "ip" versions of those commands as well.
(clearly, you can go the other way as well.)

  do those semantics make sense?  it clears a whole pile of
unnecessary clutter out of Config.in, but it still leaves "ifupdown"
making a mess of things.

rday


More information about the busybox mailing list