summaryrefslogtreecommitdiffstats
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:18:41 +0100
commit03c5cfd7611c88ce82d16619a49e3ea9fa7385d8 (patch)
treeba00a217052e791661ef30d2b7fe618e94099eae
parent5b27c2f58fa45a55199c08ef219e3b41a09d2fe4 (diff)
downloadopenembedded-core-contrib-03c5cfd7611c88ce82d16619a49e3ea9fa7385d8.tar.gz
openembedded-core-contrib-03c5cfd7611c88ce82d16619a49e3ea9fa7385d8.tar.bz2
openembedded-core-contrib-03c5cfd7611c88ce82d16619a49e3ea9fa7385d8.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 @@
-def machine_paths(d):
- """List any existing machine specific filespath directories"""
- machine = d.getVar("MACHINE")
- for basepath in d.getVar("FILESPATHBASE").split(":"):
- machinepath = os.path.join(basepath, machine)
- if os.path.isdir(machinepath):
- yield machinepath
-
-def is_machine_specific(d):
- """Determine whether the current recipe is machine specific"""
- machinepaths = set(machine_paths(d))
- srcuri = d.getVar("SRC_URI").split()
- for url in srcuri:
- fetcher = bb.fetch2.Fetch([srcuri], d)
- if url.startswith("file://"):
- if any(fetcher.localpath(url).startswith(mp + "/") for mp in machinepaths):
- return True
oe_soinstall() {
# Purpose: Install shared library file and