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 = ['nios2-zephyr-elf-gcc', '-nostdlib', '-fno-pic', '-fno-pie', '--param=min-pagesize=0', '-mgpopt=global']
7cpp = ['nios2-zephyr-elf-g++', '-nostdlib', '-fno-pic', '-fno-pie', '--param=min-pagesize=0', '-mgpopt=global']
8ar = 'nios2-zephyr-elf-ar'
9as = 'nios2-zephyr-elf-as'
10nm = 'nios2-zephyr-elf-nm'
11strip = 'nios2-zephyr-elf-strip'
12# only needed to run tests
13exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-nios2 "$@"', 'run-nios2']
14
15[host_machine]
16system = 'zephyr'
17cpu_family = 'nios2'
18cpu = 'nios2'
19endian = 'little'
20
21[properties]
22skip_sanity_check = true
23default_flash_addr = '0xc8000000'
24default_flash_size = '0x04000000'
25default_ram_addr   = '0xcc000000'
26default_ram_size   = '0x04000000'
27