Deepak Kodihalli | ba5ce78 | 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 |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 7 | inherit mrw-xml |
Deepak Kodihalli | ba5ce78 | 2017-02-05 10:10:44 -0600 | [diff] [blame] | 8 | |
| 9 | DEPENDS += " \ |
| 10 | mrw-native \ |
| 11 | mrw-perl-tools-native \ |
| 12 | virtual/openpower-fru-vpd-layout \ |
| 13 | " |
| 14 | |
| 15 | PROVIDES += "virtual/openpower-fru-inventory" |
| 16 | |
| 17 | S = "${WORKDIR}" |
| 18 | |
| 19 | do_install() { |
| 20 | DEST=${D}${inventory_datadir_native} |
| 21 | install -d ${DEST} |
| 22 | |
| 23 | ${bindir}/perl-native/perl \ |
| 24 | ${bindir}/gen_openpower_fru.pl \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 25 | -m ${mrw_datadir}/${MRW_XML} \ |
Deepak Kodihalli | ba5ce78 | 2017-02-05 10:10:44 -0600 | [diff] [blame] | 26 | -c ${vpdlayout_datadir}/layout.yaml \ |
| 27 | -o ${DEST}/inventory |
| 28 | } |