blob: 4d7114a7380a8571dd085042fc5ca910f594d913 [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"
4
5inherit autotools pkgconfig
6inherit openpower-fru-vpd
7inherit pythonnative
8inherit obmc-phosphor-systemd
9
10require ${PN}.inc
11
Deepak Kodihalli09fb6242017-02-15 04:48:20 -060012SRC_URI += "file://70-op-vpd.rules"
13
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060014DEPENDS += " \
15 virtual/openpower-fru-vpd-layout \
16 virtual/openpower-fru-inventory \
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060017 virtual/openpower-fru-properties \
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060018 sdbusplus \
19 phosphor-logging \
20 python-mako-native \
21 python-pyyaml-native \
22 autoconf-archive-native \
23 "
24
25RDEPENDS_${PN} += " \
26 sdbusplus \
27 phosphor-logging \
28 "
29
30SYSTEMD_SERVICE_${PN} += "op-vpd-parser.service"
31
32S = "${WORKDIR}/git"
33
Deepak Kodihallif7a1a782017-02-20 00:21:12 -060034EXTRA_OECONF = " \
35 FRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \
36 PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \
37 "
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060038
39do_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 Kodihalli09fb6242017-02-15 04:48:20 -060044
45 install -d ${D}/${base_libdir}/udev/rules.d/
46 install ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/
Deepak Kodihalli75c32cc2017-02-05 10:39:06 -060047}