Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor LED Group Management with MRW generated data" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 2 | LICENSE = "Apache-2.0" |
Brad Bishop | 6f3f0aa | 2019-09-13 12:14:05 -0400 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 4 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 5 | PROVIDES += "virtual/phosphor-led-manager-config-native" |
| 6 | PR = "r1" |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 7 | |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 8 | inherit mrw-xml |
Joseph Reynolds | 79809ea | 2021-02-26 15:37:31 -0600 | [diff] [blame] | 9 | inherit native |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 10 | |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 11 | # Generate a YAML files based on MRW input |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 12 | do_install:append() { |
Brad Bishop | 39131a1 | 2019-05-14 12:25:34 -0400 | [diff] [blame] | 13 | USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}" |
Patrick Williams | 1603890 | 2017-02-28 14:28:18 -0600 | [diff] [blame] | 14 | DEST=${D}${datadir}/phosphor-led-manager |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 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 \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 19 | -i ${mrw_datadir}/${MRW_XML} \ |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 20 | -o ${DEST}/led.yaml |
| 21 | fi |
| 22 | } |