Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor LED Group Management with MRW generated data" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit obmc-phosphor-utils |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 9 | |
| 10 | # Generate a YAML files based on MRW input |
| 11 | do_install_append() { |
Brad Bishop | b943d91 | 2017-01-31 10:37:13 -0500 | [diff] [blame] | 12 | USE_MRW="${@cf_enabled(d, 'obmc-mrw', 'yes')}" |
Patrick Williams | e81f8c0 | 2017-02-28 14:28:18 -0600 | [diff] [blame] | 13 | DEST=${D}${datadir}/phosphor-led-manager |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 14 | |
| 15 | if [ "${USE_MRW}" = "yes" ]; then |
| 16 | install -d ${DEST}/ |
| 17 | ${STAGING_BINDIR_NATIVE}/perl-native/perl \ |
| 18 | ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \ |
| 19 | -i ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml \ |
| 20 | -o ${DEST}/led.yaml |
| 21 | fi |
| 22 | } |