diff options
author | Saqib Khan <khansa@us.ibm.com> | 2017-03-07 07:20:20 -0600 |
---|---|---|
committer | Saqib Khan <khansa@us.ibm.com> | 2017-03-21 16:49:29 +0000 |
commit | 46fd3711287c7a604164176d2d499087e660ea1a (patch) | |
tree | 1ff915922926e7c9aecb44aed2b132bfead3ae64 /meta-phosphor/classes/obmc-phosphor-utils.bbclass | |
parent | 0032233d303d4219c488a2babba31d8b3e9581e7 (diff) | |
download | talos-openbmc-46fd3711287c7a604164176d2d499087e660ea1a.tar.gz talos-openbmc-46fd3711287c7a604164176d2d499087e660ea1a.zip |
Replace base_contains with bb.utils.contains
base_contains has been deprecated and is replaced by
bb.utils.contains
Change-Id: I8cf9b63b43febed1557e4644c97ccd6614152f98
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-utils.bbclass')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-utils.bbclass | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-utils.bbclass b/meta-phosphor/classes/obmc-phosphor-utils.bbclass index 8ac8c7d2d..04db8bcd0 100644 --- a/meta-phosphor/classes/obmc-phosphor-utils.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-utils.bbclass @@ -1,14 +1,11 @@ # Helper functions for checking feature variables. -inherit utils - - def df_enabled(d, feature, truevalue, falsevalue=""): - return base_contains("DISTRO_FEATURES", feature, truevalue, falsevalue, d) + return bb.utils.contains("DISTRO_FEATURES", feature, truevalue, falsevalue, d) def mf_enabled(d, feature, truevalue, falsevalue=""): - return base_contains("MACHINE_FEATURES", feature, truevalue, falsevalue, d) + return bb.utils.contains("MACHINE_FEATURES", feature, truevalue, falsevalue, d) def cf_enabled(d, feature, truevalue, falsevalue=""): |