blob: e986f17d9f74df0aba1a2dc892745aca6a30dc67 [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
6inherit autotools pkgconfig
7inherit openpower-fru-vpd
Santosh Puranik6e333ef2020-04-03 15:33:26 +05308inherit python3native
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -06009inherit obmc-phosphor-systemd
10
11require ${PN}.inc
12
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
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060030EXTRA_OECONF = " \
31 FRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \
32 PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \
33 "
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060034
35do_install_append() {
36 SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name}
37 DEST=${D}${inventory_envdir}
38 install -d ${DEST}
39 install ${SRC}/inventory ${DEST}
Deepak Kodihalli09fb6242017-02-15 04:48:20 -060040
41 install -d ${D}/${base_libdir}/udev/rules.d/
Brad Bishop3d262142019-11-14 15:00:13 -050042 install -m0644 ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060043}