summaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
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) ;;