tcmode-external-csl: avoid hardcoding a list of ia32 archs

(From OE-Core rev: 166a3f79d2538f40fb150c90b0f8e28987db8daa)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson 2012-05-14 11:45:03 -05:00 committed by Richard Purdie
parent ee245bd77f
commit 7cf5fcefd3
1 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,9 @@ python toolchain_metadata_setup () {
d = e.data
if d.getVar('TUNE_PKGARCH', True) in ('i586', 'i686'):
l = d.createCopy()
l.finalize()
if os.path.exists(bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/gcc', l)):
d.setVar('TOOLCHAIN_PATH_ADD', '')
}
addhandler toolchain_metadata_setup
@ -81,7 +83,7 @@ python toolchain_setup () {
d = e.data
if d.getVar('TUNE_PKGARCH', True) in ('i586', 'i686'):
if not d.getVar('TOOLCHAIN_PATH_ADD', True):
populate_toolchain_links(d)
}
addhandler toolchain_setup