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', 'msp430-unknown-elf-gcc', '-nostdlib', '-mlarge', '-mdata-region=none']
7ar = 'msp430-unknown-elf-ar'
8as = 'msp430-unknown-elf-as'
9nm = 'msp430-unknown-elf-nm'
10strip = 'msp430-unknown-elf-strip'
11exe_wrapper = ['sh', '-c', 'test -z "$PICOLIBC_TEST" || run-msp430 "$@"', 'run-msp430']
12
13[host_machine]
14system = 'zephyr'
15cpu_family = 'msp430'
16cpu = 'msp430'
17endian = 'little'
18
19[properties]
20skip_sanity_check = true
21libgcc = ['-lmul_none', '-lgcc']
22default_alignment = 2
23default_flash_addr  = '0x00010000'
24default_flash_size  = '0x000e0000'
25default_ram_addr    = '0x00001c00'
26default_ram_size    = '0x00004000'
27default_stack_size  = '0x00000400'
28additional_sections = ['init', 'vector']
29default_init_addr = '0x00005c00'
30default_init_size = '0x0000a3c0'
31default_init_contents = ['KEEP (*(.text.init.enter))', 'KEEP (*(.data.init.enter))', 'KEEP (*(SORT_BY_NAME(.init) SORT_BY_NAME(.init.*)))']
32
33default_vector_addr = '0x0000ffc0'
34default_vector_size = '0x00000040'
35default_vector_contents = ['KEEP (*(.rodata.vector*))']
36