diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-05-14 11:45:03 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-15 18:52:54 +0100 |
commit | 166a3f79d2538f40fb150c90b0f8e28987db8daa (patch) | |
tree | a246dd4edc24ad9daaca1582ce35d97ac1673d8e /meta/conf | |
parent | fdbc2290cb4b786cb0135daa500be5072e270cd0 (diff) | |
download | openembedded-core-166a3f79d2538f40fb150c90b0f8e28987db8daa.tar.gz openembedded-core-166a3f79d2538f40fb150c90b0f8e28987db8daa.tar.bz2 openembedded-core-166a3f79d2538f40fb150c90b0f8e28987db8daa.tar.xz openembedded-core-166a3f79d2538f40fb150c90b0f8e28987db8daa.zip |
tcmode-external-csl: avoid hardcoding a list of ia32 archs
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/distro/include/tcmode-external-csl.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/conf/distro/include/tcmode-external-csl.inc b/meta/conf/distro/include/tcmode-external-csl.inc index 0a486580e..deabd490e 100644 --- a/meta/conf/distro/include/tcmode-external-csl.inc +++ b/meta/conf/distro/include/tcmode-external-csl.inc @@ -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 |