mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 09:21:52 +00:00
picolibc: Use target architecture to drive picolibc configuration
This selects code matching the target architecture within picolibc. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
c1c475d0a0
commit
e802686d86
@ -22,7 +22,7 @@ picolibc_main()
|
|||||||
|
|
||||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libc"
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libc"
|
||||||
|
|
||||||
CT_DoLog EXTRA "Configuring C library"
|
CT_DoLog EXTRA "Configuring Picolibc library"
|
||||||
|
|
||||||
# Multilib is the default, so if it is not enabled, disable it.
|
# Multilib is the default, so if it is not enabled, disable it.
|
||||||
if [ "${CT_MULTILIB}" != "y" ]; then
|
if [ "${CT_MULTILIB}" != "y" ]; then
|
||||||
@ -81,10 +81,10 @@ as = '${CT_TARGET}-as'
|
|||||||
strip = '${CT_TARGET}-strip'
|
strip = '${CT_TARGET}-strip'
|
||||||
|
|
||||||
[host_machine]
|
[host_machine]
|
||||||
system = 'none'
|
system = '${CT_TARGET_VENDOR}'
|
||||||
cpu_family = 'arm'
|
cpu_family = '${CT_TARGET_ARCH}'
|
||||||
cpu = 'arm'
|
cpu = '${CT_TARGET_ARCH}'
|
||||||
endian = 'little'
|
endian = '${CT_ARCH_ENDIAN}'
|
||||||
|
|
||||||
[properties]
|
[properties]
|
||||||
c_args = [ ${meson_cflags} '-nostdlib', '-fno-common', '-ftls-model=local-exec' ]
|
c_args = [ ${meson_cflags} '-nostdlib', '-fno-common', '-ftls-model=local-exec' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user