Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
From 23877eaf1042b56e1bdca1883447e9a83d5e8263 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sun, 18 Jan 2026 14:26:05 +0100
Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
compatibility
Fixes:
CMake Error at CMakeLists.txt:6 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
Upstream: https://github.com/microchip-ung/mrp/pull/2
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d7a3798..a0ae196 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
project (mrp C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
## libnl ################################################
find_path(LibNL_INCLUDE_DIR netlink/netlink.h
--
2.47.3

18
package/mrp/Config.in Normal file
View File

@@ -0,0 +1,18 @@
config BR2_PACKAGE_MRP
bool "mrp"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
select BR2_PACKAGE_LIBEV
select BR2_PACKAGE_LIBMNL
select BR2_PACKAGE_LIBNL
select BR2_PACKAGE_CFM
help
This is the userspace application that configures the kernel
to run MRP protocol. The userspace application is made of 2
applications, one daemon and a client.
https://github.com/microchip-ung/mrp
comment "mrp needs a toolchain w/ threads, kernel headers >= 5.0"
depends on !BR2_TOOLCHAIN_HAS_THREADS \
|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0

55
package/mrp/S65mrp Normal file
View File

@@ -0,0 +1,55 @@
#!/bin/sh
#
# Start mrp
#
DAEMON="mrp_server"
PIDFILE="/var/run/$DAEMON.pid"
# shellcheck source=/dev/null
[ -r "/etc/default/mrp_server" ] && . "/etc/default/mrp_server"
start() {
printf "Starting mrp daemon: "
start-stop-daemon -S -b -q -m -p $PIDFILE \
-x /usr/bin/$DAEMON
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return $status
}
stop() {
printf "Stopping mrp daemon: "
start-stop-daemon -K -q -p $PIDFILE
status=$?
if [ "$status" -eq 0 ]; then
rm -f "$PIDFILE"
echo "OK"
else
echo "FAIL"
fi
return $status
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

3
package/mrp/mrp.hash Normal file
View File

@@ -0,0 +1,3 @@
# locally calculated
sha256 2b960d14c861b4e0332f411440b41a9c1c06ecce8ed6197944a74b1c8279c1cc mrp-1.2.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE

23
package/mrp/mrp.mk Normal file
View File

@@ -0,0 +1,23 @@
################################################################################
#
# mrp
#
################################################################################
MRP_VERSION = 1.2
MRP_SITE = $(call github,microchip-ung,mrp,v$(MRP_VERSION))
MRP_DEPENDENCIES = libev libmnl libnl cfm
MRP_LICENSE = GPL-2.0
MRP_LICENSE_FILES = LICENSE
define MRP_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D $(MRP_PKGDIR)/S65mrp \
$(TARGET_DIR)/etc/init.d/S65mrp
endef
define MRP_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(MRP_PKGDIR)/mrp.service \
$(TARGET_DIR)/usr/lib/systemd/system/mrp.service
endef
$(eval $(cmake-package))

10
package/mrp/mrp.service Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=Media Redundancy Protocol
After=network.target
[Service]
ExecStart=/usr/bin/mrp
Restart=always
[Install]
WantedBy=multi-user.target