1[binaries]
2# Meson 0.53.2 doesn't use any cflags when doing basic compiler tests,
3# so we have to add -nostdlib to the compiler configuration itself or
4# early compiler tests will fail. This can be removed when picolibc
5# requires at least version 0.54.2 of meson.
6c = ['ccache', 'riscv64-unknown-elf-gcc', '-nostdlib']
7ar = 'riscv64-unknown-elf-ar'
8as = 'riscv64-unknown-elf-as'
9strip = 'riscv64-unknown-elf-strip'
10nm = 'riscv64-unknown-elf-nm'
11# only needed to run tests
12exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv "$@"', 'run-riscv']
13
14[host_machine]
15system = 'unknown'
16cpu_family = 'riscv64'
17cpu = 'riscv'
18endian = 'little'
19
20[properties]
21# this uses shorter but slower function entry code
22c_args = [ '-msave-restore' ]
23# default multilib is 64 bit
24c_args_ = [ '-mcmodel=medany' ]
25skip_sanity_check = true
26default_flash_addr = '0x80000000'
27default_flash_size = '0x00200000'
28default_ram_addr   = '0x80200000'
29default_ram_size   = '0x00200000'
30