package/mrouted: menuconfig support for enabling rsrr support
authorJoachim Wiberg <troglobit@gmail.com>
Sat, 23 Jan 2021 10:31:55 +0000 (11:31 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 23 Jan 2021 20:49:56 +0000 (21:49 +0100)
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr:
  - split long lines in help text
  - use traditional ifeq-else-endif block
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mrouted/Config.in
package/mrouted/mrouted.mk

index 95b4fb3825f9a21d58b50e79ef204ee2988b96a7..f8dd173c4afbf187b668c31271366deb10b4aed9 100644 (file)
@@ -11,3 +11,16 @@ config BR2_PACKAGE_MROUTED
          Note: at least two interfaces with MULTICAST flag is requried.
 
          http://github.com/troglobit/mrouted
+
+if BR2_PACKAGE_MROUTED
+
+config BR2_PACKAGE_MROUTED_RSRR
+       bool "enable RSRR for RSVP"
+       help
+         Routing Support for Resource Reservation, currently used by
+         RSVP. This is an EXPERIMENTAL feature.
+
+         For details, see:
+           http://tools.ietf.org/html/draft-ietf-rsvp-routing-02
+
+endif
index 46a0958d8d33e3b56570160eedf28b0677dd485d..95da0c622c668dff8f396934694c64a2fc738f4b 100644 (file)
@@ -10,9 +10,14 @@ MROUTED_SITE = \
 MROUTED_DEPENDENCIES = host-bison
 MROUTED_LICENSE = BSD-3-Clause
 MROUTED_LICENSE_FILES = LICENSE
-MROUTED_CONFIGURE_OPTS = --enable-rsrr
 MROUTED_CPE_ID_VENDOR = troglobit
 
+ifeq ($(BR2_PACKAGE_MROUTED_RSRR),y)
+MROUTED_CONF_OPTS += --enable-rsrr
+else
+MROUTED_CONF_OPTS += --disable-rsrr
+endif
+
 define MROUTED_INSTALL_INIT_SYSV
        $(INSTALL) -m 755 -D package/mrouted/S41mrouted \
                $(TARGET_DIR)/etc/init.d/S41mrouted