]> code.ossystems Code Review - openembedded-core.git/commitdiff
utils: Drop is_machine_specific()/machine_paths()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 May 2020 15:52:14 +0000 (16:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 May 2020 12:18:41 +0000 (13:18 +0100)
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>
meta/classes/utils.bbclass

index c32b868aa88d8e756a56d6a36d12e6d9b2cdfbdd..120bcc64a64439cb929a01bf3d77b648436d214a 100644 (file)
@@ -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