blob: b88dedcd98b3bf1a026cfd3024b42d53bde70264 [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')}"
Patrick Williamse81f8c02017-02-28 14:28:18 -060013 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053014
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}