mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
Map picolibc to suitable CT_TARGET_SYS values
picolibc is another bare-metal C library, and so should be mapped to CT_TARGET_SYS just like newlib does. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
e6e39ea63b
commit
c1c475d0a0
@ -7,12 +7,12 @@ CT_DoArchTupleValues () {
|
||||
# Only override values when ABI is not the default
|
||||
case "${CT_ARCH_powerpc_ABI}" in
|
||||
eabi)
|
||||
# EABI is only for bare-metal, so libc ∈ [none,newlib]
|
||||
# EABI is only for bare-metal, so libc ∈ [none,newlib,picolibc]
|
||||
CT_TARGET_SYS="eabi"
|
||||
;;
|
||||
spe)
|
||||
case "${CT_LIBC}" in
|
||||
none|newlib) CT_TARGET_SYS="elfspe";;
|
||||
none|newlib|picolibc) CT_TARGET_SYS="elfspe";;
|
||||
*glibc) CT_TARGET_SYS="gnuspe";;
|
||||
uClibc) CT_TARGET_SYS="uclibcgnuspe";;
|
||||
esac
|
||||
|
@ -1135,7 +1135,7 @@ CT_DoBuildTargetTuple()
|
||||
uClibc) CT_TARGET_SYS=uclibc;;
|
||||
musl) CT_TARGET_SYS=musl;;
|
||||
bionic) CT_TARGET_SYS=android;;
|
||||
none|newlib) CT_TARGET_SYS=elf;;
|
||||
none|newlib|picolibc) CT_TARGET_SYS=elf;;
|
||||
*)
|
||||
# Keep empty for the libraries like mingw or avr-libc
|
||||
CT_TARGET_SYS=
|
||||
|
Loading…
Reference in New Issue
Block a user