mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-14 08:49:54 +00:00
59ef10f5d6
- Add support for eglibc /trunk/scripts/functions | 6 4 2 0 ++++-- /trunk/docs/CREDITS | 1 1 0 0 + /trunk/config/libc.in | 12 12 0 0 ++++++++++++ /trunk/arch/arm/functions | 4 2 2 0 ++-- 4 files changed, 19 insertions(+), 4 deletions(-)
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
|
|
}
|