summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-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 8467ebddc2..6f23a846fa 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -39,6 +39,13 @@ def base_conditional(variable, checkvalue, truevalue, falsevalue, d):
39 else: 39 else:
40 return falsevalue 40 return falsevalue
41 41
42def base_contains(variable, checkvalue, truevalue, falsevalue, d):
43 import bb
44 if bb.data.getVar(variable,d,1).find(checkvalue) != -1:
45 return truevalue
46 else:
47 return falsevalue
48
42DEPENDS_prepend="${@base_dep_prepend(d)} " 49DEPENDS_prepend="${@base_dep_prepend(d)} "
43 50
44def base_set_filespath(path, d): 51def base_set_filespath(path, d):