From: Chris Larson Date: Sun, 17 Oct 2010 05:34:51 +0000 (-0700) Subject: bitbake.conf: sanitize FILESPATH X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a241106ca4a32215ecb6c079c4e6221fd5838f6f;p=openembedded.git bitbake.conf: sanitize FILESPATH - reverse OVERRIDES - drop empty overrides - uniq the list - use nested variable references rather than getVar Signed-off-by: Chris Larson --- diff --git a/conf/bitbake.conf b/conf/bitbake.conf index c2359dce97..c9736e077f 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), '.')}" ##################################################################