blob: fb3259b4a85372093e420a486fc33f63e92a198e [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
Vishwanatha Subbanna8bec8252017-02-11 22:10:23 +05308PROVIDES += "virtual/phosphor-led-manager-config-native"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05309DEPENDS += "mrw-native mrw-perl-tools-native"
10
11# Generate a YAML files based on MRW input
12do_install_append() {
Brad Bishopb943d912017-01-31 10:37:13 -050013 USE_MRW="${@cf_enabled(d, 'obmc-mrw', 'yes')}"
Patrick Williamse81f8c02017-02-28 14:28:18 -060014 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053015
16 if [ "${USE_MRW}" = "yes" ]; then
17 install -d ${DEST}/
18 ${STAGING_BINDIR_NATIVE}/perl-native/perl \
19 ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \
20 -i ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml \
21 -o ${DEST}/led.yaml
22 fi
23}