blob: 805106040c0b844d758f6928265ed1bf1650e7f6 [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
Chris Austen764ae432015-11-01 22:27:34 -06006inherit obmc-phosphor-license
Brad Bishop1d525fa2016-08-17 20:27:37 -04007inherit obmc-phosphor-systemd
Chris Austen764ae432015-11-01 22:27:34 -06008
Brad Bishopcbac7fc2016-06-13 12:53:41 -04009DEPENDS += " \
10 systemd \
11 host-ipmid \
12 "
Chris Austen764ae432015-11-01 22:27:34 -060013
14RDEPENDS_${PN} += "libsystemd"
15
Patrick Williamsb13076b2016-08-30 15:17:16 -050016TARGET_CXXFLAGS += " -fpic -std=gnu++14"
Patrick Williams9b60b5f2016-08-30 12:30:23 -050017TARGET_CFLAGS += " -fpic"
Brad Bishop1d525fa2016-08-17 20:27:37 -040018SYSTEMD_SERVICE_${PN} += "obmc-read-eeprom@.service"
Chris Austen764ae432015-11-01 22:27:34 -060019
20SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
21
Patrick Williamsa81b2a72016-08-30 11:50:02 -050022SRCREV = "619db930483505aa4352b8ae30d6c6b5a9b569cf"
Chris Austen764ae432015-11-01 22:27:34 -060023
Brad Bishopdc8ef992016-06-13 15:39:56 -040024FILES_SOLIBSDEV += "${libdir}/host-ipmid/lib*${SOLIBSDEV}"
25FILES_${PN} += "${libdir}/host-ipmid/lib*${SOLIBS}"
26FILES_${PN}-dbg += "${libdir}/host-ipmid/.debug/lib*${SOLIBS}"
Chris Austen764ae432015-11-01 22:27:34 -060027
28S = "${WORKDIR}/git"
29
Chris Austen7a8bc402015-11-24 22:04:53 -060030do_install() {
Brad Bishopcbac7fc2016-06-13 12:53:41 -040031 oe_runmake install DESTDIR=${D} LIBDIR=${libdir} BINDIR=${sbindir}
Chris Austen764ae432015-11-01 22:27:34 -060032}