diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 12a3f98f04..fd1308295e 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -149,6 +149,14 @@ def base_both_contain(variable1, variable2, checkvalue, d): | |||
149 | 149 | ||
150 | DEPENDS_prepend="${@base_dep_prepend(d)} " | 150 | DEPENDS_prepend="${@base_dep_prepend(d)} " |
151 | 151 | ||
152 | def base_prune_suffix(var, suffixes, d): | ||
153 | # See if var ends with any of the suffixes listed and | ||
154 | # remove it if found | ||
155 | for suffix in suffixes: | ||
156 | if var.endswith(suffix): | ||
157 | return var.replace(suffix, "") | ||
158 | return var | ||
159 | |||
152 | def base_set_filespath(path, d): | 160 | def base_set_filespath(path, d): |
153 | import os, bb | 161 | import os, bb |
154 | filespath = [] | 162 | filespath = [] |
@@ -159,7 +167,7 @@ def base_set_filespath(path, d): | |||
159 | filespath.append(os.path.join(p, o)) | 167 | filespath.append(os.path.join(p, o)) |
160 | return ":".join(filespath) | 168 | return ":".join(filespath) |
161 | 169 | ||
162 | FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" | 170 | FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" |
163 | 171 | ||
164 | def oe_filter(f, str, d): | 172 | def oe_filter(f, str, d): |
165 | from re import match | 173 | from re import match |