base.bbclass: Add base_both_contains function for use in task files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@561 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
f059afd07b
commit
36a7962e74
|
@ -46,6 +46,13 @@ def base_contains(variable, checkvalue, truevalue, falsevalue, d):
|
|||
else:
|
||||
return falsevalue
|
||||
|
||||
def base_both_contain(variable1, variable2, checkvalue, d):
|
||||
import bb
|
||||
if bb.data.getVar(variable1,d,1).find(checkvalue) != -1 and bb.data.getVar(variable2,d,1).find(checkvalue) != -1:
|
||||
return checkvalue
|
||||
else:
|
||||
return ""
|
||||
|
||||
DEPENDS_prepend="${@base_dep_prepend(d)} "
|
||||
|
||||
def base_set_filespath(path, d):
|
||||
|
|
Loading…
Reference in New Issue