Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 1 | SUMMARY = "Inventory to Sensor config for phosphor-host-ipmi" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit obmc-phosphor-license |
| 6 | inherit phosphor-ipmi-host |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 7 | inherit mrw-xml |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 8 | |
| 9 | SRC_URI += "file://config.yaml" |
| 10 | |
| 11 | DEPENDS += " \ |
| 12 | mrw-native \ |
| 13 | mrw-perl-tools-native \ |
| 14 | " |
| 15 | |
| 16 | PROVIDES += "virtual/phosphor-ipmi-inventory-sel" |
| 17 | |
| 18 | S = "${WORKDIR}" |
| 19 | |
| 20 | do_install() { |
| 21 | DEST=${D}${sensor_datadir} |
| 22 | install -d ${DEST} |
| 23 | |
| 24 | ${bindir}/perl-native/perl \ |
| 25 | ${bindir}/gen_ipmi_sel.pl \ |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 26 | -i ${mrw_datadir}/${MRW_XML} \ |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 27 | -m config.yaml \ |
| 28 | -o ${DEST}/invsensor.yaml |
| 29 | } |