Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor LED Group Management with MRW generated data" |
| 2 | PR = "r1" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 5 | |
| 6 | inherit native |
| 7 | inherit obmc-phosphor-utils |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 8 | inherit mrw-xml |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 9 | |
Vishwanatha Subbanna | 7f07e7d | 2017-02-11 22:10:23 +0530 | [diff] [blame] | 10 | PROVIDES += "virtual/phosphor-led-manager-config-native" |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 11 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 12 | |
| 13 | # Generate a YAML files based on MRW input |
| 14 | do_install_append() { |
Brad Bishop | b81d428 | 2018-03-08 22:29:25 -0500 | [diff] [blame] | 15 | USE_MRW="${@df_enabled(d, 'obmc-mrw', 'yes')}" |
Patrick Williams | 1603890 | 2017-02-28 14:28:18 -0600 | [diff] [blame] | 16 | DEST=${D}${datadir}/phosphor-led-manager |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 17 | |
| 18 | if [ "${USE_MRW}" = "yes" ]; then |
| 19 | install -d ${DEST}/ |
| 20 | ${STAGING_BINDIR_NATIVE}/perl-native/perl \ |
| 21 | ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 22 | -i ${mrw_datadir}/${MRW_XML} \ |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 23 | -o ${DEST}/led.yaml |
| 24 | fi |
| 25 | } |