blob: 0d69af164349e56333c203a2e2605fc27eb56356 [file] [log] [blame]
Chris Austen764ae432015-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 Bishop1d525fa2016-08-17 20:27:37 -04009inherit obmc-phosphor-systemd
Chris Austen764ae432015-11-01 22:27:34 -060010
Brad Bishopcbac7fc2016-06-13 12:53:41 -040011DEPENDS += " \
12 systemd \
13 host-ipmid \
14 "
Chris Austen764ae432015-11-01 22:27:34 -060015
16RDEPENDS_${PN} += "libsystemd"
17
Patrick Williamsb13076b2016-08-30 15:17:16 -050018TARGET_CXXFLAGS += " -fpic -std=gnu++14"
Patrick Williams9b60b5f2016-08-30 12:30:23 -050019TARGET_CFLAGS += " -fpic"
Brad Bishop1d525fa2016-08-17 20:27:37 -040020SYSTEMD_SERVICE_${PN} += "obmc-read-eeprom@.service"
Chris Austen764ae432015-11-01 22:27:34 -060021
22SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
23
Patrick Williamsa81b2a72016-08-30 11:50:02 -050024SRCREV = "619db930483505aa4352b8ae30d6c6b5a9b569cf"
Chris Austen764ae432015-11-01 22:27:34 -060025
Brad Bishopdc8ef992016-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 Austen764ae432015-11-01 22:27:34 -060029
30S = "${WORKDIR}/git"
31
Chris Austen7a8bc402015-11-24 22:04:53 -060032do_install() {
Brad Bishopcbac7fc2016-06-13 12:53:41 -040033 oe_runmake install DESTDIR=${D} LIBDIR=${libdir} BINDIR=${sbindir}
Chris Austen764ae432015-11-01 22:27:34 -060034}