arch/arm/functions
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 05 10:36:53 2008 +0000 (2008-09-05)
changeset 835 8b976f2f38f9
parent 787 0725d7f8ab22
child 850 ef8549b58b6f
permissions -rw-r--r--
Add completion for crosstool-NG.
To be sourced by a bash-compatible shell startup script; ideally, to be installed in /etc/bash_completion.d/

/trunk/ct-ng.comp | 30 30 0 0 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
     1 # Compute ARM-specific values
     2 
     3 CT_DoArchValues() {
     4     # The architecture part of the tuple:
     5     CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
     6 
     7     # The system part of the tuple:
     8     case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
     9         *glibc,)    CT_TARGET_SYS=gnu;;
    10         *glibc,y)   CT_TARGET_SYS=gnueabi;;
    11         uClibc,)    CT_TARGET_SYS=uclibc;;
    12         uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
    13     esac
    14 
    15     # In case we're EABI, do *not* specify any ABI!
    16     # which means, either we do not have an ABI specified, or we're not EABI.
    17     CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}"
    18 }