tcmode: add to gcc compiler component search path

This lets the cross gcc locate the binaries produced by binutils-cross.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-03 01:22:26 +05:00
parent 7e59a345f5
commit 52e9e14cb4

View File

@@ -74,6 +74,11 @@ LDEMULATION_x86-64 = "elf_${TARGET_ARCH}"
LDEMULATION_x86-64_linux-gnux32 = "elf32_${TARGET_ARCH}"
TUNE_LDARGS += "${@'-m ${LDEMULATION}' if '${LDEMULATION}' else ''}"
# Additional search path for compiler component programs, to let us rebuild
# components if necessary.
gcc_bindir = "${STAGING_BINDIR_TOOLCHAIN}/gcc"
TUNE_CCARGS += "-B${gcc_bindir}"
python toolchain_metadata_setup () {
# The external toolchain may not have been built with the yocto preferred
# gnu hash setting, so ensure that the corresponding sanity check is a