blob: 0d69af164349e56333c203a2e2605fc27eb56356 [file] [log] [blame]
Chris Austenf7cefb12015-11-01 22:27:34 -06001SUMMARY = "Phosphor OpenBMC WriteFRU for OpenPOWER systems"
2DESCRIPTION = "Phosphor OpenBMC WriteFRU for OpenPOWER based systems"
3HOMEPAGE = "https://github.com/openbmc/ipmi-fru-parser"
4PR = "r1"
5
6RRECOMMENDS_${PN} = "virtual/obmc-phosphor-host-ipmi-hw"
7
8inherit obmc-phosphor-license
Brad Bishop0fe80462016-08-17 20:27:37 -04009inherit obmc-phosphor-systemd
Chris Austenf7cefb12015-11-01 22:27:34 -060010
Brad Bishopdd2e4fa2016-06-13 12:53:41 -040011DEPENDS += " \
12 systemd \
13 host-ipmid \
14 "
Chris Austenf7cefb12015-11-01 22:27:34 -060015
16RDEPENDS_${PN} += "libsystemd"
17
Patrick Williams805d4db2016-08-30 15:17:16 -050018TARGET_CXXFLAGS += " -fpic -std=gnu++14"
Patrick Williams8592c8c2016-08-30 12:30:23 -050019TARGET_CFLAGS += " -fpic"
Brad Bishop0fe80462016-08-17 20:27:37 -040020SYSTEMD_SERVICE_${PN} += "obmc-read-eeprom@.service"
Chris Austenf7cefb12015-11-01 22:27:34 -060021
22SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
23
Patrick Williamsc7d3e202016-08-30 11:50:02 -050024SRCREV = "619db930483505aa4352b8ae30d6c6b5a9b569cf"
Chris Austenf7cefb12015-11-01 22:27:34 -060025
Brad Bishop431d5982016-06-13 15:39:56 -040026FILES_SOLIBSDEV += "${libdir}/host-ipmid/lib*${SOLIBSDEV}"
27FILES_${PN} += "${libdir}/host-ipmid/lib*${SOLIBS}"
28FILES_${PN}-dbg += "${libdir}/host-ipmid/.debug/lib*${SOLIBS}"
Chris Austenf7cefb12015-11-01 22:27:34 -060029
30S = "${WORKDIR}/git"
31
Chris Austen652fee82015-11-24 22:04:53 -060032do_install() {
Brad Bishopdd2e4fa2016-06-13 12:53:41 -040033 oe_runmake install DESTDIR=${D} LIBDIR=${libdir} BINDIR=${sbindir}
Chris Austenf7cefb12015-11-01 22:27:34 -060034}