blob: 5e190418a6f7662136cc11769899b1f428e6eba1 [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
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06006inherit openpower-fru-vpd
Matt Spinler0a8ea632017-12-14 13:31:55 -06007inherit mrw-xml
Joseph Reynolds79809ea2021-02-26 15:37:31 -06008inherit native
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}