This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4a2be31afac9862edca102260a54f510eaee3044 Author: makejian <[email protected]> AuthorDate: Fri May 23 21:12:52 2025 +0800 arch/tricore: support soft float in CSRM builds Add software floating-point compiler and linker flags for configurations without a hardware FPU. Signed-off-by: makejian <[email protected]> --- arch/tricore/src/cmake/chip.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/tricore/src/cmake/chip.cmake b/arch/tricore/src/cmake/chip.cmake index 51c399d131e..77a007d045b 100644 --- a/arch/tricore/src/cmake/chip.cmake +++ b/arch/tricore/src/cmake/chip.cmake @@ -49,5 +49,9 @@ elseif(CONFIG_ARCH_CHIP_TC4X) endif() endif() +if(NOT CONFIG_ARCH_HAVE_FPU) + list(APPEND PLATFORM_FLAGS -msoft-sp-float -msoft-dp-float) +endif() + add_compile_options(${PLATFORM_FLAGS}) add_link_options(${PLATFORM_FLAGS})
