forked from EnAccess/Cicada-FW
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stm32.cross.build
66 lines (64 loc) · 2.48 KB
/
stm32.cross.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[binaries]
c = 'arm-none-eabi-gcc'
cpp = 'arm-none-eabi-g++'
ld = 'arm-none-eabi-ld'
ar = 'arm-none-eabi-ar'
as = 'arm-none-eabi-as'
size = 'arm-none-eabi-size'
objdump = 'arm-none-eabi-objdump'
objcopy = 'arm-none-eabi-objcopy'
strip = 'arm-none-eabi-strip'
gdb = 'arm-none-eabi-gdb'
[properties]
cicada_build_target = 'stm32f1'
cpp_args = ['-DSTM32F103xB', # MCU type, used by STM32Cube
'-mcpu=cortex-m3', # target CPU type
'-mthumb', # use Thumb instruction set
'-Og', # optimise for debug
'-Wall', # enable all compiler warnings
'-fdata-sections', # each variable to a seperate section
'-ffunction-sections', # each function to a seperate section
'-fno-exceptions', # exceptions are not used in Cicada
'-ggdb', # generate debug symbols
'--specs=nosys.specs',
'--specs=nano.specs'
]
c_args = ['-DSTM32F103xB', # MCU type, used by STM32Cube
'-mcpu=cortex-m3', # target CPU type
'-mthumb', # use Thumb instruction set
'-Og', # optimise for debug
'-Wall', # enable all compiler warnings
'-fdata-sections', # each variable to a seperate section
'-ffunction-sections', # each function to a seperate section
'-fno-exceptions', # exceptions are not used in Cicada
'-ggdb', # generate debug symbols
'--specs=nosys.specs',
'--specs=nano.specs'
]
cpp_link_args = ['-Wl,--gc-sections',
'-mcpu=cortex-m3',
'-mthumb',
'-Og',
'-fdata-sections',
'-ffunction-sections',
'-fno-exceptions',
'-ggdb',
'--specs=nosys.specs',
'--specs=nano.specs',
]
c_link_args = ['-Wl,--gc-sections',
'-mcpu=cortex-m3',
'-mthumb',
'-Og',
'-fdata-sections',
'-ffunction-sections',
'-fno-exceptions',
'-ggdb',
'--specs=nosys.specs',
'--specs=nano.specs',
]
[host_machine]
system = 'none'
cpu_family = 'arm'
cpu = 'cortex-m3'
endian = 'little'