summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-08-01 18:52:21 -0500
committerZach van Rijn <me@zv.io>2024-08-01 18:52:21 -0500
commit3350584940c3c688ffd21c097061a07f439daebf (patch)
treef335268c98130c895ffc37a090f2d61b6e002ad6
parentd1b8b6ea04ef53220f29adf9c0ef3a3de73762c5 (diff)
downloadbootstrap-3350584940c3c688ffd21c097061a07f439daebf.tar.gz
bootstrap-3350584940c3c688ffd21c097061a07f439daebf.tar.bz2
bootstrap-3350584940c3c688ffd21c097061a07f439daebf.tar.xz
bootstrap-3350584940c3c688ffd21c097061a07f439daebf.zip
Add support for target mips64.
-rwxr-xr-xbootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index b3114ce..3ff9937 100755
--- a/bootstrap
+++ b/bootstrap
@@ -291,7 +291,7 @@
#
# * Finish the "system/" build; the "bootstrap.sh" script will
# require some work. Current status: preimage is finished.
-#
+#
HERE="$(dirname $(readlink -f ${0}))";
@@ -336,6 +336,7 @@ case "${1}" in
x86_64) m=x86_64: ; q=x86_64 ; ;;
pmmx) m=i586: ; q=i386 ; ;;
+ mips64) m=mips64: ; q=mips64 ; ;;
riscv64) m=riscv64: ; q=riscv64 ; ;;
s390x) m=s390x: ; q=s390x ; ;;
@@ -468,6 +469,10 @@ GCC_CONFIG_FOR_TARGET += --with-arch=i586 --with-tune=pentium2 --enable-cld --en
endif
# experimental targets
+ifneq ($(findstring mips64-,$(TARGET)),)
+GCC_CONFIG_FOR_TARGET += --with-abi=64 --with-mips-plt
+endif
+
ifneq ($(findstring riscv64-,$(TARGET)),)
GCC_CONFIG_FOR_TARGET += --with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic
endif