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" |
| 4 | |
| 5 | inherit autotools pkgconfig |
| 6 | inherit openpower-fru-vpd |
| 7 | inherit pythonnative |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
| 10 | require ${PN}.inc |
| 11 | |
Deepak Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 12 | SRC_URI += "file://70-op-vpd.rules" |
| 13 | |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 14 | DEPENDS += " \ |
| 15 | virtual/openpower-fru-vpd-layout \ |
| 16 | virtual/openpower-fru-inventory \ |
Deepak Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 17 | virtual/openpower-fru-properties \ |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 18 | sdbusplus \ |
| 19 | phosphor-logging \ |
| 20 | python-mako-native \ |
| 21 | python-pyyaml-native \ |
| 22 | autoconf-archive-native \ |
| 23 | " |
| 24 | |
| 25 | RDEPENDS_${PN} += " \ |
| 26 | sdbusplus \ |
| 27 | phosphor-logging \ |
| 28 | " |
| 29 | |
| 30 | SYSTEMD_SERVICE_${PN} += "op-vpd-parser.service" |
| 31 | |
| 32 | S = "${WORKDIR}/git" |
| 33 | |
Deepak Kodihalli | f7a1a78 | 2017-02-20 00:21:12 -0600 | [diff] [blame] | 34 | EXTRA_OECONF = " \ |
| 35 | FRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \ |
| 36 | PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \ |
| 37 | " |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 38 | |
| 39 | do_install_append() { |
| 40 | SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name} |
| 41 | DEST=${D}${inventory_envdir} |
| 42 | install -d ${DEST} |
| 43 | install ${SRC}/inventory ${DEST} |
Deepak Kodihalli | 09fb624 | 2017-02-15 04:48:20 -0600 | [diff] [blame] | 44 | |
| 45 | install -d ${D}/${base_libdir}/udev/rules.d/ |
| 46 | install ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/ |
Deepak Kodihalli | 75c32cc | 2017-02-05 10:39:06 -0600 | [diff] [blame] | 47 | } |