From: James Lee <james@codeconstruct.com.au>
To: openembedded-devel@lists.openembedded.org
Cc: andrew@codeconstruct.com.au, matt@codeconstruct.com.au,
jk@codeconstruct.com.au
Subject: [oe][meta-networking][PATCH] mctp: upgrade 2.6 -> 2.7
Date: Wed, 14 Oct 2026 15:53:25 +0800 [thread overview]
Message-ID: <20261014075325.1205663-1-james@codeconstruct.com.au> (raw)
mctp version 2.7 adds Meson's installation tags to the project, now allowing
binaries to be selectively installed.
Use MESON_INSTALL_TAGS to selectively install files specific to each recipe.
No longer rm in mctpd's do_install step, which was a now-unneeded hack.
Meson tags prevent installation of the extra binaries.
Add mctpd.conf to FILES in the mctpd recipe following its installation to
improve recipe readability.
Signed-off-by: James Lee <james@codeconstruct.com.au>
---
meta-networking/recipes-support/mctp/mctp.inc | 2 +-
.../recipes-support/mctp/{mctp_2.6.bb => mctp_2.7.bb} | 1 +
.../mctp/{mctpd_2.6.bb => mctpd_2.7.bb} | 11 +++--------
3 files changed, 5 insertions(+), 9 deletions(-)
rename meta-networking/recipes-support/mctp/{mctp_2.6.bb => mctp_2.7.bb} (80%)
rename meta-networking/recipes-support/mctp/{mctpd_2.6.bb => mctpd_2.7.bb} (73%)
diff --git a/meta-networking/recipes-support/mctp/mctp.inc b/meta-networking/recipes-support/mctp/mctp.inc
index c8fc98f63a..05a09f6c70 100644
--- a/meta-networking/recipes-support/mctp/mctp.inc
+++ b/meta-networking/recipes-support/mctp/mctp.inc
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21"
SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https;tag=v${PV}"
-SRCREV = "31ac0e86b0e23d32abf34d191653a87a47f3c9a7"
+SRCREV = "eca0e9a7f87ed478be206e4f52bcd51561da18aa"
inherit meson pkgconfig
diff --git a/meta-networking/recipes-support/mctp/mctp_2.6.bb b/meta-networking/recipes-support/mctp/mctp_2.7.bb
similarity index 80%
rename from meta-networking/recipes-support/mctp/mctp_2.6.bb
rename to meta-networking/recipes-support/mctp/mctp_2.7.bb
index 5811495c66..6d2a401716 100644
--- a/meta-networking/recipes-support/mctp/mctp_2.6.bb
+++ b/meta-networking/recipes-support/mctp/mctp_2.7.bb
@@ -3,3 +3,4 @@ require mctp.inc
SUMMARY = "Management Component Transport Protocol (MCTP) utilities"
MESON_TARGET = "mctp mctp-client"
+MESON_INSTALL_TAGS += "utils"
diff --git a/meta-networking/recipes-support/mctp/mctpd_2.6.bb b/meta-networking/recipes-support/mctp/mctpd_2.7.bb
similarity index 73%
rename from meta-networking/recipes-support/mctp/mctpd_2.6.bb
rename to meta-networking/recipes-support/mctp/mctpd_2.7.bb
index 139865d7c4..b8b3719c9e 100644
--- a/meta-networking/recipes-support/mctp/mctpd_2.6.bb
+++ b/meta-networking/recipes-support/mctp/mctpd_2.7.bb
@@ -4,6 +4,8 @@ SUMMARY = "Management Component Transport Protocol (MCTP) control protocol daemo
inherit systemd features_check useradd
+MESON_INSTALL_TAGS += "mctpd"
+
do_install:append () {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/conf/mctpd.service \
@@ -14,6 +16,7 @@ do_install:append () {
install -m 0644 ${S}/conf/mctpd-dbus.conf \
${D}${datadir}/dbus-1/system.d/mctpd.conf
}
+FILES:${PN} += "${datadir}/dbus-1/system.d/mctpd.conf"
SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target"
@@ -22,11 +25,3 @@ USERADD_PARAM:${PN} = "-r -U -s /bin/false mctpd"
DEPENDS += "systemd"
REQUIRED_DISTRO_FEATURES = "systemd"
-
-# Meson adds mctp utility binaries to FILES and do_install(), which cannot be
-# overriden by MESON_TARGET. Override FILES and remove binaries to correct.
-FILES:${PN} = "${datadir}/dbus-1/system.d/mctpd.conf ${sbindir}/mctpd"
-
-do_install:append () {
- rm -r ${D}${bindir}
-}
--
2.47.3
reply other threads:[~2026-10-14 7:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261014075325.1205663-1-james@codeconstruct.com.au \
--to=james@codeconstruct.com.au \
--cc=andrew@codeconstruct.com.au \
--cc=jk@codeconstruct.com.au \
--cc=matt@codeconstruct.com.au \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.