Add dbus config file for btbridged
Make use of the dbus and systemd bitbake class features.
Change-Id: I13be42101a490e9acdf1f0f5a03181ce65cdd2ea
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/host-ipmid/btbridged.bb b/common/recipes-phosphor/host-ipmid/btbridged.bb
index f3a7003..9ab1540 100644
--- a/common/recipes-phosphor/host-ipmid/btbridged.bb
+++ b/common/recipes-phosphor/host-ipmid/btbridged.bb
@@ -2,13 +2,16 @@
DESCRIPTION = "Phosphor OpenBMC BT to DBUS."
PR = "r1"
-inherit obmc-phosphor-sdbus-service
+inherit obmc-phosphor-dbus-service
inherit obmc-phosphor-c-daemon
-SYSTEMD_SERVICE_${PN} = "btbridged.service"
+DBUS_SERVICE_${PN} = "org.openbmc.HostIpmi.service"
inherit obmc-phosphor-host-ipmi-hw
+DEPENDS += "systemd"
+RDEPENDS_${PN} += "libsystemd"
+
S = "${WORKDIR}/git"
SRC_URI += "git://github.com/openbmc/btbridge"
SRCREV="39b3700766d851009258544aa0f75365f024c597"
diff --git a/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service b/common/recipes-phosphor/host-ipmid/btbridged/org.openbmc.HostIpmi.service
similarity index 84%
rename from common/recipes-phosphor/host-ipmid/btbridged/btbridged.service
rename to common/recipes-phosphor/host-ipmid/btbridged/org.openbmc.HostIpmi.service
index e89a369..60f1e8a 100644
--- a/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service
+++ b/common/recipes-phosphor/host-ipmid/btbridged/org.openbmc.HostIpmi.service
@@ -4,6 +4,8 @@
[Service]
Restart=always
ExecStart={sbindir}/btbridged
+Type=dbus
+BusName={BUSNAME}
[Install]
WantedBy={SYSTEMD_DEFAULT_TARGET}