summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/recipes-phosphor/mctp/mctp_git.bb')
-rw-r--r--meta-phosphor/recipes-phosphor/mctp/mctp_git.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb b/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
index 5ad5ea3a7..1ab55b771 100644
--- a/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
+++ b/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
@@ -12,7 +12,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0d30807bb7a4f16d36e96b78f9ed8fae"
SRC_URI = "git://github.com/openbmc/libmctp \
file://default"
SRCREV = "34d4c96fcf9691e060d8a7f56633bf196c82a52f"
-CONFFILES_${PN} = "${sysconfdir}/default/mctp"
DEPENDS += "autoconf-archive-native \
systemd \
@@ -20,6 +19,12 @@ DEPENDS += "autoconf-archive-native \
SYSTEMD_SERVICE_${PN} = "mctp-demux.service"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, \
+ --without-systemdsystemunitdir,systemd"
+
+CONFFILES_${PN} = "${sysconfdir}/default/mctp"
+
do_install_append() {
install -d ${D}${sysconfdir}/default
install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp