Bump Buildroot to 2021.02-rc3 (#1260)

* Rebase patches to Buildroot 2021.02-rc3

* Update Buildroot to 2021.02-rc3

* Declare Kernel headers to be Linux version 5.10 (since they are, and new Buildroot knows about 5.10)
This commit is contained in:
Stefan Agner
2021-03-04 00:50:33 +01:00
committed by GitHub
parent b77d633382
commit f358f322da
2130 changed files with 23612 additions and 21038 deletions

View File

@@ -3,5 +3,24 @@ config BR2_PACKAGE_MROUTED
depends on BR2_USE_MMU # fork()
help
An implementation of the DVMRP multicast routing protocol.
Unlike PIM a DVMRP router has a distance vector protocol (like
RIP) built-in to figure out the reverse-path to the multicast
source. This package comes with mrouted and mroutectl. Where
the latter is used to query status and control operation.
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

View File

@@ -0,0 +1,62 @@
#!/bin/sh
DAEMON="mrouted"
PIDFILE="/var/run/$DAEMON.pid"
MROUTED_ARGS="-w 30"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
start() {
printf 'Starting %s: ' "$DAEMON"
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -S -q -p "$PIDFILE" -x "/sbin/$DAEMON" \
-- $MROUTED_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
stop() {
printf 'Stopping %s: ' "$DAEMON"
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
restart() {
stop
sleep 1
start
}
# SIGHUP makes mrouted reload its configuration
reload() {
printf 'Reloading %s: ' "$DAEMON"
start-stop-daemon -K -s HUP -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
case "$1" in
start|stop|restart|reload)
"$1";;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac

View File

@@ -1,6 +1,6 @@
# From https://github.com/troglobit/mrouted/releases/download/4.1/mrouted-4.1.tar.gz.md5
md5 e1f9bc0a895a2accae511a44e2a4a6f7 mrouted-4.1.tar.gz
# From https://github.com/troglobit/mrouted/releases/download/4.2/mrouted-4.2.tar.gz.md5
md5 b921f9e152e039efdac745438ef8362c mrouted-4.2.tar.gz
# Locally calculated
sha256 fd4735316f5510dfccfcbed441aa11619b261501dccf9e793a311d618c0843c5 mrouted-4.1.tar.gz
sha256 689541334ea951286054b771640e9d0f26b6a3242ff7f3894a3ef1b680811b34 mrouted-4.2.tar.gz
sha256 834f45ed282fd010f354ecc0a50538af519a1cfcc4d2866de3be06982fa9ed29 LICENSE

View File

@@ -4,17 +4,35 @@
#
################################################################################
MROUTED_VERSION = 4.1
MROUTED_VERSION = 4.2
MROUTED_SITE = \
https://github.com/troglobit/mrouted/releases/download/$(MROUTED_VERSION)
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
endef
define MROUTED_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/mrouted.service \
$(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))