meta-phosphor: led: opt out of obmc-phosphor-utils
bb.utils.contains is the idiomatic approach to checking distro features.
(From meta-phosphor rev: e00bf6fef9a023b226279e8e4423fae7aac4f3ca)
Change-Id: I5c498f746923e396a2e05a379287d88becf7fb69
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager-config-mrw-native.bb b/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager-config-mrw-native.bb
index 12e5073..ccc0fc2 100644
--- a/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager-config-mrw-native.bb
+++ b/meta-phosphor/recipes-phosphor/leds/phosphor-led-manager-config-mrw-native.bb
@@ -4,7 +4,6 @@
LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
inherit native
-inherit obmc-phosphor-utils
inherit mrw-xml
PROVIDES += "virtual/phosphor-led-manager-config-native"
@@ -12,7 +11,7 @@
# Generate a YAML files based on MRW input
do_install_append() {
- USE_MRW="${@df_enabled(d, 'obmc-mrw', 'yes')}"
+ USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}"
DEST=${D}${datadir}/phosphor-led-manager
if [ "${USE_MRW}" = "yes" ]; then