blob: da31ab9064a29dcb49ef9d3cc5db61a25f96264e [file] [log] [blame]
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -06001SUMMARY = "Parser for OpenPOWER-format FRU VPD"
2DESCRIPTION = "Parse OpenPOWER-format FRU VPD and update inventory"
3PR = "r1"
Patrick Venture2ab20932018-10-24 13:13:09 -07004PV = "1.0+git${SRCPV}"
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -06005
Santosh Puranik24ed9c72020-03-10 04:31:38 -05006inherit meson pkgconfig
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -06007inherit openpower-fru-vpd
Santosh Puranik6e333ef2020-04-03 15:33:26 +05308inherit python3native
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -06009inherit obmc-phosphor-systemd
10
Patrick Williams6c9e0142020-04-03 15:45:27 -050011require ${BPN}.inc
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060012
Deepak Kodihalli09fb6242017-02-15 04:48:20 -060013SRC_URI += "file://70-op-vpd.rules"
14
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060015DEPENDS += " \
16 virtual/openpower-fru-vpd-layout \
17 virtual/openpower-fru-inventory \
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060018 virtual/openpower-fru-properties \
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060019 sdbusplus \
20 phosphor-logging \
Santosh Puranik6e333ef2020-04-03 15:33:26 +053021 ${PYTHON_PN}-mako-native \
22 ${PYTHON_PN}-pyyaml-native \
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060023 autoconf-archive-native \
24 "
25
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060026SYSTEMD_SERVICE_${PN} += "op-vpd-parser.service"
27
28S = "${WORKDIR}/git"
29
Santosh Puranik24ed9c72020-03-10 04:31:38 -050030EXTRA_OEMESON = " \
31 -Dtests=disabled \
32 -DFRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \
33 -DPROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060034 "
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060035
36do_install_append() {
37 SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name}
38 DEST=${D}${inventory_envdir}
39 install -d ${DEST}
40 install ${SRC}/inventory ${DEST}
Deepak Kodihalli09fb6242017-02-15 04:48:20 -060041
42 install -d ${D}/${base_libdir}/udev/rules.d/
Brad Bishop3d262142019-11-14 15:00:13 -050043 install -m0644 ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060044}