blob: 6eb76ac4ed79e4efec2c7026a8ebe26d970d3318 [file] [log] [blame]
Deepak Kodihalliba5ce782017-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
Matt Spinler0a8ea632017-12-14 13:31:55 -06007inherit mrw-xml
Deepak Kodihalliba5ce782017-02-05 10:10:44 -06008
9DEPENDS += " \
10 mrw-native \
11 mrw-perl-tools-native \
12 virtual/openpower-fru-vpd-layout \
13 "
14
15PROVIDES += "virtual/openpower-fru-inventory"
16
17S = "${WORKDIR}"
18
19do_install() {
20 DEST=${D}${inventory_datadir_native}
21 install -d ${DEST}
22
23 ${bindir}/perl-native/perl \
24 ${bindir}/gen_openpower_fru.pl \
Matt Spinler0a8ea632017-12-14 13:31:55 -060025 -m ${mrw_datadir}/${MRW_XML} \
Deepak Kodihalliba5ce782017-02-05 10:10:44 -060026 -c ${vpdlayout_datadir}/layout.yaml \
27 -o ${DEST}/inventory
28}