mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user