diff options
Diffstat (limited to 'meta/classes/utils.bbclass')
| -rw-r--r-- | meta/classes/utils.bbclass | 17 |
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 @@ | |||
| 1 | def 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 | |||
| 9 | def 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 | ||
| 19 | oe_soinstall() { | 2 | oe_soinstall() { |
| 20 | # Purpose: Install shared library file and | 3 | # Purpose: Install shared library file and |
