package/bird: add rpki support

rpki support optionally depends on libssh

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2021-07-21 08:45:13 +02:00 committed by Thomas Petazzoni
parent 68d886c4ea
commit 9070a7355b
2 changed files with 13 additions and 0 deletions

View File

@ -73,6 +73,11 @@ config BR2_PACKAGE_BIRD_RIP
help
Enable RIP protocol.
config BR2_PACKAGE_BIRD_RPKI
bool "rpki"
help
Enable RPKI protocol.
config BR2_PACKAGE_BIRD_STATIC
bool "static"
help

View File

@ -19,6 +19,13 @@ else
BIRD_CONF_OPTS += --disable-client
endif
ifeq ($(BR2_PACKAGE_LIBSSH),y)
BIRD_CONF_OPTS += --enable-libssh
BIRD_DEPENDENCIES += libssh
else
BIRD_CONF_OPTS += --disable-libssh
endif
BIRD_PROTOCOLS = \
$(if $(BR2_PACKAGE_BIRD_BFD),bfd) \
$(if $(BR2_PACKAGE_BIRD_BABEL),babel) \
@ -29,6 +36,7 @@ BIRD_PROTOCOLS = \
$(if $(BR2_PACKAGE_BIRD_PIPE),pipe) \
$(if $(BR2_PACKAGE_BIRD_RADV),radv) \
$(if $(BR2_PACKAGE_BIRD_RIP),rip) \
$(if $(BR2_PACKAGE_BIRD_RPKI),rpki) \
$(if $(BR2_PACKAGE_BIRD_STATIC),static)
BIRD_CONF_OPTS += --with-protocols=$(subst $(space),$(comma),$(strip $(BIRD_PROTOCOLS)))