Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 1 | SUMMARY = "Parser for OpenPOWER-format FRU VPD" |
| 2 | DESCRIPTION = "Parse OpenPOWER-format FRU VPD and update inventory" |
| 3 | PR = "r1" |
Patrick Venture | 2ab2093 | 2018-10-24 13:13:09 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 5 | |
Santosh Puranik | 24ed9c7 | 2020-03-10 04:31:38 -0500 | [diff] [blame] | 6 | inherit meson pkgconfig |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 7 | inherit openpower-fru-vpd |
Santosh Puranik | 6e333ef | 2020-04-03 15:33:26 +0530 | [diff] [blame] | 8 | inherit python3native |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 9 | inherit obmc-phosphor-systemd |
| 10 | |
Patrick Williams | 6c9e014 | 2020-04-03 15:45:27 -0500 | [diff] [blame] | 11 | require ${BPN}.inc |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 12 | |
Deepak Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 13 | SRC_URI += "file://70-op-vpd.rules" |
| 14 | |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 15 | DEPENDS += " \ |
| 16 | virtual/openpower-fru-vpd-layout \ |
| 17 | virtual/openpower-fru-inventory \ |
Deepak Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 18 | virtual/openpower-fru-properties \ |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 19 | sdbusplus \ |
| 20 | phosphor-logging \ |
Santosh Puranik | 6e333ef | 2020-04-03 15:33:26 +0530 | [diff] [blame] | 21 | ${PYTHON_PN}-mako-native \ |
| 22 | ${PYTHON_PN}-pyyaml-native \ |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 23 | autoconf-archive-native \ |
| 24 | " |
| 25 | |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 26 | SYSTEMD_SERVICE_${PN} += "op-vpd-parser.service" |
| 27 | |
| 28 | S = "${WORKDIR}/git" |
| 29 | |
Santosh Puranik | 24ed9c7 | 2020-03-10 04:31:38 -0500 | [diff] [blame] | 30 | EXTRA_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 Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 34 | " |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 35 | |
| 36 | do_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 Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 41 | |
| 42 | install -d ${D}/${base_libdir}/udev/rules.d/ |
Brad Bishop | 3d26214 | 2019-11-14 15:00:13 -0500 | [diff] [blame] | 43 | install -m0644 ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/ |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 44 | } |