2007-09-14 21:17:59 +00:00
|
|
|
# Compute ARM-specific values
|
|
|
|
|
|
|
|
CT_DoArchValues() {
|
|
|
|
# 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,) CT_TARGET_SYS=gnu;;
|
|
|
|
*glibc,y) CT_TARGET_SYS=gnueabi;;
|
2007-09-14 21:31:00 +00:00
|
|
|
uClibc,) CT_TARGET_SYS=uclibc;;
|
|
|
|
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
|
|
|
|
esac
|
2008-05-14 17:59:52 +00:00
|
|
|
|
|
|
|
case "${CT_ARCH_ABI},${CT_ARCH_ARM_EABI}" in
|
|
|
|
*,) ;;
|
|
|
|
aapcs,y)
|
|
|
|
CT_DoLog DEBUG "'--with-abi=aapcs' is in fact '-mabi=aapcs-linux' when used in CFLAGS."
|
|
|
|
CT_ARCH_ABI_CFLAGS="-mabi=aapcs-linux"
|
|
|
|
;;
|
|
|
|
,y)
|
|
|
|
CT_DoLog WARN "Forcing ABI to 'aapcs-linux' for use with EABI."
|
|
|
|
CT_ARCH_WITH_ABI="--with-abi=aapcs"
|
|
|
|
CT_ARCH_ABI_CFLAGS="-mabi=aapcs-linux"
|
|
|
|
;;
|
|
|
|
*,y)
|
|
|
|
CT_DoLog ERROR "ABI='${CT_ARCH_ABI}' not supported for EABI."
|
|
|
|
CT_Abort "If you know you are right, please edit 'arch/arm/functions' in crosstool-NG sources."
|
|
|
|
;;
|
|
|
|
esac
|
2007-09-14 21:17:59 +00:00
|
|
|
}
|