summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-08-04 20:15:30 -0500
committerZach van Rijn <me@zv.io>2024-08-04 20:15:30 -0500
commit57ca620b39de136423784e4328732b2b5f36251b (patch)
tree0e0434f31340d22a13db18879175ad9929a3e643
parentd0900a87fe3445d1a15f9557afaff45105c1926d (diff)
downloadbootstrap-57ca620b39de136423784e4328732b2b5f36251b.tar.gz
bootstrap-57ca620b39de136423784e4328732b2b5f36251b.tar.bz2
bootstrap-57ca620b39de136423784e4328732b2b5f36251b.tar.xz
bootstrap-57ca620b39de136423784e4328732b2b5f36251b.zip
Add support for target m68k.
-rwxr-xr-xbootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 5c57dc7..f85026c 100755
--- a/bootstrap
+++ b/bootstrap
@@ -5,7 +5,7 @@
# Purpose : Bootstraps Adélie from source for any architecture.
# Authors : Zach van Rijn <me@zv.io>
# License : MIT
-# Revision : 20240803
+# Revision : 20240804
#===============================================================
#===============================================================
@@ -336,6 +336,7 @@ case "${1}" in
x86_64) m=x86_64: ; q=x86_64 ; ;;
pmmx) m=i586: ; q=i386 ; ;;
+ m68k) m=m68k: ; q=m68k ; ;;
mips64) m=mips64: ; q=mips64 ; ;;
riscv64) m=riscv64: ; q=riscv64 ; ;;
s390x) m=s390x: ; q=s390x ; ;;
@@ -469,6 +470,10 @@ GCC_CONFIG_FOR_TARGET += --with-arch=i586 --with-tune=pentium2 --enable-cld --en
endif
# experimental targets
+ifneq ($(findstring m68k-,$(TARGET)),)
+GCC_CONFIG_FOR_TARGET += --with-arch=m68k --with-cpu=m68020
+endif
+
ifneq ($(findstring mips64-,$(TARGET)),)
GCC_CONFIG_FOR_TARGET += --with-abi=64 --with-mips-plt
endif