From 5afc50391f98e0719be9088763c48b3b9074c401 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 29 Nov 2016 14:42:12 -0700 Subject: [PATCH 1/2] tcmode: fix x32 LDEMULATION Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external-sourcery.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index 4738e36..0eeed75 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -134,6 +134,7 @@ LDEMULATION_ENDIAN = "${@'bt' if 'bigendian' in '${TUNE_FEATURES}'.split() else LDEMULATION_BITS = "${@'64' if 'n64' in '${TUNE_FEATURES}'.split() else '32'}" LDEMULATION_mips64 = "elf${LDEMULATION_BITS}${LDEMULATION_ENDIAN}smip${@bb.utils.contains('TUNE_FEATURES', 'n32', 'n32', '', d)}" LDEMULATION_x86-64 = "elf_${TARGET_ARCH}" +LDEMULATION_x86-64_linux-gnux32 = "elf32_${TARGET_ARCH}" TUNE_LDARGS += "${@'-m ${LDEMULATION}' if '${LDEMULATION}' else ''}" # Ensure that the licensing variables are available to the toolchain. From 6a9eaae40bdd5620b32ce7f4496b8e9df2e8294a Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 29 Nov 2016 14:44:50 -0700 Subject: [PATCH 2/2] tcmode: fix x32 BASELIB Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external-sourcery.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index 0eeed75..95515f4 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -17,6 +17,7 @@ NO32LIBS ?= "${HAS_64BIT_TOOLCHAIN}" # Align paths with the external toolchain BASELIB_aarch64 = "lib64" BASELIB_x86-64 = "lib64" +BASELIB_x86-64_linux-gnux32 = "libx32" # Ensure that we only attempt to package up locales which are available in the # external toolchain. In the future, we should examine the external toolchain