mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-22 08:28:21 +00:00
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>
28 lines
840 B
BlitzBasic
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"
|