summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-04 16:52:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-05 13:19:55 +0100
commite568c8ec2af7157cfb7faa5fd8778a2e991f3d45 (patch)
tree25fa87583ae169aa500bbf3d09d03dc550bda459 /meta/classes
parent2457c6c8860faaf1a2e68b03db98272f424bbe1f (diff)
downloadpoky-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.bbclass17
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 @@
1def 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
9def 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
19oe_soinstall() { 2oe_soinstall() {
20 # Purpose: Install shared library file and 3 # Purpose: Install shared library file and