[PATCH openbmc 1/2] Add btbridged recipe

OpenBMC Patches patches at stwcx.xyz
Fri Oct 30 23:42:51 AEDT 2015


From: Brad Bishop <bradleyb at us.ibm.com>

---
 .../common/recipes-phosphor/host-ipmid/btbridged.bb    | 18 ++++++++++++++++++
 .../host-ipmid/btbridged/btbridged.service             |  8 ++++++++
 .../host-ipmid/btbridged/makefile.patch                | 11 +++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb
 create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service
 create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/makefile.patch

diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb
new file mode 100644
index 0000000..8572add
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Phosphor OpenBMC BT to DBUS"
+DESCRIPTION = "Phosphor OpenBMC BT to DBUS."
+PR = "r1"
+
+inherit obmc-phosphor-sdbus-service
+inherit obmc-phosphor-c-daemon
+
+SYSTEMD_SERVICE_${PN} = "btbridged.service"
+
+inherit obmc-phosphor-host-ipmi-hw
+
+S = "${WORKDIR}/git"
+SRC_URI += "git://github.com/openbmc/btbridge file://makefile.patch"
+SRCREV="5cb9032815aa9d2866229caac4943520d5f40dd8"
+
+# This is how linux-libc-headers says to include custom uapi headers
+EXTRA_OEMAKE_append = "CFLAGS=-I${STAGING_KERNEL_DIR}/include/uapi"
+DEPENDS += "virtual/kernel"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service
new file mode 100644
index 0000000..185119a
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/btbridged.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Phosphor OpenBMC BT to DBUS
+
+[Service]
+ExecStart=/usr/sbin/btbridged
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/makefile.patch b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/makefile.patch
new file mode 100644
index 0000000..a2cd522
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/makefile.patch
@@ -0,0 +1,11 @@
+diff --git a/Makefile b/Makefile
+index 7f62be2..52e1063 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,3 +2,6 @@ all: btbridged
+ 
+ btbridged: btbridged.c
+ 	$(CC) $(CFLAGS) `pkg-config --cflags --libs libsystemd` $^ -o $@
++
++clean:
++	rm -f *.o btbridge
-- 
2.6.0




More information about the openbmc mailing list