diff options
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 41 |
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 | ||
2 | def base_path_join(a, *p): | ||
3 | return oe.path.join(a, *p) | ||
4 | |||
5 | def base_path_relative(src, dest): | ||
6 | return oe.path.relative(src, dest) | ||
7 | |||
8 | def base_path_out(path, d): | ||
9 | return oe.path.format_display(path, d) | ||
10 | |||
11 | def base_read_file(filename): | ||
12 | return oe.utils.read_file(filename) | ||
13 | |||
14 | def base_ifelse(condition, iftrue = True, iffalse = False): | ||
15 | return oe.utils.ifelse(condition, iftrue, iffalse) | ||
16 | |||
17 | def base_conditional(variable, checkvalue, truevalue, falsevalue, d): | ||
18 | return oe.utils.conditional(variable, checkvalue, truevalue, falsevalue, d) | ||
19 | |||
20 | def base_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): | ||
21 | return oe.utils.less_or_equal(variable, checkvalue, truevalue, falsevalue, d) | ||
22 | |||
23 | def base_version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d): | ||
24 | return oe.utils.version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d) | ||
25 | |||
26 | def 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 | |||
30 | def base_both_contain(variable1, variable2, checkvalue, d): | ||
31 | return oe.utils.both_contain(variable1, variable2, checkvalue, d) | ||
32 | |||
33 | def base_prune_suffix(var, suffixes, d): | ||
34 | return oe.utils.prune_suffix(var, suffixes, d) | ||
35 | |||
36 | def oe_filter(f, str, d): | ||
37 | return oe.utils.str_filter(f, str, d) | ||
38 | |||
39 | def oe_filter_out(f, str, d): | ||
40 | return oe.utils.str_filter_out(f, str, d) | ||
41 | |||
42 | def machine_paths(d): | 1 | def 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") |