tcmode-external: add -B to TARGET_CC_ARCH, not TUNE_CCARGS

TUNE_CCARGS, while most appropriate, has a `vardepvalue` set which
causes its fully expanded version to end up in checksums, not the
unexpanded version, which causes a problem if that value includes an
absolute path. Place it in TARGET_CC_ARCH instead.

JIRA: SIEJIR-6415

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2022-09-23 01:51:11 +05:00
parent 7a6d39cc27
commit be9874006a

View File

@@ -106,7 +106,7 @@ TUNE_LDARGS += "${@'-m ${LDEMULATION}' if '${LDEMULATION}' else ''}"
# Additional search path for compiler component programs, to let us rebuild
# binutils if necessary.
gcc_bindir = "${STAGING_BINDIR_TOOLCHAIN}/gcc"
TUNE_CCARGS .= "${@' -B${gcc_bindir}' if d.getVar('PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils') != 'binutils-external-cross-${TARGET_ARCH}' else ''}"
TARGET_CC_ARCH .= "${@' -B${gcc_bindir}' if d.getVar('PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils') != 'binutils-external-cross-${TARGET_ARCH}' else ''}"
# Align the external toolchain ldflags with the internal
TARGET_LDFLAGS_BUILD_ID = "-Wl,--build-id=sha1"