summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2021-05-12 16:01:34 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-06-23 14:34:28 +0300
commitd957f038b7dfe18ad22f2cfa65701542216ad7c8 (patch)
treeeefdca97e5bfa4b783f3f109dda48f8d9b1c8508
parentefdcf4fec21bdcf8fcaaef7af7e78708f5d9c99a (diff)
downloadopenbmc-d957f038b7dfe18ad22f2cfa65701542216ad7c8.tar.xz
meta-phosphor: mctp: Add PACKAGECONFIG[systemd]
Change-Id: I9ea3a1d0305f339631a443bea09af6fea8d9e34f Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-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