summaryrefslogtreecommitdiffstats
path: root/meta/classes/utils.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r--meta/classes/utils.bbclass41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 32cae7e312..4f016e3d00 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -1,44 +1,3 @@
1# For compatibility
2def base_path_join(a, *p):
3 return oe.path.join(a, *p)
4
5def base_path_relative(src, dest):
6 return oe.path.relative(src, dest)
7
8def base_path_out(path, d):
9 return oe.path.format_display(path, d)
10
11def base_read_file(filename):
12 return oe.utils.read_file(filename)
13
14def base_ifelse(condition, iftrue = True, iffalse = False):
15 return oe.utils.ifelse(condition, iftrue, iffalse)
16
17def base_conditional(variable, checkvalue, truevalue, falsevalue, d):
18 return oe.utils.conditional(variable, checkvalue, truevalue, falsevalue, d)
19
20def base_less_or_equal(variable, checkvalue, truevalue, falsevalue, d):
21 return oe.utils.less_or_equal(variable, checkvalue, truevalue, falsevalue, d)
22
23def base_version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d):
24 return oe.utils.version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d)
25
26def base_contains(variable, checkvalues, truevalue, falsevalue, d):
27 bb.note('base_contains is deprecated, please use bb.utils.contains instead.')
28 return bb.utils.contains(variable, checkvalues, truevalue, falsevalue, d)
29
30def base_both_contain(variable1, variable2, checkvalue, d):
31 return oe.utils.both_contain(variable1, variable2, checkvalue, d)
32
33def base_prune_suffix(var, suffixes, d):
34 return oe.utils.prune_suffix(var, suffixes, d)
35
36def oe_filter(f, str, d):
37 return oe.utils.str_filter(f, str, d)
38
39def oe_filter_out(f, str, d):
40 return oe.utils.str_filter_out(f, str, d)
41
42def machine_paths(d): 1def machine_paths(d):
43 """List any existing machine specific filespath directories""" 2 """List any existing machine specific filespath directories"""
44 machine = d.getVar("MACHINE") 3 machine = d.getVar("MACHINE")