bitbake.conf: Make FILESPATH only contain directories that actually exist.
authorChris Larson <clarson@mvista.com>
Wed, 18 Mar 2009 18:56:30 +0000 (11:56 -0700)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:39:07 +0000 (20:39 -0700)
Signed-off-by: Chris Larson <clarson@mvista.com>
conf/bitbake.conf

index 7a6f80f..2fb6b90 100644 (file)
@@ -235,7 +235,7 @@ export MANIFEST = "${FILESDIR}/manifest"
 FILE_DIRNAME = "${@os.path.dirname(bb.data.getVar('FILE', d))}"
 FILESPATHBASE = "${FILE_DIRNAME}"
 FILESPATHPKG = "${PF}:${P}:${PN}:${BP}:${BPN}:files:."
-FILESPATH = "${@':'.join(['%s/%s/%s' % (fp, p, o) for fp in d.getVar('FILESPATHBASE', 0).split(':') for p in d.getVar('FILESPATHPKG', 0).split(':') for o in (d.getVar('OVERRIDES', 0) + ':.').split(':')])}:${FILESDIR}"
+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(':') if os.path.exists(os.path.join(fp, p, o))])}:${FILESDIR}"
 
 ##################################################################
 # General work and output directories for the build system.