Files
James Lee fc3f39d1a7 mctp: upgrade 2.6 -> 2.7
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>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-10-15 22:21:57 -07:00

28 lines
840 B
BlitzBasic

require mctp.inc
SUMMARY = "Management Component Transport Protocol (MCTP) control protocol daemon"
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 \
${D}${systemd_system_unitdir}/mctpd.service
install -m 0644 ${S}/conf/*.target \
${D}${systemd_system_unitdir}/
install -d ${D}${datadir}/dbus-1/system.d
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"
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-r -U -s /bin/false mctpd"
DEPENDS += "systemd"
REQUIRED_DISTRO_FEATURES = "systemd"