> -----Original Message-----
> From: [email protected] <openembedded-
> [email protected]> On Behalf Of Richard Purdie
> Sent: den 4 maj 2020 17:53
> To: [email protected]
> Subject: [OE-core] [PATCH] utils: Drop is_machine_specific()/machine_path()

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 that entirely

that -> them

> at this point.
> 
> Signed-off-by: Richard Purdie <[email protected]>

//Peter

> ---
>  meta/classes/utils.bbclass | 17 -----------------
>  1 file changed, 17 deletions(-)
> 
> diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
> index c32b868aa88..120bcc64a64 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
> --
> 2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#137834): 
https://lists.openembedded.org/g/openembedded-core/message/137834
Mute This Topic: https://lists.openembedded.org/mt/73978126/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.openembedded.org/g/openembedded-core/leave/8023207/1426099254/xyzzy
  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to