blob: 768ec91f9efd2f6139100208d148b105e8130d9a [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
George Liu8a9e29d2021-09-16 17:30:46 +080030PACKAGECONFIG ??= ""
31PACKAGECONFIG[ibm-parser] = "-Dibm-parser=enabled, -Dibm-parser=disabled, libgpiod nlohmann-json cli11"
32PACKAGECONFIG[vpd-manager] = "-Dvpd-manager=enabled, -Dvpd-manager=disabled"
33
Santosh Puranik24ed9c72020-03-10 04:31:38 -050034EXTRA_OEMESON = " \
35 -Dtests=disabled \
36 -DFRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \
37 -DPROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060038 "
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060039
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000040do_install:append() {
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060041 SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name}
42 DEST=${D}${inventory_envdir}
43 install -d ${DEST}
44 install ${SRC}/inventory ${DEST}
Deepak Kodihalli09fb6242017-02-15 04:48:20 -060045
Anton Blanchard782d7192021-08-16 23:51:27 -060046 install -d ${D}/${nonarch_base_libdir}/udev/rules.d/
47 install -m0644 ${WORKDIR}/70-op-vpd.rules ${D}/${nonarch_base_libdir}/udev/rules.d/
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060048}