sanity-external-toolchain.bbclass: use EXTERNAL_CC

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2020-06-20 02:38:38 +05:00
parent 2a3cffd458
commit f758d228c4

View File

@@ -31,7 +31,7 @@ def check_toolchain_sanity(d, generate_events=False):
raise_exttc_sanity_error('Compiler path `%s` does not exist' % gcc, d, generate_events)
# Test 4: we can run it to get the version
cmd = d.expand('${EXTERNAL_TOOLCHAIN_BIN}/${EXTERNAL_TARGET_SYS}-gcc -dumpversion')
cmd = d.expand('${EXTERNAL_TOOLCHAIN_BIN}/${EXTERNAL_CC} -dumpversion')
sourcery_version = exttc_sanity_run(shlex.split(cmd), d, generate_events)
if cfgdata.get('sourcery_version') == sourcery_version:
return
@@ -48,7 +48,7 @@ def check_toolchain_sanity(d, generate_events=False):
l.setVar('TOOLCHAIN_OPTIONS', '')
l.setVar('TARGET_PREFIX', '${EXTERNAL_TARGET_SYS}-')
l.setVar('HOST_CC_ARCH_remove', '--no-sysroot-suffix')
cmd = l.expand('${EXTERNAL_TOOLCHAIN_BIN}/${CC} ${HOST_CC_ARCH} ${CFLAGS} ${LDFLAGS} test.c -o test')
cmd = l.expand('${EXTERNAL_TOOLCHAIN_BIN}/${EXTERNAL_CC} ${HOST_CC_ARCH} ${CFLAGS} ${LDFLAGS} test.c -o test')
exttc_sanity_run(shlex.split(cmd), d, generate_events, tmpdir)
with open(sanity_file, 'w') as f: