blob: 12e9f277e067cb8b272acda681e5cd145cd64d62 [file] [log] [blame]
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06001SUMMARY = "Inventory config for openpower-vpd-parser"
2PR = "r1"
Brad Bishopfc00c752018-11-05 19:28:01 -08003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${OPENPOWERBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06005
6inherit native
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06007inherit openpower-fru-vpd
Matt Spinler0a8ea632017-12-14 13:31:55 -06008inherit mrw-xml
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06009
10DEPENDS += " \
11 mrw-native \
12 mrw-perl-tools-native \
13 virtual/openpower-fru-vpd-layout \
14 "
15
16PROVIDES += "virtual/openpower-fru-inventory"
17
18S = "${WORKDIR}"
19
20do_install() {
21 DEST=${D}${inventory_datadir_native}
22 install -d ${DEST}
23
24 ${bindir}/perl-native/perl \
25 ${bindir}/gen_openpower_fru.pl \
Matt Spinler0a8ea632017-12-14 13:31:55 -060026 -m ${mrw_datadir}/${MRW_XML} \
Deepak Kodihalliba5ce782017-02-05 10:10:44 -060027 -c ${vpdlayout_datadir}/layout.yaml \
28 -o ${DEST}/inventory
29}