ipmi-fru-parser: Convert build process to autotools
Change-Id: Ie700729e569fcacdc43d72ec2168cdd1abb0a623
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
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
index d6e8e17..c8dd3f9 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
@@ -3,30 +3,25 @@
HOMEPAGE = "https://github.com/openbmc/ipmi-fru-parser"
PR = "r1"
+inherit autotools pkgconfig
inherit obmc-phosphor-license
inherit obmc-phosphor-systemd
DEPENDS += " \
systemd \
host-ipmid \
+ phosphor-mapper \
+ autoconf-archive-native \
"
RDEPENDS_${PN} += "libsystemd"
-TARGET_CXXFLAGS += " -fpic -std=gnu++14"
-TARGET_CFLAGS += " -fpic"
SYSTEMD_SERVICE_${PN} += "obmc-read-eeprom@.service"
SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
-
-SRCREV = "155c34fbb61071f5b51240c4a50b49391e0877c1"
-
-FILES_SOLIBSDEV += "${libdir}/host-ipmid/lib*${SOLIBSDEV}"
-FILES_${PN} += "${libdir}/host-ipmid/lib*${SOLIBS}"
-FILES_${PN}-dbg += "${libdir}/host-ipmid/.debug/lib*${SOLIBS}"
+SRCREV = "ce3490e71f9f91bd20dbb9ac037079de4a3580a8"
S = "${WORKDIR}/git"
-do_install() {
- oe_runmake install DESTDIR=${D} LIBDIR=${libdir} BINDIR=${sbindir}
-}
+FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
+FILES_${PN}-dev_append = " ${libdir}/host-ipmid/lib*${SOLIBSDEV} ${libdir}/host-ipmid/*.la"