mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-05 23:44:38 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user