diff options
author | Ross Burton <ross.burton@intel.com> | 2018-01-29 17:11:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-30 11:50:11 +0000 |
commit | 58449f0e9cc4a05c88204cf8ba887b55467d886e (patch) | |
tree | c5440b3f7ba4be29a6ab8bda1263207a0350ae75 /meta/classes/utils.bbclass | |
parent | 563a020870ee0e8212609639c74f19a0f4fc0847 (diff) | |
download | poky-58449f0e9cc4a05c88204cf8ba887b55467d886e.tar.gz |
classes/utils: remove compatibility functions
These base_* functions were moved into meta/lib/oe back in 2010 and wrappers
left in utils.bbclass for compatibility. It's been eight years, so I think it's
time to remove them.
(From OE-Core rev: 0391fcad9103abca0796a068f957d0df63ab4776)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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") |