diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 6f23a846fa..cd70748b7c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -46,6 +46,13 @@ def base_contains(variable, checkvalue, truevalue, falsevalue, d): | |||
46 | else: | 46 | else: |
47 | return falsevalue | 47 | return falsevalue |
48 | 48 | ||
49 | def base_both_contain(variable1, variable2, checkvalue, d): | ||
50 | import bb | ||
51 | if bb.data.getVar(variable1,d,1).find(checkvalue) != -1 and bb.data.getVar(variable2,d,1).find(checkvalue) != -1: | ||
52 | return checkvalue | ||
53 | else: | ||
54 | return "" | ||
55 | |||
49 | DEPENDS_prepend="${@base_dep_prepend(d)} " | 56 | DEPENDS_prepend="${@base_dep_prepend(d)} " |
50 | 57 | ||
51 | def base_set_filespath(path, d): | 58 | def base_set_filespath(path, d): |