diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-07-09 23:59:54 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-08-07 03:20:22 +0300 |
commit | ff92bb65d956b7936b89f41d8ca7d0bce2e54205 (patch) | |
tree | c0d3d32d05c0faa44593312feaffe0d94b44e8b5 /meta-phosphor/classes/obmc-phosphor-utils.bbclass | |
parent | ef7abcca9d0c9dcb08e19675b76d1fb722ade35d (diff) | |
download | openbmc-ff92bb65d956b7936b89f41d8ca7d0bce2e54205.tar.xz |
meta-phosphor: drop feature check wrappers
These pointless wrappers don't do anything other than obfuscate intent
to readers that have experience with bitbake metadata.
(From meta-phosphor rev: 536cee986517bf14226feb2f412928bc1904f950)
Change-Id: I92b12b6d675acb65d67f442c6331560cb20c88e6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-utils.bbclass')
-rw-r--r-- | meta-phosphor/classes/obmc-phosphor-utils.bbclass | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-utils.bbclass b/meta-phosphor/classes/obmc-phosphor-utils.bbclass index 04db8bcd0..7568461e2 100644 --- a/meta-phosphor/classes/obmc-phosphor-utils.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-utils.bbclass @@ -1,19 +1,3 @@ -# Helper functions for checking feature variables. - -def df_enabled(d, feature, truevalue, falsevalue=""): - return bb.utils.contains("DISTRO_FEATURES", feature, truevalue, falsevalue, d) - - -def mf_enabled(d, feature, truevalue, falsevalue=""): - return bb.utils.contains("MACHINE_FEATURES", feature, truevalue, falsevalue, d) - - -def cf_enabled(d, feature, truevalue, falsevalue=""): - return truevalue if df_enabled(d, feature, truevalue) \ - and mf_enabled(d, feature, truevalue) \ - else falsevalue - - def set_append(d, var, val, sep=' '): values = (d.getVar(var, True) or '').split(sep) if filter(bool, values): |