blob: 920f6374530b78ce91333a8dd5a1f6b57dafb2b6 [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
Matt Spinler3f6fcbe2017-12-14 13:31:55 -06007inherit mrw-xml
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05308
Vishwanatha Subbanna8bec8252017-02-11 22:10:23 +05309PROVIDES += "virtual/phosphor-led-manager-config-native"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053010DEPENDS += "mrw-native mrw-perl-tools-native"
11
12# Generate a YAML files based on MRW input
13do_install_append() {
Brad Bishop7a17b6b2018-03-08 22:29:25 -050014 USE_MRW="${@df_enabled(d, 'obmc-mrw', 'yes')}"
Patrick Williamse81f8c02017-02-28 14:28:18 -060015 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053016
17 if [ "${USE_MRW}" = "yes" ]; then
18 install -d ${DEST}/
19 ${STAGING_BINDIR_NATIVE}/perl-native/perl \
20 ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \
Matt Spinler3f6fcbe2017-12-14 13:31:55 -060021 -i ${mrw_datadir}/${MRW_XML} \
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053022 -o ${DEST}/led.yaml
23 fi
24}