diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-04 16:52:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-05 13:19:55 +0100 |
commit | e568c8ec2af7157cfb7faa5fd8778a2e991f3d45 (patch) | |
tree | 25fa87583ae169aa500bbf3d09d03dc550bda459 /meta/classes | |
parent | 2457c6c8860faaf1a2e68b03db98272f424bbe1f (diff) | |
download | poky-e568c8ec2af7157cfb7faa5fd8778a2e991f3d45.tar.gz |
utils: Drop is_machine_specific()/machine_paths()
There appear to be no users of these in OE-Core and their functionality
is questionable at best too. Probably safest to remove them entirely
at this point.
(From OE-Core rev: 03c5cfd7611c88ce82d16619a49e3ea9fa7385d8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/utils.bbclass | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index c32b868aa8..120bcc64a6 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -1,20 +1,3 @@ | |||
1 | def machine_paths(d): | ||
2 | """List any existing machine specific filespath directories""" | ||
3 | machine = d.getVar("MACHINE") | ||
4 | for basepath in d.getVar("FILESPATHBASE").split(":"): | ||
5 | machinepath = os.path.join(basepath, machine) | ||
6 | if os.path.isdir(machinepath): | ||
7 | yield machinepath | ||
8 | |||
9 | def is_machine_specific(d): | ||
10 | """Determine whether the current recipe is machine specific""" | ||
11 | machinepaths = set(machine_paths(d)) | ||
12 | srcuri = d.getVar("SRC_URI").split() | ||
13 | for url in srcuri: | ||
14 | fetcher = bb.fetch2.Fetch([srcuri], d) | ||
15 | if url.startswith("file://"): | ||
16 | if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths): | ||
17 | return True | ||
18 | 1 | ||
19 | oe_soinstall() { | 2 | oe_soinstall() { |
20 | # Purpose: Install shared library file and | 3 | # Purpose: Install shared library file and |