blob: 920f6374530b78ce91333a8dd5a1f6b57dafb2b6 [file] [log] [blame]
SUMMARY = "Phosphor LED Group Management with MRW generated data"
PR = "r1"
inherit native
inherit obmc-phosphor-utils
inherit obmc-phosphor-license
inherit mrw-xml
PROVIDES += "virtual/phosphor-led-manager-config-native"
DEPENDS += "mrw-native mrw-perl-tools-native"
# Generate a YAML files based on MRW input
do_install_append() {
USE_MRW="${@df_enabled(d, 'obmc-mrw', 'yes')}"
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
}