[coreboot-gerrit] Patch set updated for coreboot: 887b699 ARM ARCH64: extend buildgcc and xcompile to set the tools up

Ronald G. Minnich (rminnich@gmail.com) gerrit at coreboot.org
Tue Jul 2 20:09:20 CEST 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/3591

-gerrit

commit 887b69987d0a68652bd042003dedc96af21bb42f
Author: Ronald G. Minnich <rminnich at gmail.com>
Date:   Tue Jul 2 19:20:21 2013 +0200

    ARM ARCH64: extend buildgcc and xcompile to set the tools up
    
    With this change, the recommended aarch64 toolchain is fetched,
    installed, and util/xcompile/xcompile will properly put the
    definitions in .xcompile
    
    For now, we need to get the pre-built compilers per a
    conversation we've had with a CPU company. The patch list
    is evidently huge and still in the process of being taken in.
    The current 'good' toolchain is the linaro one.
    They recommended in the strongest terms that just getting the
    binaries was the way to go for now. Obviously, at some point,
    this decision will be revisited.
    
    Change-Id: I904acd604ac0982178fa5c2f27f22fee7cf1cac0
    Signed-off-by: Ronald G. Minnich <rminnich at gmail.com>
---
 util/crossgcc/buildgcc | 14 ++++++++++++++
 util/xcompile/xcompile |  7 ++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 4458ea4..8efccd8 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -227,10 +227,24 @@ case "$TARGETARCH" in
 	i386-mingw32)	;;
 	i386*)		TARGETARCH=i386-elf;;
 	arm*)		TARGETARCH=armv7a-eabi;;
+	aarch64)	TARGETARCH=aarch64;;
 	*)		printf "Invalid architecture\n\n"; myhelp; exit 1;;
 esac
 
 echo "Target arch is now $TARGETARCH"
+
+# we're not building from source yet.
+if [ $TARGETARCH = "aarch64" ]; then
+	mkdir -p xgcc/bin
+	cd xgcc/bin
+	wget -O - http://releases.linaro.org/12.10/components/toolchain/gcc-linaro/aarch64/rc3/gcc-linaro-aarch64-linux-gnu-4.7+bzr115029-20121015+bzr2506_linux.tar.bz2 | tar xjf -
+	for i in gcc-linaro-aarch64-linux-gnu-4.7+bzr115029-20121015+bzr2506_linux/aarch64-linux-gnu/bin/*; do
+		file=`basename $i`
+		ln -s $i aarch64-elf-$file
+	done
+	exit
+fi
+
 GDB_PACKAGE="GDB"
 PYTHON_PACKAGE="PYTHON"
 EXPAT_PACKAGE="EXPAT"
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index ff12217..08058c6 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -135,7 +135,7 @@ touch "$TMPFILE"
 trap clean_up EXIT
 
 # Architecture definition
-SUPPORTED_ARCHITECTURE="x86 armv7"
+SUPPORTED_ARCHITECTURE="x86 armv7 aarch64"
 
 # ARM Architecture
 TARCH_armv7="armv7"
@@ -143,6 +143,11 @@ TBFDARCH_armv7="littlearm"
 TCLIST_armv7="armv7a"
 TWIDTH_armv7="32"
 
+TARCH_aarch64="aarch64"
+TBFDARCH_aarch64="littleaarch64"
+TCLIST_aarch64="aarch64"
+TWIDTH_aarch64="64"
+
 # X86 Architecture
 TARCH_x86="i386"
 TBFDARCH_x86="i386"



More information about the coreboot-gerrit mailing list