Skip to contentSkip to conversation

package/kmon: new package

PATCH In review Yu Chien Peter Lin via buildroot 1 participant 2 messages May 12, 2024 – Jul 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/kmon: new package

Add Kmon, a Rust-based, text-UI tool for managing Linux kernel modules and monitoring kernel activities, providing a single interface for various tools like dmesg and kmod.

---
 package/Config.in      |  1 +
 package/kmon/Config.in |  9 +++++++++
 package/kmon/kmon.hash |  4 ++++
 package/kmon/kmon.mk   | 12 ++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/kmon/Config.in
 create mode 100644 package/kmon/kmon.hash
 create mode 100644 package/kmon/kmon.mk
package/Config.in +1 -0
index 0c17154877..f17547775e 100644
@@ -2753,6 +2753,7 @@ menu "System tools"
 	source "package/jailhouse/Config.in"
 	source "package/keyutils/Config.in"
 	source "package/kmod/Config.in"
+	source "package/kmon/Config.in"
 	source "package/kvmtool/Config.in"
 	source "package/libostree/Config.in"
 	source "package/libvirt/Config.in"
package/kmon/Config.in new file +9 -0
new file mode 100644
index 0000000000..7c56f387fa
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_KMON
+	bool "kmon"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	select BR2_PACKAGE_HOST_RUSTC
+	help
+	  kmon provides a terminal UI for managing kernel modules
+	  and monitoring kernel activities.
+
+	  https://github.com/orhun/kmon
package/kmon/kmon.hash new file +4 -0
new file mode 100644
index 0000000000..87b7ab5986
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  bc2d495bfca48cdfe4d4e3cab1dafd887ebbca9310a99613182b4f26c530acc5  kmon-v1.6.5.tar.gz
+sha256  f1d7ca1381b10a10523fbde322ffcd54245328b1b442a9d3e348c800279a29de  kmon-v1.6.5-cargo2.tar.gz
+sha256  3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986  LICENSE
package/kmon/kmon.mk new file +12 -0
new file mode 100644
index 0000000000..5208124223
@@ -0,0 +1,12 @@
+################################################################################
+#
+# kmon
+#
+################################################################################
+
+KMON_VERSION = v1.6.5
+KMON_SITE = $(call github,orhun,kmon,$(KMON_VERSION))
+KMON_LICENSE = GPL-3.0
+KMON_LICENSE_FILES = LICENSE
+
+$(eval $(cargo-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello!

Quoted 5 lines · On Sun, 12 May 2024 15:44:59 +0800 Yu Chien Peter Lin via buildroot…

Add Kmon, a Rust-based, text-UI tool for managing Linux kernel modules and monitoring kernel activities, providing a single interface for various tools like dmesg and kmod.

Thanks a lot for your patch, and sorry for the delay in getting back to you. I have applied your patch, with some small changes. See below.

Quoted 6 lines
---
 package/Config.in      |  1 +
 package/kmon/Config.in |  9 +++++++++
 package/kmon/kmon.hash |  4 ++++
 package/kmon/kmon.mk   | 12 ++++++++++++
 4 files changed, 26 insertions(+)

An entry in the DEVELOPERS file was missing, so I added it.

package/kmon/kmon.mk line 8

Quoted 2 lines
package/kmon/kmon.mk new file +2 -0
+KMON_VERSION = v1.6.5
+KMON_SITE = $(call github,orhun,kmon,$(KMON_VERSION))

Here we don't want the "v" in "v1.6.5" to be in the KMON_VERSION, but in KMON_SITE, so that KMON_VERSION has a chance to match with the version reported by the release-monitoring.org service.

As said: applied with those 2 (small) changes.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot