Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Phosphor LED Group Management with MRW generated data"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
DEPENDS += "mrw-native mrw-perl-tools-native"
|
||||
PROVIDES += "virtual/phosphor-led-manager-config-native"
|
||||
PR = "r1"
|
||||
|
||||
inherit mrw-xml
|
||||
inherit native
|
||||
|
||||
# Generate a YAML files based on MRW input
|
||||
do_install:append() {
|
||||
USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}"
|
||||
DEST=${D}${datadir}/phosphor-led-manager
|
||||
if [ "${USE_MRW}" = "yes" ]; then
|
||||
install -d ${DEST}/
|
||||
${STAGING_BINDIR_NATIVE}/perl-native/perl \
|
||||
${STAGING_BINDIR_NATIVE}/gen_led_groups.pl \
|
||||
-i ${mrw_datadir}/${MRW_XML} \
|
||||
-o ${DEST}/led.yaml
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user