tcmode: due to the switch to a SYSROOT var, shift when populate_toolchain_links happens

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2012-08-15 09:11:36 -07:00
parent e225c7c5cd
commit db995d3bf1

View File

@@ -87,6 +87,7 @@ python toolchain_metadata_setup () {
if os.path.exists(bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/gcc', l)):
d.setVar('TOOLCHAIN_PATH_ADD', '')
populate_toolchain_links(l)
# The external toolchain may not have been built with the yocto preferred
# gnu hash setting, so ensure that the corresponding sanity check is a
@@ -99,25 +100,11 @@ python toolchain_metadata_setup () {
}
addhandler toolchain_metadata_setup
python toolchain_setup () {
if not isinstance(e, bb.event.BuildStarted):
return
d = e.data
if not d.getVar('TOOLCHAIN_PATH_ADD', True):
populate_toolchain_links(d)
}
addhandler toolchain_setup
def populate_toolchain_links(d):
import errno
import os
from glob import glob
d = d.createCopy()
d.finalize()
pattern = d.expand('${EXTERNAL_TOOLCHAIN}/bin/${TARGET_PREFIX}*')
files = glob(pattern)
if not files: