blob: ccc0fc28093c00e004d69e8bcb6d67c3945f6253 [file] [log] [blame]
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05301SUMMARY = "Phosphor LED Group Management with MRW generated data"
2PR = "r1"
Brad Bishop75f03872018-11-03 09:41:57 -07003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05305
6inherit native
Matt Spinler0a8ea632017-12-14 13:31:55 -06007inherit mrw-xml
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05308
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +05309PROVIDES += "virtual/phosphor-led-manager-config-native"
Vishwanatha Subbanna96d83652017-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 Bishop39131a12019-05-14 12:25:34 -040014 USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}"
Patrick Williams16038902017-02-28 14:28:18 -060015 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna96d83652017-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 Spinler0a8ea632017-12-14 13:31:55 -060021 -i ${mrw_datadir}/${MRW_XML} \
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053022 -o ${DEST}/led.yaml
23 fi
24}