diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-05 10:06:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-05 22:26:32 +0100 |
commit | 904ae4a7531d6cb8b2cfefb7da8901b21a65ae7b (patch) | |
tree | 7933c7458a87cab66c4b371b40bfee0854f427d5 | |
parent | 0ee7a9e6bdce1f3094e831b9db83087fff1dad17 (diff) | |
download | poky-904ae4a7531d6cb8b2cfefb7da8901b21a65ae7b.tar.gz |
Improve FILESPATH usage in .bbappend recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta-emenlow/packages/formfactor/formfactor_0.0.bbappend | 5 | ||||
-rw-r--r-- | meta/classes/base.bbclass | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/meta-emenlow/packages/formfactor/formfactor_0.0.bbappend b/meta-emenlow/packages/formfactor/formfactor_0.0.bbappend index cd5d96eb55..9bc9eed5cf 100644 --- a/meta-emenlow/packages/formfactor/formfactor_0.0.bbappend +++ b/meta-emenlow/packages/formfactor/formfactor_0.0.bbappend | |||
@@ -1,4 +1,3 @@ | |||
1 | THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | 1 | FILESEXTRAPATHS := "${THISDIR}/${PN}" |
2 | FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:" | 2 | |
3 | |||
4 | PR = "r26" | 3 | PR = "r26" |
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index dd346ee8f3..a9e5657d86 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -106,6 +106,8 @@ DEPENDS_virtclass-nativesdk_prepend="${@base_dep_prepend(d)} " | |||
106 | 106 | ||
107 | def base_set_filespath(path, d): | 107 | def base_set_filespath(path, d): |
108 | filespath = [] | 108 | filespath = [] |
109 | extrapaths = (bb.data.getVar("FILESEXTRAPATHS", d, True) or "").split() | ||
110 | path = extrapaths + path | ||
109 | # The ":" ensures we have an 'empty' override | 111 | # The ":" ensures we have an 'empty' override |
110 | overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":" | 112 | overrides = (bb.data.getVar("OVERRIDES", d, 1) or "") + ":" |
111 | for p in path: | 113 | for p in path: |
@@ -114,6 +116,9 @@ def base_set_filespath(path, d): | |||
114 | return ":".join(filespath) | 116 | return ":".join(filespath) |
115 | 117 | ||
116 | 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)}" | 118 | 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)}" |
119 | # THISDIR only works properly with imediate expansion as it has to run | ||
120 | # in the context of the location its used (:=) | ||
121 | THISDIR = "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" | ||
117 | 122 | ||
118 | SCENEFUNCS += "base_scenefunction" | 123 | SCENEFUNCS += "base_scenefunction" |
119 | 124 | ||