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 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} += "op-vpd-parser.service" |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 27 | |
| 28 | S = "${WORKDIR}/git" |
| 29 | |
George Liu | 8a9e29d | 2021-09-16 17:30:46 +0800 | [diff] [blame] | 30 | PACKAGECONFIG ??= "" |
| 31 | PACKAGECONFIG[ibm-parser] = "-Dibm-parser=enabled, -Dibm-parser=disabled, libgpiod nlohmann-json cli11" |
| 32 | PACKAGECONFIG[vpd-manager] = "-Dvpd-manager=enabled, -Dvpd-manager=disabled" |
| 33 | |
Santosh Puranik | 24ed9c7 | 2020-03-10 04:31:38 -0500 | [diff] [blame] | 34 | EXTRA_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 Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 38 | " |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 39 | |
Adriana Kobylak | 8c6707f | 2021-08-06 17:35:36 +0000 | [diff] [blame] | 40 | do_install:append() { |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 41 | SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name} |
| 42 | DEST=${D}${inventory_envdir} |
| 43 | install -d ${DEST} |
| 44 | install ${SRC}/inventory ${DEST} |
Deepak Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 45 | |
Anton Blanchard | 782d719 | 2021-08-16 23:51:27 -0600 | [diff] [blame] | 46 | 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 Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 48 | } |