From be9874006a66254a5a39f6221d678e495eb7bfaa Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Fri, 23 Sep 2022 01:51:11 +0500 Subject: [PATCH] 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 --- conf/distro/include/tcmode-external.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/distro/include/tcmode-external.inc b/conf/distro/include/tcmode-external.inc index a7c99b4..8626ef4 100644 --- a/conf/distro/include/tcmode-external.inc +++ b/conf/distro/include/tcmode-external.inc @@ -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"