diff options
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""" |