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() { |
| 12 | USE_MRW="${@cf_enabled('obmc-mrw', 'yes', d)}" |
| 13 | DEST=${STAGING_DATADIR_NATIVE}/phosphor-led-manager |
| 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 | } |