diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-04 16:48:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-05 13:19:55 +0100 |
commit | 2457c6c8860faaf1a2e68b03db98272f424bbe1f (patch) | |
tree | caff522582648f917005fce05031bd73747f9b24 /meta/classes/utils.bbclass | |
parent | 7ad8d67b1d75e7afefc7914ceb74f9cc2733f5c7 (diff) | |
download | poky-2457c6c8860faaf1a2e68b03db98272f424bbe1f.tar.gz |
utils: Drop FILESPATHPKG usage
Nothing in OE-Core uses this and its been deprecated for some time. Remove
the last reference to it.
(From OE-Core rev: 5b27c2f58fa45a55199c08ef219e3b41a09d2fe4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index cd3d05709e..c32b868aa8 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -1,12 +1,10 @@ | |||
1 | def machine_paths(d): | 1 | def machine_paths(d): |
2 | """List any existing machine specific filespath directories""" | 2 | """List any existing machine specific filespath directories""" |
3 | machine = d.getVar("MACHINE") | 3 | machine = d.getVar("MACHINE") |
4 | filespathpkg = d.getVar("FILESPATHPKG").split(":") | ||
5 | for basepath in d.getVar("FILESPATHBASE").split(":"): | 4 | for basepath in d.getVar("FILESPATHBASE").split(":"): |
6 | for pkgpath in filespathpkg: | 5 | machinepath = os.path.join(basepath, machine) |
7 | machinepath = os.path.join(basepath, pkgpath, machine) | 6 | if os.path.isdir(machinepath): |
8 | if os.path.isdir(machinepath): | 7 | yield machinepath |
9 | yield machinepath | ||
10 | 8 | ||
11 | def is_machine_specific(d): | 9 | def is_machine_specific(d): |
12 | """Determine whether the current recipe is machine specific""" | 10 | """Determine whether the current recipe is machine specific""" |