2007-09-14 21:17:59 +00:00
|
|
|
# Compute ARM-specific values
|
|
|
|
|
2008-10-23 13:00:45 +00:00
|
|
|
CT_DoArchTupleValues() {
|
2007-09-14 21:17:59 +00:00
|
|
|
# The architecture part of the tuple:
|
|
|
|
CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
|
|
|
|
|
2007-09-14 21:31:00 +00:00
|
|
|
# The system part of the tuple:
|
|
|
|
case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
|
2008-08-11 12:22:47 +00:00
|
|
|
*glibc,y) CT_TARGET_SYS=gnueabi;;
|
2007-09-14 21:31:00 +00:00
|
|
|
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
|
2009-10-21 20:51:39 +00:00
|
|
|
*,y) CT_TARGET_SYS=eabi;;
|
2007-09-14 21:31:00 +00:00
|
|
|
esac
|
2009-10-26 08:10:38 +00:00
|
|
|
|
2011-07-17 14:54:50 +00:00
|
|
|
# Set the default instruction set mode
|
2009-10-26 08:10:38 +00:00
|
|
|
case "${CT_ARCH_ARM_MODE}" in
|
|
|
|
arm) ;;
|
|
|
|
thumb)
|
|
|
|
CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
|
|
|
|
CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
|
|
|
|
# CT_ARCH_TARGET_CFLAGS="-mthumb"
|
|
|
|
;;
|
|
|
|
esac
|
2009-10-26 22:11:10 +00:00
|
|
|
|
|
|
|
if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
|
|
|
|
CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
|
|
|
|
fi
|
2007-09-14 21:17:59 +00:00
|
|
|
}
|