|
| 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. |
| 6 | +c = ['clang', '-m32', '-target', 'riscv32-unknown-elf', '-march=rv32imafc', '-mabi=ilp32f', '-nostdlib'] |
| 7 | +cpp = ['clang', '-m32', '-target', 'riscv32-unknown-elf', '-march=rv32imafc', '-mabi=ilp32f', '-nostdlib'] |
| 8 | +c_ld = '/usr/bin/riscv64-unknown-elf-ld' |
| 9 | +cpp_ld = '/usr/bin/riscv64-unknown-elf-ld' |
| 10 | +ar = 'riscv64-unknown-elf-ar' |
| 11 | +as = 'riscv64-unknown-elf-as' |
| 12 | +nm = 'riscv64-unknown-elf-nm' |
| 13 | +strip = 'riscv64-unknown-elf-strip' |
| 14 | +# only needed to run tests |
| 15 | +exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-riscv "$@"', 'run-riscv'] |
| 16 | + |
| 17 | +[host_machine] |
| 18 | +system = 'none' |
| 19 | +cpu_family = 'riscv32' |
| 20 | +cpu = 'riscv' |
| 21 | +endian = 'little' |
| 22 | + |
| 23 | +[properties] |
| 24 | +c_args = ['-Werror=double-promotion'] |
| 25 | +c_link_args = ['-Wl,-melf32lriscv', '-L/usr/lib/gcc/riscv64-unknown-elf/14.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/13.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/12.1.0/rv32imafdc/ilp32d'] |
| 26 | +cpp_link_args = ['-Wl,-melf32lriscv', '-L/usr/lib/gcc/riscv64-unknown-elf/14.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/13.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv32imafdc/ilp32d', '-L/usr/lib/gcc/riscv64-unknown-elf/12.1.0/rv32imafdc/ilp32d'] |
| 27 | +skip_sanity_check = true |
| 28 | +has_link_defsym = true |
| 29 | +default_flash_addr = '0x80000000' |
| 30 | +default_flash_size = '0x00200000' |
| 31 | +default_ram_addr = '0x80200000' |
| 32 | +default_ram_size = '0x00200000' |
0 commit comments