Deepak Kodihalli | abaa00b | 2017-02-05 10:10:44 -0600 | [diff] [blame] | 1 | SUMMARY = "Inventory config for openpower-vpd-parser" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit obmc-phosphor-license |
| 6 | inherit openpower-fru-vpd |
| 7 | |
| 8 | DEPENDS += " \ |
| 9 | mrw-native \ |
| 10 | mrw-perl-tools-native \ |
| 11 | virtual/openpower-fru-vpd-layout \ |
| 12 | " |
| 13 | |
| 14 | PROVIDES += "virtual/openpower-fru-inventory" |
| 15 | |
| 16 | S = "${WORKDIR}" |
| 17 | |
| 18 | do_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 | } |