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 = ['clang', '--target=arm-none-eabi', '-nostdlib']
7cpp = ['clang', '--target=arm-none-eabi', '-nostdlib']
8ar = 'llvm-ar'
9nm = 'llvm-nm'
10strip = 'llvm-strip'
11# only needed to run tests
12exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-arm "$@"', 'run-arm']
13
14[host_machine]
15system = 'none'
16cpu_family = 'arm'
17cpu = 'arm'
18endian = 'little'
19
20[properties]
21skip_sanity_check = true
22libgcc='-lclang_rt.builtins'
23default_flash_addr = '0x00000000'
24default_flash_size = '0x00400000'
25default_ram_addr   = '0x20000000'
26default_ram_size   = '0x00200000'
27
28custom_mem_config_arm_none_eabi_armv8m_main = 'mps2_an505'
29
30custom_mem_config_arm_none_eabi_armv8_1m_main = 'mps3_an547'
31
32separate_boot_flash_mps2_an505 = true
33default_boot_flash_addr_mps2_an505 = '0x10000000'
34default_boot_flash_size_mps2_an505 = '0x10000400'
35default_flash_addr_mps2_an505 = '0x10000400'
36default_flash_size_mps2_an505 = '0x103ffc00'
37default_ram_addr_mps2_an505 = '0x80000000'
38default_ram_size_mps2_an505 = '0x01000000'
39
40separate_boot_flash_mps3_an547 = true
41default_boot_flash_addr_mps3_an547 = '0x00000000'
42default_boot_flash_size_mps3_an547 = '0x00080000'
43default_flash_addr_mps3_an547 = '0x01000000'
44default_flash_size_mps3_an547 = '0x00200000'
45default_ram_addr_mps3_an547 = '0x60000000'
46default_ram_size_mps3_an547 = '0x01000000'
47