commit
c58dd64f8e
11 changed files with 204 additions and 6 deletions
@ -0,0 +1,20 @@ |
|||||||
|
# This file assumes that path to the arm compiler toolchain is added |
||||||
|
# to the environment(PATH) variable, so that Meson can find |
||||||
|
# the armcc, armlink and armar while building. |
||||||
|
[binaries] |
||||||
|
c = 'armcc' |
||||||
|
cpp = 'armcc' |
||||||
|
ar = 'armar' |
||||||
|
strip = 'armar' |
||||||
|
|
||||||
|
[properties] |
||||||
|
# The '--cpu' option with the appropriate target type should be mentioned |
||||||
|
# to cross compile c/c++ code with armcc,. |
||||||
|
c_args = ['--cpu=Cortex-M0plus'] |
||||||
|
cpp_args = ['--cpu=Cortex-M0plus'] |
||||||
|
|
||||||
|
[host_machine] |
||||||
|
system = 'bare metal' # Update with your system name - bare metal/OS. |
||||||
|
cpu_family = 'arm' |
||||||
|
cpu = 'Cortex-M0+' |
||||||
|
endian = 'little' |
@ -0,0 +1,15 @@ |
|||||||
|
## ARM compiler for C and CPP |
||||||
|
|
||||||
|
Cross-compilation is now supported for ARM targets using ARM compiler - ARMCC. |
||||||
|
The current implementation does not support shareable libraries. |
||||||
|
The default extension of the output is .axf. |
||||||
|
The environment path should be set properly for the ARM compiler executables. |
||||||
|
The '--cpu' option with the appropriate target type should be mentioned |
||||||
|
in the cross file as shown in the snippet below. |
||||||
|
|
||||||
|
``` |
||||||
|
[properties] |
||||||
|
c_args = ['--cpu=Cortex-M0plus'] |
||||||
|
cpp_args = ['--cpu=Cortex-M0plus'] |
||||||
|
|
||||||
|
``` |
Loading…
Reference in new issue