package/mrouted: ensure multicast routing is enabled in kernel
authorJoachim Wiberg <troglobit@gmail.com>
Sat, 23 Jan 2021 10:31:51 +0000 (11:31 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 23 Jan 2021 20:42:15 +0000 (21:42 +0100)
IP_MULTICAST depends on CONFIG_NET and CONFIG_INET, but those are really
depp-core symbols, and anyone enabling mrouted will be expected to
already have networking and TCP/IP supports enabled already in their
kernel configuraiton.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr:
  - add comment about NET and INET,
  - update commit log accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/mrouted/mrouted.mk

index 600506657741d0cef3d10420ac714d7555dca88d..2ee3c15aeae267d6640b42ffc0b5889da690f747 100644 (file)
@@ -18,4 +18,11 @@ define MROUTED_INSTALL_INIT_SYSTEMD
                $(TARGET_DIR)/usr/lib/systemd/system/mrouted.service
 endef
 
+# We will asume that CONFIG_NET and CONFIG_INET are already
+# set in the kernel configuration provided by the user.
+define MROUTED_LINUX_CONFIG_FIXUPS
+       $(call KCONFIG_ENABLE_OPT,CONFIG_IP_MULTICAST)
+       $(call KCONFIG_ENABLE_OPT,CONFIG_IP_MROUTE)
+endef
+
 $(eval $(autotools-package))