| 1 |
# This file assumes that path to the arm compiler toolchain is added |
| 2 |
# to the environment(PATH) variable, so that Meson can find |
| 3 |
# the armclang, armlink and armar while building. |
| 4 |
[binaries] |
| 5 |
c = ['armclang', '--target=arm-arm-none-eabi'] |
| 6 |
cpp = ['armclang', '--target=arm-arm-none-eabi'] |
| 7 |
ar = 'armar' |
| 8 |
strip = 'armar' |
| 9 |
|
| 10 |
[built-in options] |
| 11 |
# The '--target', '-mcpu' options with the appropriate values should be mentioned |
| 12 |
# to cross compile c/c++ code with armclang. |
| 13 |
c_args = ['-mcpu=cortex-m0plus'] |
| 14 |
cpp_args = ['-mcpu=cortex-m0plus'] |
| 15 |
|
| 16 |
[host_machine] |
| 17 |
system = 'bare metal' # Update with your system name - bare metal/OS. |
| 18 |
cpu_family = 'arm' |
| 19 |
cpu = 'Cortex-M0+' |
| 20 |
endian = 'little' |