Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] sdmon: new package
@ 2026-05-06 15:27 Thomas Weber
  0 siblings, 0 replies; only message in thread
From: Thomas Weber @ 2026-05-06 15:27 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Weber

sdmon reads out the health data of some industrial grade SD cards.

Signed-off-by: Thomas Weber <thomas.weber@corscience.com>
---
 package/Config.in        |  1 +
 package/sdmon/Config.in  | 10 ++++++++++
 package/sdmon/sdmon.hash |  2 ++
 package/sdmon/sdmon.mk   | 22 ++++++++++++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/sdmon/Config.in
 create mode 100644 package/sdmon/sdmon.hash
 create mode 100644 package/sdmon/sdmon.mk

diff --git a/package/Config.in b/package/Config.in
index 9cae377fb5..9f27f62680 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -240,6 +240,7 @@ menu "Filesystem and flash utilities"
 	source "package/nfs-utils/Config.in"
 	source "package/nilfs-utils/Config.in"
 	source "package/ntfs-3g/Config.in"
+	source "package/sdmon/Config.in"
 	source "package/sp-oops-extract/Config.in"
 	source "package/squashfs/Config.in"
 	source "package/sshfs/Config.in"
diff --git a/package/sdmon/Config.in b/package/sdmon/Config.in
new file mode 100644
index 0000000000..121063a1d1
--- /dev/null
+++ b/package/sdmon/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SDMON
+	bool "sdmon"
+	help
+	  sdmon reads out the health data of some industrial grade SD Cards.
+	  sdmon uses CMD56 of the SD card specification.
+	  The output of the program is JSON so that it can be parsed easier in
+	  applications using sdmon
+
+	  https://www.ogi-it.com/portfolio/sdmon/
+
diff --git a/package/sdmon/sdmon.hash b/package/sdmon/sdmon.hash
new file mode 100644
index 0000000000..7f551e3449
--- /dev/null
+++ b/package/sdmon/sdmon.hash
@@ -0,0 +1,2 @@
+sha256  641c3d0cfa3efa23bb7deecaaef1271916065cd0a20d6f63594c7ad6b37fa3ca  v0.9.0.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
diff --git a/package/sdmon/sdmon.mk b/package/sdmon/sdmon.mk
new file mode 100644
index 0000000000..2baf70f4b0
--- /dev/null
+++ b/package/sdmon/sdmon.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# sdmon
+#
+################################################################################
+
+SDMON_VERSION = 0.9.0
+SDMON_SOURCE = v$(SDMON_VERSION).tar.gz
+SDMON_SITE = https://github.com/Ognian/sdmon/archive/refs/tags
+SDMON_LICENSE = GPL-2.0
+SDMON_LICENSE_FILES = LICENSE
+
+define SDMON_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS='$(TARGET_CFLAGS) -DVERSION=\"$(SDMON_VERSION)\"' -C $(@D)/src
+endef
+
+define SDMON_INSTALL_TARGET_CMDS
+	$(info Installing sdmon $(SDMON_VERSION))
+	$(INSTALL) -D -m 0755 $(@D)/src/sdmon $(TARGET_DIR)/usr/bin/sdmon
+endef
+
+$(eval $(generic-package))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-06 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 15:27 [Buildroot] [PATCH 1/1] sdmon: new package Thomas Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox