use sh-elf by default when building

This commit is contained in:
Lephe 2019-11-13 19:31:37 +01:00
parent 9eb723ee53
commit 3baa7612ee
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 5 additions and 4 deletions

View File

@ -42,6 +42,7 @@ or both. There are a few dependencies:
* A suitable GCC toolchain in the `PATH`. You can absolutely *not* build gint
with your system compiler!
* The tutorial on Planète Casio builds an `sh-elf` that works everywhere
* For fx-9860G II, `sh3eb-elf` is strongly advised
* For fx-CG 50, `sh4eb-elf` (with `-m4-nofpu`) is slightly better but
`sh3eb-elf` is completely fine

8
configure vendored
View File

@ -41,11 +41,11 @@ Target selection:
fx9860g covers all fx-9860G II-like monochromes models that support add-ins
or can be flashed with an OS that does. This includes SH3 and SH4 machines.
Default toolchain is 'sh3eb-elf'.
Default toolchain is 'sh-elf'.
fxcg50 covers just the fx-CG 50; there is some unofficial compatibility with
fx-CG 10/20. All of these are SH4-only.
Default toolchain is 'sh4eb-elf'.
Default toolchain is 'sh-elf'.
Build options:
--toolchain=TRIPLET Build with a different toolchain
@ -95,10 +95,10 @@ for arg; do case "$arg" in
case ${arg#*=} in
"fx9860g")
target=fx9860g
toolchain=${toolchain:-sh3eb-elf};;
toolchain=${toolchain:-sh-elf};;
"fxcg50")
target=fxcg50
toolchain=${toolchain:-sh4eb-elf};;
toolchain=${toolchain:-sh-elf};;
*)
echo "error: invalid target '$target'"
fail=true