aboutsummaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-13 22:50:22 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-03-17 01:07:27 +0100
commit24f9cb91d0c4d55fe1cadaa3a913a14506412cdd (patch)
tree4d622f5ee05d0ec184c5ca0ecab030c47213e246 /util/crossgcc
parent84c72dedab605ac79c51d4666e0aa739e05ed973 (diff)
crossgcc: Add x86_64 to list of supported architectures
You can build your new toolchain with: $ cd util/crossgcc/ $ ./buildgcc -d /opt/cross -p x86_64-elf -j 16 or $ make crossgcc-x64 Change-Id: I8eb584166294578d2b33c63e94ed3aca9b5de4f4 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/8668 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/crossgcc')
-rw-r--r--util/crossgcc/Makefile9
-rwxr-xr-xutil/crossgcc/buildgcc2
2 files changed, 10 insertions, 1 deletions
diff --git a/util/crossgcc/Makefile b/util/crossgcc/Makefile
index 2d344e345d..2f18b17ac7 100644
--- a/util/crossgcc/Makefile
+++ b/util/crossgcc/Makefile
@@ -1,8 +1,11 @@
-all: build-i386 build-armv7a build-aarch64 build-mips build-riscv
+all: build-i386 build-x64 build-armv7a build-aarch64 build-mips build-riscv
build-i386:
bash ./buildgcc -G -p i386-elf
+build-x64:
+ bash ./buildgcc -G -p x86_64-elf
+
build-armv7a:
bash ./buildgcc -G -p armv7a-eabi
@@ -19,6 +22,10 @@ build-riscv:
build-i386-without-gdb:
bash ./buildgcc -p i386-elf
+.PHONY: build-x64-without-gdb
+build-x64-without-gdb:
+ bash ./buildgcc -p x86_64-elf
+
.PHONY: build-armv7a-without-gdb
build-armv7a-without-gdb:
bash ./buildgcc -p armv7a-eabi
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 7221b8326a..ceb1d1d4f1 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -232,6 +232,8 @@ while true ; do
done
case "$TARGETARCH" in
+ x86_64-elf) ;;
+ x86_64*) TARGETARCH=x86_64-elf;;
i386-elf) ;;
i386-mingw32) ;;
mipsel-elf) ;;