blob: 251df427c2da96fef2d09276b51cd92c57f05e5d [file] [log] [blame]
Brad Bishopff7bf4b2017-01-17 09:14:15 -05001SUMMARY = "Phosphor IPMI Inventory Plugin"
2DESCRIPTION = "A Phosphor IPMI plugin that updates inventory."
Chris Austenf7cefb12015-11-01 22:27:34 -06003PR = "r1"
4
Matthew Barth2c455f02016-10-19 16:00:49 -05005inherit autotools pkgconfig
Brad Bishop0fe80462016-08-17 20:27:37 -04006inherit obmc-phosphor-systemd
Tom Joseph40b4e3f2017-02-01 19:47:27 +05307inherit obmc-phosphor-ipmiprovider-symlink
Brad Bishop2c5db6a2017-01-28 13:00:52 -05008inherit phosphor-ipmi-fru
9inherit pythonnative
Chris Austenf7cefb12015-11-01 22:27:34 -060010
Brad Bishopee064612017-01-17 10:10:02 -050011require ${PN}.inc
12
Brad Bishopdd2e4fa2016-06-13 12:53:41 -040013DEPENDS += " \
Brad Bishop2c5db6a2017-01-28 13:00:52 -050014 virtual/phosphor-ipmi-fru-hostfw-config\
15 virtual/phosphor-ipmi-fru-inventory \
Deepak Kodihalli5b183e02017-02-20 04:55:20 -060016 virtual/phosphor-ipmi-fru-properties \
Brad Bishopdd2e4fa2016-06-13 12:53:41 -040017 systemd \
Deepak Kodihalli5df911b2017-02-16 07:50:37 -060018 sdbusplus \
Brad Bishop2c5db6a2017-01-28 13:00:52 -050019 python-mako-native \
20 python-pyyaml-native \
Brad Bishopc30d7bb2017-01-17 10:07:14 -050021 phosphor-ipmi-host \
Matthew Barth2c455f02016-10-19 16:00:49 -050022 phosphor-mapper \
23 autoconf-archive-native \
Brad Bishopdd2e4fa2016-06-13 12:53:41 -040024 "
Chris Austenf7cefb12015-11-01 22:27:34 -060025
Deepak Kodihalli5df911b2017-02-16 07:50:37 -060026RDEPENDS_${PN} += " \
27 sdbusplus \
28 "
Chris Austenf7cefb12015-11-01 22:27:34 -060029
Brad Bishop0fe80462016-08-17 20:27:37 -040030SYSTEMD_SERVICE_${PN} += "obmc-read-eeprom@.service"
Chris Austenf7cefb12015-11-01 22:27:34 -060031
Chris Austenf7cefb12015-11-01 22:27:34 -060032S = "${WORKDIR}/git"
33
Tom Joseph40b4e3f2017-02-01 19:47:27 +053034HOSTIPMI_PROVIDER_LIBRARY += "libstrgfnhandler.so"
35
36FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
Matthew Barth2c455f02016-10-19 16:00:49 -050037FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
Tom Joseph40b4e3f2017-02-01 19:47:27 +053038FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
Brad Bishop2c5db6a2017-01-28 13:00:52 -050039
40# TODO: Fix the the ipmi-fru-parser code generator to handle split
41# host firmware / inventory YAML and replace the OECONF below with:
42#
43# EXTRA_OECONF += "INVENTORY_YAML=${inventory_datadir}/config.yaml"
44# EXTRA_OECONF += "HOSTFW_YAML=${hostfw_datadir}/config.yaml"
45#
46# For now the generator requires them to already be combined so we have:
Deepak Kodihalli5b183e02017-02-20 04:55:20 -060047EXTRA_OECONF = " \
48 YAML_GEN=${STAGING_DIR_NATIVE}${config_datadir}/config.yaml \
Ratan Guptadccf5ad2017-03-30 14:32:02 +053049 PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/extra-properties.yaml \
Deepak Kodihalli5b183e02017-02-20 04:55:20 -060050 "