diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-05-14 19:25:34 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-05-23 00:12:20 +0300 |
commit | 39131a1cd6f23f1572db4a6e16252d1feb6a3ac8 (patch) | |
tree | 69e3d09b4d2b6f23b246007f9fadc51484caca14 | |
parent | 14b7585f7aec2af9d690d979b8469a0678715bb8 (diff) | |
download | openbmc-39131a1cd6f23f1572db4a6e16252d1feb6a3ac8.tar.xz |
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>
-rw-r--r-- | meta-phosphor/recipes-phosphor/leds/phosphor-led-manager-config-mrw-native.bb | 3 |
1 files changed, 1 insertions, 2 deletions
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 12e507370..ccc0fc280 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 @@ LICENSE = "Apache-2.0" 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 @@ 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')}" + USE_MRW="${@bb.utils.contains('DISTRO_FEATURES', 'obmc-mrw', 'yes', 'no', d)}" DEST=${D}${datadir}/phosphor-led-manager if [ "${USE_MRW}" = "yes" ]; then |