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 | |
| 6 | inherit autotools pkgconfig |
| 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 | |
| 11 | require ${PN}.inc |
| 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 | |
Deepak Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 30 | EXTRA_OECONF = " \ |
| 31 | FRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \ |
| 32 | PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \ |
| 33 | " |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 34 | |
| 35 | do_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 Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 40 | |
| 41 | install -d ${D}/${base_libdir}/udev/rules.d/ |
Brad Bishop | 3d26214 | 2019-11-14 15:00:13 -0500 | [diff] [blame] | 42 | 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] | 43 | } |