AnsweredAssumed Answered

Why is the ARCH for Yocto SabreSD __ARM_ARCH_5T__

Question asked by Mike Jones on Jul 15, 2014
Latest reply on Sep 1, 2014 by Yixing Kong
Branched to a new discussion

When I build the Yocto toolchain for sabresd, and type the following:

 

./arm-poky-linux-gnueabi-gcc -dM -E - < /dev/null | grep ARM

 

your get:

 

#define __ARM_SIZEOF_WCHAR_T 32

#define __ARM_ARCH_ISA_ARM 1

#define __ARMEL__ 1

#define __ARM_FP 12

#define __ARM_NEON_FP 4

#define __ARM_SIZEOF_MINIMAL_ENUM 4

#define __ARM_PCS_VFP 1

#define __ARM_ARCH_5T__ 1

#define __ARM_FEATURE_CLZ 1

#define __ARM_ARCH_ISA_THUMB 1

#define __ARM_ARCH 5

#define __ARM_EABI__ 1

 

This causes problems when compiling a project with Autotools that uses the Yocto toolchain, because the ARCH for iMX6 should be version 7. For example, when compiling GHC, __ARM_ARCH_5T__ results in a v5 compiler instead of a v7 compiler, and the resulting binaries have problems.

 

Is there a reason for 5T? Should this be fixed? Does anyone know where in the Yocto build system to fix this?

Outcomes