blob: 01ed362d658908b5b94dccb10db6d0115b344586 [file] [log] [blame]
Deepak Kodihalliabaa00b2017-02-05 10:10:44 -06001SUMMARY = "Inventory config for openpower-vpd-parser"
2PR = "r1"
3
4inherit native
5inherit obmc-phosphor-license
6inherit openpower-fru-vpd
7
8DEPENDS += " \
9 mrw-native \
10 mrw-perl-tools-native \
11 virtual/openpower-fru-vpd-layout \
12 "
13
14PROVIDES += "virtual/openpower-fru-inventory"
15
16S = "${WORKDIR}"
17
18do_install() {
19 DEST=${D}${inventory_datadir_native}
20 install -d ${DEST}
21
22 ${bindir}/perl-native/perl \
23 ${bindir}/gen_openpower_fru.pl \
24 -m ${datadir}/obmc-mrw/${MACHINE}.xml \
25 -c ${vpdlayout_datadir}/layout.yaml \
26 -o ${DEST}/inventory
27}