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
No known key found for this signature in database
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 * A suitable GCC toolchain in the `PATH`. You can absolutely *not* build gint
with your system compiler! 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-9860G II, `sh3eb-elf` is strongly advised
* For fx-CG 50, `sh4eb-elf` (with `-m4-nofpu`) is slightly better but * For fx-CG 50, `sh4eb-elf` (with `-m4-nofpu`) is slightly better but
`sh3eb-elf` is completely fine `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 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. 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 fxcg50 covers just the fx-CG 50; there is some unofficial compatibility with
fx-CG 10/20. All of these are SH4-only. fx-CG 10/20. All of these are SH4-only.
Default toolchain is 'sh4eb-elf'. Default toolchain is 'sh-elf'.
Build options: Build options:
--toolchain=TRIPLET Build with a different toolchain --toolchain=TRIPLET Build with a different toolchain
@ -95,10 +95,10 @@ for arg; do case "$arg" in
case ${arg#*=} in case ${arg#*=} in
"fx9860g") "fx9860g")
target=fx9860g target=fx9860g
toolchain=${toolchain:-sh3eb-elf};; toolchain=${toolchain:-sh-elf};;
"fxcg50") "fxcg50")
target=fxcg50 target=fxcg50
toolchain=${toolchain:-sh4eb-elf};; toolchain=${toolchain:-sh-elf};;
*) *)
echo "error: invalid target '$target'" echo "error: invalid target '$target'"
fail=true fail=true