Skip to content

Commit e0f0e7e

Browse files
committed
Add explicit fpu in commandline
Works in sync with upcoming arduino-builder for precompiled libraries
1 parent be03cf3 commit e0f0e7e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

boards.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ envie_m7.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/
88
envie_m7.build.variant=PORTENTA_H7_M7
99
envie_m7.build.mcu=cortex-m7
1010
envie_m7.build.fpu=fpv5-d16
11+
envie_m7.build.float-abi=softfp
1112
envie_m7.build.extra_flags=
1213
envie_m7.build.architecture=cortex-m7
1314
envie_m7.build.board=PORTENTA_H7_M7
@@ -56,6 +57,7 @@ envie_m4.build.compiler_path={runtime.tools.arm-none-eabi-gcc.path}/bin/
5657
envie_m4.build.variant=PORTENTA_H7_M4
5758
envie_m4.build.mcu=cortex-m4
5859
envie_m4.build.fpu=fpv4-sp-d16
60+
envie_m4.build.float-abi=softfp
5961
envie_m4.build.extra_flags=
6062
envie_m4.build.architecture=cortex-m4
6163
envie_m4.build.board=PORTENTA_H7_M4
@@ -99,6 +101,8 @@ nano33ble.build.variant=ARDUINO_NANO33BLE
99101
nano33ble.build.mcu=cortex-m4
100102
nano33ble.build.extra_flags=
101103
nano33ble.build.architecture=cortex-m4
104+
nano33ble.build.fpu=fpv4-sp-d16
105+
nano33ble.build.float-abi=softfp
102106
nano33ble.build.board=ARDUINO_NANO33BLE
103107
nano33ble.build.ldscript=linker_script.ld
104108
nano33ble.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52840

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ compiler.warning_flags.all=-Wall -Wextra
1818

1919
compiler.path={build.compiler_path}
2020
compiler.c.cmd={build.crossprefix}gcc
21-
compiler.c.flags=-c {compiler.warning_flags} -Os -g -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu}
21+
compiler.c.flags=-c {compiler.warning_flags} -Os -g -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu} -mfloat-abi={build.float-abi} -mfpu={build.fpu}
2222
compiler.c.elf.cmd={build.crossprefix}g++
2323
compiler.c.elf.flags=-Wl,--gc-sections {compiler.warning_flags} -Wl,--as-needed
2424
compiler.S.cmd={build.crossprefix}g++
2525
compiler.S.flags=-c -g -x assembler-with-cpp -Os -mcpu={build.mcu} -mfpu={build.fpu}
2626
compiler.cpp.cmd={build.crossprefix}g++
27-
compiler.cpp.flags=-c {compiler.warning_flags} -g -Os -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cxxflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu}
27+
compiler.cpp.flags=-c {compiler.warning_flags} -g -Os -nostdlib "@{compiler.mbed.defines}" "@{compiler.mbed.cxxflags}" {compiler.mbed.arch.define} -MMD -mcpu={build.mcu} -mfloat-abi={build.float-abi} -mfpu={build.fpu}
2828
compiler.ar.cmd={build.crossprefix}ar
2929
compiler.ar.flags=rcs
3030
compiler.objcopy.cmd=

0 commit comments

Comments
 (0)