Skip to contentSkip to conversation

package/bird: add optional protocols

PATCH New Adrien Gallouët 1 participant 1 message Mar 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/bird: add optional protocols

---
 package/bird/Config.in | 51 ++++++++++++++++++++++++++++++++++++++++++
 package/bird/bird.mk   | 21 +++++++++++++++++
 2 files changed, 72 insertions(+)
package/bird/Config.in +51 -0
index a69551f94e..6d3a05e3bb 100644
@@ -20,4 +20,55 @@ config BR2_PACKAGE_BIRD_CLIENT
 	help
 	  Enable the BIRD client
 
+config BR2_PACKAGE_BIRD_BABEL
+	bool "babel"
+	help
+	  Enable Babel protocol.
+
+config BR2_PACKAGE_BIRD_BFD
+	bool "bfd"
+	help
+	  Enable BFD protocol.
+
+config BR2_PACKAGE_BIRD_BGP
+	bool "bgp"
+	default y
+	help
+	  Enable BGP protocol.
+
+config BR2_PACKAGE_BIRD_MRT
+	bool "mrt"
+	help
+	  Enable MRT protocol.
+
+config BR2_PACKAGE_BIRD_OSPF
+	bool "ospf"
+	help
+	  Enable OSPFv2 and OSPFv3 protocol.
+
+config BR2_PACKAGE_BIRD_PERF
+	bool "perf"
+	help
+	  Enable Perf protocol.
+
+config BR2_PACKAGE_BIRD_PIPE
+	bool "pipe"
+	help
+	  Enable Pipe protocol.
+
+config BR2_PACKAGE_BIRD_RADV
+	bool "radv"
+	help
+	  Enable RAdv protocol.
+
+config BR2_PACKAGE_BIRD_RIP
+	bool "rip"
+	help
+	  Enable RIP protocol.
+
+config BR2_PACKAGE_BIRD_STATIC
+	bool "static"
+	help
+	  Enable Static protocol.
+
 endif
package/bird/bird.mk +21 -0
index e165be61c0..7dc851a592 100644
@@ -10,6 +10,8 @@ BIRD_LICENSE = GPL-2.0+
 BIRD_LICENSE_FILES = README
 BIRD_DEPENDENCIES = host-flex host-bison
 
+BIRD_CONF_OPTS += --disable-mpls-kernel --disable-libssh
+
 ifeq ($(BR2_PACKAGE_BIRD_CLIENT),y)
 BIRD_CONF_OPTS += --enable-client
 BIRD_DEPENDENCIES += ncurses readline
@@ -17,4 +19,23 @@ else
 BIRD_CONF_OPTS += --disable-client
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+BIRD_CONF_OPTS += --enable-pthreads
+else
+BIRD_CONF_OPTS += --disable-pthreads
+endif
+
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_BFD),bfd,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_BABEL),babel,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_BGP),bgp,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_MRT),mrt,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_OSPF),ospf,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_PERF),perf,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_PIPE),pipe,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_RADV),radv,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_RIP),rip,)
+BR2_PACKAGE_BIRD_PROTOCOLS += $(if $(BR2_PACKAGE_BIRD_STATIC),static,)
+
+BIRD_CONF_OPTS += --with-protocols=$(subst $(space),$(comma),$(strip $(BR2_PACKAGE_BIRD_PROTOCOLS)))
+
 $(eval $(autotools-package))
Signature · 1 line
2.19.1