[PATCH openbmc] Add ipmi fru write to dbus
OpenBMC Patches
patches at stwcx.xyz
Tue Nov 3 00:11:49 AEDT 2015
From: Chris Austen <austenc at us.ibm.com>
x
---
.../conf/machine/include/openpower.inc | 1 +
.../recipes-phosphor/host-ipmid/host-ipmid-fru.bb | 31 ++++++++++++++++++++++
meta-phosphor/conf/machine/include/sample.inc | 1 +
3 files changed, 33 insertions(+)
create mode 100644 meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
diff --git a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
index 820b0eb..48edd92 100644
--- a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
+++ b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
@@ -20,6 +20,7 @@ VIRTUAL-RUNTIME_obmc-phosphor-flash-ctl = " \
"
VIRTUAL-RUNTIME_obmc-phosphor-ipmi-parsers = " \
host-ipmid-oem \
+ host-ipmid-fru \
"
PREFERRED_PROVIDER_virtual/obmc-phosphor-host-ipmi-hw = "btbridged"
PREFERRED_PROVIDER_virtual/obmc-phosphor-chassis-mgmt = "skeleton"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
new file mode 100644
index 0000000..a4dcfab
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
@@ -0,0 +1,31 @@
+SUMMARY = "Phosphor OpenBMC WriteFRU for OpenPOWER systems"
+DESCRIPTION = "Phosphor OpenBMC WriteFRU for OpenPOWER based systems"
+HOMEPAGE = "https://github.com/openbmc/ipmi-fru-parser"
+PR = "r1"
+
+RRECOMMENDS_${PN} = "virtual/obmc-phosphor-host-ipmi-hw"
+
+inherit obmc-phosphor-license
+
+DEPENDS += "systemd \
+ host-ipmid \
+ "
+
+
+RDEPENDS_${PN} += "libsystemd"
+
+TARGET_CFLAGS += "-std=gnu++14"
+
+SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
+
+SRCREV = "675272789d4dba9a8c308f3cb1f7deb8b5b2ec41"
+
+FILES_${PN} += "${libdir}/host-ipmid/*.so"
+FILES_${PN}-dbg += "${libdir}/host-ipmid/.debug"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+ install -m 0755 -d ${D}${libdir}/host-ipmid
+ install -m 0755 ${S}/*.so ${D}${libdir}/host-ipmid/
+}
diff --git a/meta-phosphor/conf/machine/include/sample.inc b/meta-phosphor/conf/machine/include/sample.inc
index 2b8f986..040cc57 100644
--- a/meta-phosphor/conf/machine/include/sample.inc
+++ b/meta-phosphor/conf/machine/include/sample.inc
@@ -19,6 +19,7 @@ VIRTUAL-RUNTIME_obmc-phosphor-flash-ctl = " \
"
VIRTUAL-RUNTIME_obmc-phosphor-ipmi-parsers = " \
host-ipmid-oem \
+ host-ipmid-fru \
"
PREFERRED_PROVIDER_virtual/obmc-phosphor-host-ipmi-hw ?= "host-ipmi-hw-example"
--
2.6.0
More information about the openbmc
mailing list