blob: be0779fef548ab0b143069ab0f6c8cda09c430ee [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"
Brad Bishop1ebdb612019-09-13 12:18:25 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
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}