[oe-commits] Chris Larson : bitbake.conf: sanitize FILESPATH
git version control
git at git.openembedded.org
Sun Oct 17 05:57:53 UTC 2010
Module: openembedded.git
Branch: master
Commit: a241106ca4a32215ecb6c079c4e6221fd5838f6f
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a241106ca4a32215ecb6c079c4e6221fd5838f6f
Author: Chris Larson <chris_larson at mentor.com>
Date: Sat Oct 16 22:34:51 2010 -0700
bitbake.conf: sanitize FILESPATH
- reverse OVERRIDES
- drop empty overrides
- uniq the list
- use nested variable references rather than getVar
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
conf/bitbake.conf | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index c2359dc..c9736e0 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -271,7 +271,7 @@ FILES_${PN}-locale = "${datadir}/locale"
FILE_DIRNAME = "${@os.path.dirname(bb.data.getVar('FILE', d))}"
FILESPATHBASE = "${FILE_DIRNAME}"
FILESPATHPKG = "${PF}:${P}:${PN}:${BP}:${BPN}:files:."
-FILESPATH = "${@':'.join([os.path.normpath(os.path.join(fp, p, o)) for fp in d.getVar('FILESPATHBASE', 1).split(':') for p in d.getVar('FILESPATHPKG', 1).split(':') for o in (d.getVar('OVERRIDES', 1) + ':').split(':')])}"
+FILESPATH = "${@':'.join(uniq(os.path.normpath(os.path.join(fp, p, o)) for fp in '${FILESPATHBASE}'.split(':') for p in '${FILESPATHPKG}'.split(':') for o in reversed([''] + filter(None, '${OVERRIDES}'.split(':')))))}"
FILESDIR = "${@bb.which(d.getVar('FILESPATH', 1), '.')}"
##################################################################
More information about the Openembedded-commits
mailing list