[PATCH openbmc] Patch btbridge makefile.

OpenBMC Patches patches at stwcx.xyz
Sun Nov 1 15:34:17 AEDT 2015


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

It doesn't work inside OE at the moment.
---
 .../common/recipes-phosphor/host-ipmid/btbridged.bb    |  2 +-
 .../host-ipmid/btbridged/makefile.patch                | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)
 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
index 5c0ec5c..27efa3f 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged.bb
@@ -10,7 +10,7 @@ SYSTEMD_SERVICE_${PN} = "btbridged.service"
 inherit obmc-phosphor-host-ipmi-hw
 
 S = "${WORKDIR}/git"
-SRC_URI += "git://github.com/openbmc/btbridge"
+SRC_URI += "git://github.com/openbmc/btbridge file://makefile.patch"
 SRCREV="c0ee3595f9a4784c7cf7ee60fd247d9712ec7e6b"
 
 # This is how linux-libc-headers says to include custom uapi headers
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..7cb1abe
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/btbridged/makefile.patch
@@ -0,0 +1,18 @@
+diff --git a/Makefile b/Makefile
+index a55897f..52e1063 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,7 @@
+-CPPFLAGS=$(shell pkg-config --cflags libsystemd)
+-LDFLAGS=$(shell pkg-config --libs libsystemd)
++all: btbridged
+ 
+-EXE = btbridged
+-
+-all: $(EXE)
++btbridged: btbridged.c
++	$(CC) $(CFLAGS) `pkg-config --cflags --libs libsystemd` $^ -o $@
+ 
+ clean:
+-	rm -rf *.o $(EXE)
++	rm -f *.o btbridge
-- 
2.6.0




More information about the openbmc mailing list