2020-10-10 22:25:59 +00:00
|
|
|
[binaries]
|
2021-03-09 14:32:28 +00:00
|
|
|
c = 'arm-miosix-eabi-gcc'
|
|
|
|
cpp = 'arm-miosix-eabi-g++'
|
|
|
|
ld = 'arm-miosix-eabi-ld'
|
|
|
|
ar = 'arm-miosix-eabi-ar'
|
|
|
|
as = 'arm-miosix-eabi-as'
|
|
|
|
size = 'arm-miosix-eabi-size'
|
|
|
|
objdump = 'arm-miosix-eabi-objdump'
|
|
|
|
objcopy = 'arm-miosix-eabi-objcopy'
|
|
|
|
strip = 'arm-miosix-eabi-strip'
|
|
|
|
gdb = 'arm-miosix-eabi-gdb'
|
2020-10-10 22:25:59 +00:00
|
|
|
terminal= 'x-terminal-emulator'
|
|
|
|
openocd = '/usr/local/bin/openocd'
|
|
|
|
|
2023-08-01 08:01:17 +00:00
|
|
|
[built-in options]
|
2020-10-10 22:25:59 +00:00
|
|
|
c_args = [
|
2021-03-09 14:32:28 +00:00
|
|
|
'-D_DEFAULT_SOURCE=1',
|
|
|
|
'-ffunction-sections',
|
2023-05-31 20:24:33 +00:00
|
|
|
'-fdata-sections',
|
2021-03-09 14:32:28 +00:00
|
|
|
'-Wall',
|
|
|
|
'-Werror=return-type',
|
|
|
|
'-g',
|
|
|
|
'-mcpu=cortex-m4', # Cortex-M4 CPU
|
|
|
|
'-mthumb', # ARM Thumb2 ISA
|
|
|
|
'-mfloat-abi=hard', # Hard floating point support
|
|
|
|
'-mfpu=fpv4-sp-d16',
|
|
|
|
'-Os'
|
|
|
|
]
|
|
|
|
|
|
|
|
cpp_args = [
|
|
|
|
'-D_DEFAULT_SOURCE=1',
|
|
|
|
'-ffunction-sections',
|
2023-05-31 20:24:33 +00:00
|
|
|
'-fdata-sections',
|
2021-03-09 14:32:28 +00:00
|
|
|
'-Wall',
|
|
|
|
'-Werror=return-type',
|
|
|
|
'-g',
|
|
|
|
'-fno-exceptions',
|
|
|
|
'-fno-rtti',
|
|
|
|
'-D__NO_EXCEPTIONS',
|
|
|
|
'-std=c++14',
|
2020-10-10 22:25:59 +00:00
|
|
|
'-mcpu=cortex-m4', # Cortex-M4 CPU
|
|
|
|
'-mthumb', # ARM Thumb2 ISA
|
|
|
|
'-mfloat-abi=hard', # Hard floating point support
|
|
|
|
'-mfpu=fpv4-sp-d16',
|
2021-01-07 21:39:22 +00:00
|
|
|
'-Os'
|
2020-10-10 22:25:59 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
c_link_args = [
|
|
|
|
'-mcpu=cortex-m4',
|
|
|
|
'-mthumb',
|
|
|
|
'-mfloat-abi=hard',
|
|
|
|
'-mfpu=fpv4-sp-d16',
|
2023-05-31 20:24:33 +00:00
|
|
|
'-ffunction-sections',
|
|
|
|
'-fdata-sections',
|
2021-03-09 14:32:28 +00:00
|
|
|
'-fno-exceptions',
|
|
|
|
'-fno-rtti',
|
|
|
|
'-Wl,-L../lib/miosix-kernel',
|
2020-10-10 22:25:59 +00:00
|
|
|
'-Wl,--gc-sections',
|
|
|
|
'-Wl,-Map,main.map',
|
2021-02-25 16:00:28 +00:00
|
|
|
'-Wl,--warn-common',
|
2020-10-10 22:25:59 +00:00
|
|
|
'-nostdlib',
|
2021-03-09 14:32:28 +00:00
|
|
|
'-lstdc++',
|
2020-10-10 22:25:59 +00:00
|
|
|
'-lc',
|
|
|
|
'-lm',
|
2021-03-09 14:32:28 +00:00
|
|
|
'-lgcc',
|
|
|
|
'-latomic'
|
2020-10-10 22:25:59 +00:00
|
|
|
]
|
|
|
|
|
2021-03-09 14:32:28 +00:00
|
|
|
cpp_link_args = c_link_args
|
|
|
|
|
2020-10-10 22:25:59 +00:00
|
|
|
[host_machine]
|
|
|
|
system = 'none'
|
|
|
|
cpu_family = 'arm'
|
|
|
|
cpu = 'cortex-m4'
|
|
|
|
endian = 'little'
|