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,42 @@
From 4c0477bdaef56314eb4df4a432be54cc49238be0 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Mon, 1 Dec 2025 19:07:42 +0100
Subject: [PATCH] libled: provide basename if GLIBC is not avialable
If GNU basename is not avilable, define it. It is safer to use that
rather than include libgen.h with XPG basename() definition.
Suggested in
https://github.com/md-raid-utilities/ledmon/pull/272#issuecomment-3596495739
Code copied from
https://github.com/md-raid-utilities/mdadm/commit/9dbd11e091f84eb0bf9d717283774816c4c4453d
Upstream: https://github.com/md-raid-utilities/ledmon/pull/272
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/lib/libled_internal.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/lib/libled_internal.h b/src/lib/libled_internal.h
index 2355d30..2061fc2 100644
--- a/src/lib/libled_internal.h
+++ b/src/lib/libled_internal.h
@@ -70,4 +70,13 @@ led_status_t device_exclude_pattern_add(struct led_ctx *ctx, const char *path);
*/
void lib_log(struct led_ctx *ctx, enum led_log_level_enum loglevel, const char *buf, ...)
__attribute__ ((format (printf, 3, 4)));
+
+/*
+ * Ensure GNU basename behavior on GLIBC less systems.
+ */
+#ifndef __GLIBC__
+#define basename(path) \
+ (strrchr((path), '/') ? strrchr((path),'/') + 1 : (path))
+#endif
+
#endif
--
2.47.3

15
package/ledmon/Config.in Normal file
View File

@@ -0,0 +1,15 @@
config BR2_PACKAGE_LEDMON
bool "ledmon"
depends on BR2_PACKAGE_HAS_UDEV
depends on BR2_TOOLCHAIN_HAS_THREADS # sg3_utils
select BR2_PACKAGE_PCIUTILS
select BR2_PACKAGE_SG3_UTILS
help
Enclosure LED Utilities. The ledmon application is
a daemon process used to monitor a state of software
RAID devices (md only) or a state of block devices.
https://github.com/intel/ledmon
comment "ledmon needs udev and a toolchain w/ threads"
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 4f626400e41ab1e4317b886db5b5df1afa517e8e4faa80fd4378fd22b0bcd055 ledmon-1.1.0.tar.gz
sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING

20
package/ledmon/ledmon.mk Normal file
View File

@@ -0,0 +1,20 @@
################################################################################
#
# ledmon
#
################################################################################
LEDMON_VERSION = 1.1.0
LEDMON_SITE = $(call github,intel,ledmon,v$(LEDMON_VERSION))
LEDMON_DEPENDENCIES = host-autoconf-archive host-pkgconf pciutils sg3_utils udev
# The code base also include a COPYING.LIB file with the LGPL-2.1 text,
# and some source files are published under LGPL-2.1, but all of them are
# at some point linked with GPL-2.0 code, making the resulting binaries
# GPL-2.0 licensed
LEDMON_LICENSE = GPL-2.0
LEDMON_LICENSE_FILES = COPYING
# From git
LEDMON_AUTORECONF = YES
LEDMON_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
$(eval $(autotools-package))