summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-26 22:17:08 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-26 22:17:08 +0000
commit36a7962e7428a79c5bde3f3b0fd36ce3ed19b439 (patch)
treed633a22d57ce455c80d00ced922945562477620f
parentf059afd07b5e0f9cd26d528c61b08291cc920532 (diff)
downloadopenembedded-core-36a7962e7428a79c5bde3f3b0fd36ce3ed19b439.tar.gz
openembedded-core-36a7962e7428a79c5bde3f3b0fd36ce3ed19b439.tar.bz2
openembedded-core-36a7962e7428a79c5bde3f3b0fd36ce3ed19b439.tar.xz
openembedded-core-36a7962e7428a79c5bde3f3b0fd36ce3ed19b439.zip
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
-rw-r--r--meta/classes/base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 6f23a846f..cd70748b7 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -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):