Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 1 | SUMMARY = "sensor config for phosphor-host-ipmid" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit obmc-phosphor-license |
| 6 | inherit phosphor-ipmi-host |
| 7 | |
| 8 | SRC_URI += "file://config.yaml" |
| 9 | |
| 10 | DEPENDS += " \ |
| 11 | mrw-native \ |
| 12 | mrw-perl-tools-native \ |
| 13 | " |
| 14 | |
| 15 | PROVIDES += "virtual/phosphor-ipmi-sensor-inventory" |
| 16 | |
| 17 | S = "${WORKDIR}" |
| 18 | |
| 19 | do_install() { |
Ratan Gupta | b76fa56 | 2017-03-17 19:37:28 +0530 | [diff] [blame] | 20 | DEST=${D}${sensor_datadir} |
Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 21 | install -d ${DEST} |
| 22 | |
| 23 | ${bindir}/perl-native/perl \ |
| 24 | ${bindir}/gen_ipmi_sensor.pl \ |
| 25 | -i ${datadir}/obmc-mrw/${MACHINE}.xml \ |
| 26 | -m config.yaml \ |
| 27 | -o ${DEST}/sensor.yaml |
| 28 | } |