blob: f1082be0dfe6bcde7c500433976b3f20ceb71014 [file] [log] [blame]
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05301SUMMARY = "Phosphor LED Group Management with MRW generated data"
Brad Bishop75f03872018-11-03 09:41:57 -07002LICENSE = "Apache-2.0"
Brad Bishop6f3f0aa2019-09-13 12:14:05 -04003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Ed Tanous9936f862022-09-19 09:13:20 -07004DEPENDS += "mrw-native mrw-perl-tools-native"
5PROVIDES += "virtual/phosphor-led-manager-config-native"
6PR = "r1"
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05307
Matt Spinler0a8ea632017-12-14 13:31:55 -06008inherit mrw-xml
Joseph Reynolds79809ea2021-02-26 15:37:31 -06009inherit native
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053010
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053011# Generate a YAML files based on MRW input
Patrick Williams12fc9392021-08-06 09:16:53 -050012do_install:append() {
Brad Bishop39131a12019-05-14 12:25:34 -040013 USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}"
Patrick Williams16038902017-02-28 14:28:18 -060014 DEST=${D}${datadir}/phosphor-led-manager
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053015 if [ "${USE_MRW}" = "yes" ]; then
16 install -d ${DEST}/
17 ${STAGING_BINDIR_NATIVE}/perl-native/perl \
18 ${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \
Matt Spinler0a8ea632017-12-14 13:31:55 -060019 -i ${mrw_datadir}/${MRW_XML} \
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053020 -o ${DEST}/led.yaml
21 fi
22}