diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index 7df5208..0c12de6 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -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