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 76b21382f5..404c319d04 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -167,6 +167,14 @@ def base_both_contain(variable1, variable2, checkvalue, d): | |||
167 | 167 | ||
168 | DEPENDS_prepend="${@base_dep_prepend(d)} " | 168 | DEPENDS_prepend="${@base_dep_prepend(d)} " |
169 | 169 | ||
170 | def base_prune_suffix(var, suffixes, d): | ||
171 | # See if var ends with any of the suffixes listed and | ||
172 | # remove it if found | ||
173 | for suffix in suffixes: | ||
174 | if var.endswith(suffix): | ||
175 | return var.replace(suffix, "") | ||
176 | return var | ||
177 | |||
170 | def base_set_filespath(path, d): | 178 | def base_set_filespath(path, d): |
171 | import os, bb | 179 | import os, bb |
172 | filespath = [] | 180 | filespath = [] |
@@ -177,7 +185,7 @@ def base_set_filespath(path, d): | |||
177 | filespath.append(os.path.join(p, o)) | 185 | filespath.append(os.path.join(p, o)) |
178 | return ":".join(filespath) | 186 | return ":".join(filespath) |
179 | 187 | ||
180 | FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}" | 188 | 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)}" |
181 | 189 | ||
182 | def oe_filter(f, str, d): | 190 | def oe_filter(f, str, d): |
183 | from re import match | 191 | from re import match |