summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-08-10 01:59:54 +0000
committerChris Larson <clarson@kergoth.com>2004-08-10 01:59:54 +0000
commitac16b9402f7a8f4938964f296ee01f2c201c1838 (patch)
treebad45d464d5a0855b74cf96b9f25bcdd8c56e6ad /classes
parent2bae3f425726f311e193e7e10b266c0335fd18bd (diff)
Updates to base_set_filespath syntax, so that .oe's that include others can call it, thereby ensuring that they're able to locate overrides specific files.
BKrev: 41182c1aoZUxQQyNwYlYaTemw9jDkw
Diffstat (limited to 'classes')
-rw-r--r--classes/base.oeclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/base.oeclass b/classes/base.oeclass
index fb05053d27..f20d5b9d81 100644
--- a/classes/base.oeclass
+++ b/classes/base.oeclass
@@ -27,17 +27,17 @@ def base_read_file(filename):
DEPENDS_prepend="${@base_dep_prepend(d)} "
-def base_set_filespath(d):
+def base_set_filespath(path, d):
import os, oe
filespath = []
- for p in [ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ]:
+ for p in path:
overrides = oe.data.getVar("OVERRIDES", d, 1) or ""
overrides = overrides + ":"
for o in overrides.split(":"):
filespath.append(os.path.join(p, o))
oe.data.setVar("FILESPATH", ":".join(filespath), d)
-FILESPATH = "${@base_set_filespath(d)}"
+FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
die() {
oefatal "$*"