meta-phosphor: mctp: Add PACKAGECONFIG[systemd]
Change-Id: I9ea3a1d0305f339631a443bea09af6fea8d9e34f
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb b/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
index 5ad5ea3..1ab55b7 100644
--- a/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
+++ b/meta-phosphor/recipes-phosphor/mctp/mctp_git.bb
@@ -12,7 +12,6 @@
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 @@
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