mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 05:17:54 +00:00
30ad622618
Reported-by: "Antony N. Pavlov" <antony@niisi.msk.ru> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
28 lines
788 B
Bash
28 lines
788 B
Bash
# Compute ARM-specific values
|
|
|
|
CT_DoArchTupleValues() {
|
|
# The architecture part of the tuple:
|
|
CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
|
|
|
|
# The system part of the tuple:
|
|
case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
|
|
*glibc,y) CT_TARGET_SYS=gnueabi;;
|
|
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
|
|
*,y) CT_TARGET_SYS=eabi;;
|
|
esac
|
|
|
|
# Set the default instruction set mode
|
|
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
|
|
|
|
if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
|
|
CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
|
|
fi
|
|
}
|