-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgcc-arm-none-eabi.ini
More file actions
31 lines (27 loc) · 1.14 KB
/
Copy pathgcc-arm-none-eabi.ini
File metadata and controls
31 lines (27 loc) · 1.14 KB
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
[host_machine]
system = 'none'
cpu_family = 'arm'
endian = 'little'
[properties]
needs_exe_wrapper = true
[constants]
cross_toolchain = 'ARM_TOOLCHAIN_PATH'
cross_compile = cross_toolchain + '/bin/arm-none-eabi-'
cpu_args = []
base_c_args = ['-Wno-comment','-Wno-unused-const-variable','-Wno-unused-function','-Wreturn-type','-funsigned-char','-fshort-enums','-gdwarf-4','-fdata-sections','-ffunction-sections']
additional_c_link_args = []
base_c_link_args = ['-specs=nano.specs','-lc','-lm','-lnosys','-lsupc++_nano','-funsigned-char','-fshort-enums','-ffunction-sections','-fdata-sections','-Wl,--gc-sections']
[binaries]
c = cross_compile + 'gcc'
cpp = cross_compile + 'g++'
ar = cross_compile + 'gcc-ar'
ranlib = cross_compile + 'gcc-ranlib'
strip = cross_compile + 'strip'
objcopy = cross_compile + 'objcopy'
objdump = cross_compile + 'objdump'
[built-in options]
default_library = 'static'
c_args = base_c_args + cpu_args
c_link_args = base_c_link_args + additional_c_link_args + cpu_args
cpp_args = ['-fno-exceptions','-fno-rtti'] + base_c_args + cpu_args
cpp_link_args = base_c_link_args + additional_c_link_args + cpu_args