blob: a43b8129bcbea42ae714f945d3e4f0cca7aa74aa [file] [log] [blame]
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05301SUMMARY = "Phosphor LED Group Management with MRW generated data"
2PR = "r1"
3
4inherit native
5inherit obmc-phosphor-utils
6inherit obmc-phosphor-license
7
8DEPENDS += "mrw-native mrw-perl-tools-native"
9
10# Generate a YAML files based on MRW input
11do_install_append() {
Brad Bishopb943d912017-01-31 10:37:13 -050012 USE_MRW="${@cf_enabled(d, 'obmc-mrw', 'yes')}"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053013 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}