[coreboot-gerrit] New patch to review for coreboot: cfa24d9 ARM ARCH64: try to get xcompile built
Ronald G. Minnich (rminnich@gmail.com)
gerrit at coreboot.org
Tue Jul 2 19:22:37 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 cfa24d9b7f5e52ef0dbb8d12e225a264268b3393
Author: Ronald G. Minnich <rminnich at gmail.com>
Date: Tue Jul 2 19:20:21 2013 +0200
ARM ARCH64: try to get xcompile built
DRAFT: does not work. The toolchain gets installed, but I can't
figure out how to get xcompile to include the binaries.
Maybe some smart guy out there will tell me what I'm missing.
For now, we need to get with the pre-built compilers per a
conversation we've had with a CPU company.
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..548366a 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..308bd02 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="aarch64"
+TCLIST_aarch64="aarch64"
+TWIDTH_aarch64="64"
+
# X86 Architecture
TARCH_x86="i386"
TBFDARCH_x86="i386"
More information about the coreboot-gerrit
mailing list