openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-networking][PATCH] mctp: Add MCTP control utilities
@ 2021-10-26  2:39 Jeremy Kerr
  0 siblings, 0 replies; only message in thread
From: Jeremy Kerr @ 2021-10-26  2:39 UTC (permalink / raw)
  To: openembedded-devel

This change adds a recipe for the Management Component Transport
Protocol userspace utilities. This contains:

- the command-line 'mctp' tool, similar to 'ip', for setting up links,
  assigning local address and configuring routing.

- an optional 'mctpd' daemon, which implements the MCTP control
  protocol, and manages remote address assignment.

The latter depends on systemd (for sdbus), so use a
PACKAGECONFIG[systemd] for the conditional service installation.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
---
 .../recipes-support/mctp/mctp_git.bb          | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 meta-networking/recipes-support/mctp/mctp_git.bb

diff --git a/meta-networking/recipes-support/mctp/mctp_git.bb b/meta-networking/recipes-support/mctp/mctp_git.bb
new file mode 100644
index 000000000..cab5d6c13
--- /dev/null
+++ b/meta-networking/recipes-support/mctp/mctp_git.bb
@@ -0,0 +1,31 @@
+SUMMARY = "Management Component Control Protocol utilities"
+HOMEPAGE = "http://www.github.com/CodeConstruct/mctp"
+SECTION = "net"
+LICENSE = "GPLv2"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21"
+
+SRCREV = "a8658290b7914f67146a982671b09f2270ba1654"
+
+SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd
+
+PACKAGECONFIG ??= " \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
+
+# mctpd will only be built if pkg-config detects libsystemd; in which case
+# we'll want to declare the dep and install the service.
+PACKAGECONFIG[systemd] = ",,systemd,libsystemd"
+SYSTEMD_SERVICE:${PN} = "mctpd.service"
+
+do_install:append () {
+    if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then
+        install -d ${D}${systemd_system_unitdir}
+        install -m 0644 ${S}/conf/mctpd.service \
+                ${D}${systemd_system_unitdir}/mctpd.service
+    fi
+}
-- 
2.33.0



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

only message in thread, other threads:[~2021-10-26  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26  2:39 [meta-networking][PATCH] mctp: Add MCTP control utilities Jeremy Kerr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).