This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e9f696b120540b858da8f9c33c73a8654dc01311 Author: zhangyu117 <[email protected]> AuthorDate: Tue Feb 24 11:07:01 2026 +0800 arch/tricore: updata libm.a and set default-near-size to zero for chip tc3xx. Set --default-near-size=0 for the tc3xx TASKING build and resolve the toolchain libraries per chip family: tc162 for TC3XX and tc18 for TC4XX, both under the TASKING installation directory. Signed-off-by: zhangyu117 <[email protected]> --- arch/tricore/src/cmake/chip.cmake | 1 + arch/tricore/src/cmake/tasking.cmake | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/tricore/src/cmake/chip.cmake b/arch/tricore/src/cmake/chip.cmake index 222438f7ee1..5e5261c1702 100644 --- a/arch/tricore/src/cmake/chip.cmake +++ b/arch/tricore/src/cmake/chip.cmake @@ -24,6 +24,7 @@ set(PLATFORM_FLAGS) if(CONFIG_ARCH_CHIP_TC3XX) if(CONFIG_TRICORE_TOOLCHAIN_TASKING) + add_compile_options(--default-near-size=0) add_compile_options(--cpu=tc39xb) add_link_options(-Ctc39xb) else() diff --git a/arch/tricore/src/cmake/tasking.cmake b/arch/tricore/src/cmake/tasking.cmake index 671d8123c68..a067a4c6493 100644 --- a/arch/tricore/src/cmake/tasking.cmake +++ b/arch/tricore/src/cmake/tasking.cmake @@ -230,6 +230,10 @@ function(nuttx_find_toolchain_lib) "${TASKING_ROOT_PATH}") string(STRIP "${TASKING_ROOT_TEMP_PATH}" TASKING_ROOT_PATH) if(ARGN) - nuttx_add_extra_library(${TASKING_ROOT_PATH}/../lib/tc18/${ARGN}) + if(CONFIG_ARCH_CHIP_TC3XX) + nuttx_add_extra_library(${TASKING_ROOT_PATH}/../lib/tc162/${ARGN}) + elseif(CONFIG_ARCH_CHIP_TC4XX) + nuttx_add_extra_library(${TASKING_ROOT_PATH}/../lib/tc18/${ARGN}) + endif() endif() endfunction()
