Merge pull request #93 from kergoth/sb-5383

tcmode: improve CodeBench PATH removal
This commit is contained in:
Noor-Ahsan
2015-08-05 12:51:38 +05:00

View File

@@ -137,9 +137,8 @@ python toolchain_metadata_setup () {
# Remove already-added toolchain install paths from the PATH, as they can
# break the build (in particular, the ia32 toolchain, as it provdes
# non-prefixed binaries).
install_prefix_default = bb.data.expand('${HOME}/CodeSourcery/', l)
path = d.getVar('PATH', False).split(':')
path = filter(lambda p: not p.startswith(install_prefix_default), path)
path = filter(lambda p: not p.endswith('/codebench/bin'), path)
d.setVar('PATH', ':'.join(path))
# The external toolchain may not have been built with the yocto preferred