blob: b9555159d3127acb9a6d51bc725acbacd53bcdd1 [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
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000026SYSTEMD_SERVICE:${PN} += "op-vpd-parser.service"
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060027
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
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000036do_install:append() {
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060037 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
Anton Blanchard782d7192021-08-16 23:51:27 -060042 install -d ${D}/${nonarch_base_libdir}/udev/rules.d/
43 install -m0644 ${WORKDIR}/70-op-vpd.rules ${D}/${nonarch_base_libdir}/udev/rules.d/
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060044}