From b10e0d438bf16143b072e315bc9b21aeb972cd14 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Sat, 29 Oct 2016 14:04:48 -0700 Subject: [PATCH] tcmode: disable 32-bit pseudo for 64-bit codebench Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external-sourcery.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index d298f78..3731aaf 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -4,10 +4,9 @@ EXTERNAL_TOOLCHAIN ?= "UNDEFINED" -# Ensure that pseudo builds both 32 bit and 64 bit binaries, as we need the -# 32 bit pseudo to execute the 32 bit external toolchain binaries without -# errors or warnings. -NO32LIBS ?= "0" +# When using a 32-bit external toolchain, we need 32 bit pseudo +HAS_64BIT_TOOLCHAIN = "${@'1' if '${BUILD_ARCH}' == 'x86_64' and os.path.exists('${EXTERNAL_TOOLCHAIN}/${BUILD_SYS}-gnu') else '0'}" +NO32LIBS ?= "${HAS_64BIT_TOOLCHAIN}" # Align paths with the external toolchain BASELIB_aarch64 = "lib64"