Explorar o código

quagga: cleanup kconfig

Structure it like other packages with sub-options.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard %!s(int64=16) %!d(string=hai) anos
pai
achega
191c59c2d2
Modificáronse 2 ficheiros con 26 adicións e 60 borrados
  1. 26 58
      package/quagga/Config.in
  2. 0 2
      package/quagga/quagga.mk

+ 26 - 58
package/quagga/Config.in

@@ -1,100 +1,68 @@
 config BR2_PACKAGE_QUAGGA
-	bool
-
-comment "quagga suite"
-
-config BR2_PACKAGE_QUAGGA_ZEBRA
-	bool "quagga zebra"
-	select BR2_PACKAGE_QUAGGA
+	bool "quagga"
 	help
 	  routing software suite, providing implementations of
 	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
 
 	  http://www.quagga.net/
 
-config BR2_PACKAGE_QUAGGA_BGPD
-	bool "quagga bgpd"
-	select BR2_PACKAGE_QUAGGA
+if BR2_PACKAGE_QUAGGA
+
+config BR2_PACKAGE_QUAGGA_ZEBRA
+	bool "zebra daemon"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
+	  Build zebra daemon.
 
-	  http://www.quagga.net/
+config BR2_PACKAGE_QUAGGA_BGPD
+	bool "bgpd support"
+	help
+	  Enable bgpd support in quagga.
 
 config BR2_PACKAGE_QUAGGA_RIPD
-	bool "quagga ripd"
-	select BR2_PACKAGE_QUAGGA
+	bool "ripd support"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable ripd support in quagga.
 
 config BR2_PACKAGE_QUAGGA_RIPNGD
-	bool "quagga ripngd"
-	select BR2_PACKAGE_QUAGGA
+	bool "ripngd support"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable ripngd support in quagga.
 
 config BR2_PACKAGE_QUAGGA_OSPFD
-	bool "quagga ospfd"
-	select BR2_PACKAGE_QUAGGA
+	bool "ospfd support"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable ospfd support in quagga.
 
 config BR2_PACKAGE_QUAGGA_OSPF6D
-	bool "quagga ospf6d"
-	select BR2_PACKAGE_QUAGGA
+	bool "ospf6d support"
 	depends on BR2_INET_IPV6
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable ospf6d support in quagga.
 
 config BR2_PACKAGE_QUAGGA_WATCHQUAGGA
-	bool "quagga watchquagga"
-	select BR2_PACKAGE_QUAGGA
+	bool "watchquagga support"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable watchquagga support in quagga.
 
 config BR2_PACKAGE_QUAGGA_ISISD
-	bool "isisd"
-	select BR2_PACKAGE_QUAGGA
+	bool "isisd support"
 	help
-	  routing software suite, providing implementations of
-	  OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4.
-
-	  http://www.quagga.net/
+	  Enable isisd support in quagga.
 
-if BR2_PACKAGE_QUAGGA
-comment "common options for quagga suite"
 config BR2_PACKAGE_QUAGGA_BGP_ANNOUNCE
 	bool "BGP route announcement"
 
 config BR2_PACKAGE_QUAGGA_NETLINK
-	bool "quagga: use linux netlink interface"
+	bool "use linux netlink interface"
 	default y
 
 config BR2_PACKAGE_QUAGGA_SNMP
-	bool "quagga: SNMP support"
+	bool "SNMP support"
 
 config BR2_PACKAGE_QUAGGA_TCP_ZEBRA
-	bool "quagga: TCP/IP socket connection between zebra and proto daemon"
+	bool "TCP/IP socket connection between zebra and proto daemon"
 
 config BR2_PACKAGE_QUAGGA_OPAGUE_LSA
-	bool "quagga: OSPF Opaque-LSA with OSPFAPI support (RFC2370)"
+	bool "OSPF Opaque-LSA with OSPFAPI support (RFC2370)"
 
-config BR2_PACKAGE_QUAGGA_CONFIGURE
-	string "quagga: extra configure options"
-	default ""
 endif

+ 0 - 2
package/quagga/quagga.mk

@@ -110,8 +110,6 @@ else
 QUAGGA_CONFIGURE+=--disable-opaque-lsa
 endif
 
-QUAGGA_CONFIGURE+=$(call qstrip,$(BR2_PACKAGE_QUAGGA_CONFIGURE))
-
 $(DL_DIR)/$(QUAGGA_SOURCE):
 	$(call DOWNLOAD,$(QUAGGA_SITE),$(QUAGGA_SOURCE))