diff options
author | Ronald G. Minnich <rminnich@google.com> | 2013-11-08 10:13:50 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-11-10 04:41:30 +0100 |
commit | 12785d9601d8fdfe6f12289b4fd7001f304862f5 (patch) | |
tree | c7ba6982011ee719bdc801f87be9c24a15d57809 /util | |
parent | 2a58ecde78350902ac47145a3f2dba063bce3375 (diff) |
util/xcompile/xcompile: set up for aarch64
The tools for aarch64 on ubuntu are called
aarch64-linux-gnu-*
The type is
elf64-littleaarch64
This now finds the right files for building on aarch64
This has only been tested on ubuntu saucy; the aarch64 toolchain
is in a very ill-defined state on most distros.
Change-Id: Ic1bbd40f0d72384d6e80287b850686292a252918
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Reviewed-on: http://review.coreboot.org/4035
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/xcompile/xcompile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 5388889776..df7d558fb9 100644 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -110,6 +110,10 @@ detect_special_flags() { ARMFLAGS="" testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS" ;; + aarch64 ) + ARMFLAGS="" + testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS" + ;; esac } @@ -136,7 +140,7 @@ touch "$TMPFILE" trap clean_up EXIT # Architecture definition -SUPPORTED_ARCHITECTURE="x86 armv7" +SUPPORTED_ARCHITECTURE="x86 armv7 aarch64" # ARM Architecture TARCH_armv7="armv7" @@ -144,6 +148,12 @@ TBFDARCH_armv7="littlearm" TCLIST_armv7="armv7a armv7-a" TWIDTH_armv7="32" +# AARCH64 -- armv8 +TARCH_aarch64="aarch64" +TBFDARCH_aarch64="littleaarch64" +TCLIST_aarch64="aarch64" +TWIDTH_aarch64="64" + # X86 Architecture TARCH_x86="i386" TBFDARCH_x86="i386" @@ -170,6 +180,7 @@ for architecture in $SUPPORTED_ARCHITECTURE; do for toolchain in $TCLIST; do search="$search $XGCCPATH$toolchain-elf-" search="$search $toolchain-elf-" + search="$search $toolchain-linux-gnu-" search="$search $XGCCPATH$toolchain-eabi-" search="$search $toolchain-eabi-" done |