mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-25 07:21:05 +00:00
65357b3698
/trunk/arch/arm/functions | 17 17 0 0 +++++++++++++++++ /trunk/arch/arm/config.in | 3 3 0 0 +++ 2 files changed, 20 insertions(+)
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# Compute ARM-specific values
|
|
|
|
CT_DoArchValues() {
|
|
# 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,) CT_TARGET_SYS=gnu;;
|
|
glibc,y) CT_TARGET_SYS=gnueabi;;
|
|
uClibc,) CT_TARGET_SYS=uclibc;;
|
|
uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
|
|
esac
|
|
|
|
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
|
|
}
|