[coreboot-gerrit] New patch to review for coreboot: 15e1620 util/xcompile/xcompile: try, and fail, to set it up for aarch64

Ronald G. Minnich (rminnich@gmail.com) gerrit at coreboot.org
Fri Nov 8 19:21:09 CET 2013


Ronald G. Minnich (rminnich at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4035

-gerrit

commit 15e162025bf05b49d74d7e1b59c4d8ede9241a39
Author: Ronald G. Minnich <rminnich at google.com>
Date:   Fri Nov 8 10:13:50 2013 -0800

    util/xcompile/xcompile: try, and fail, to set it up for aarch64
    
    Not to be comitted until fixed.
    
    The tools for aarch64 on ubuntu are called
    aarch64-linux-gnu-*
    The type is
    elf64-littleaarch64
    
    I've added what I think ought to work but it fails to find it.
    
    One thing I've noticed is that gcc for the test .c file
    is only run AFTER the first instance of testas is run, which
    I don't understand. But the assembly source in /tmp that testas
    runs against, for aarch64, is a 0-byte file.
    
    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 at google.com>
---
 util/xcompile/xcompile | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 5388889..a60f3cb 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="elf64-littleaarch64"
+TCLIST_aarch64="aarch64 aarch64-linux-gnu"
+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-"
 		search="$search $XGCCPATH$toolchain-eabi-"
 		search="$search $toolchain-eabi-"
 	done



More information about the coreboot-gerrit mailing list