blob: 12e507370b66b47ab041179dc7f21ad474c49872 [file] [log] [blame]
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05301SUMMARY = "Phosphor LED Group Management with MRW generated data"
2PR = "r1"
Patrick Venture58b15372018-11-04 08:15:55 -08003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05305
6inherit native
7inherit obmc-phosphor-utils
Matt Spinler3f6fcbe2017-12-14 13:31:55 -06008inherit mrw-xml
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05309
Vishwanatha Subbanna8bec8252017-02-11 22:10:23 +053010PROVIDES += "virtual/phosphor-led-manager-config-native"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053011DEPENDS += "mrw-native mrw-perl-tools-native"
12
13# Generate a YAML files based on MRW input
14do_install_append() {
Brad Bishop7a17b6b2018-03-08 22:29:25 -050015 USE_MRW="${@df_enabled(d, 'obmc-mrw', 'yes')}"
Patrick Williamse81f8c02017-02-28 14:28:18 -060016 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053017
18 if [ "${USE_MRW}" = "yes" ]; then
19 install -d ${DEST}/
20 ${STAGING_BINDIR_NATIVE}/perl-native/perl \
21 ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \
Matt Spinler3f6fcbe2017-12-14 13:31:55 -060022 -i ${mrw_datadir}/${MRW_XML} \
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053023 -o ${DEST}/led.yaml
24 fi
25}