This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 46292a9529c arch/tricore: Remove tasking compiler tool specific code 
from                     common Cmake scripts
46292a9529c is described below

commit 46292a9529c52742a02e9acd8d930f56b5276635
Author: wangchengdong <[email protected]>
AuthorDate: Fri Sep 26 15:40:44 2025 +0800

    arch/tricore: Remove tasking compiler tool specific code from
                        common Cmake scripts
    
          Remove tasking compiler tool specific code from
          common Cmake scripts
    
    Signed-off-by: Chengdong Wang <[email protected]>
---
 arch/tricore/src/cmake/ToolchainTasking.cmake |  2 +-
 cmake/nuttx_generate_outputs.cmake            | 28 ++++++++++++---------------
 2 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/arch/tricore/src/cmake/ToolchainTasking.cmake 
b/arch/tricore/src/cmake/ToolchainTasking.cmake
index 7b92105d7c2..b3ce69b778b 100644
--- a/arch/tricore/src/cmake/ToolchainTasking.cmake
+++ b/arch/tricore/src/cmake/ToolchainTasking.cmake
@@ -39,7 +39,7 @@ set(CMAKE_ASM_COMPILER ${TOOLCHAIN_PREFIX}cctc)
 set(CMAKE_C_COMPILER ${CMAKE_ASM_COMPILER})
 set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}cctc)
 set(CMAKE_STRIP strip --strip-unneeded)
-set(CMAKE_OBJCOPY ${TOOLCHAIN_PREFIX}tricore-elf-objcopy)
+set(CMAKE_OBJCOPY echo)
 set(CMAKE_OBJDUMP ${TOOLCHAIN_PREFIX}elfdump)
 
 set(CMAKE_LINKER ${TOOLCHAIN_PREFIX}cctc)
diff --git a/cmake/nuttx_generate_outputs.cmake 
b/cmake/nuttx_generate_outputs.cmake
index 729286c651f..98b2bb12bed 100644
--- a/cmake/nuttx_generate_outputs.cmake
+++ b/cmake/nuttx_generate_outputs.cmake
@@ -22,26 +22,22 @@
 
 function(nuttx_generate_outputs target)
   if(CONFIG_INTELHEX_BINARY)
-    if(NOT CONFIG_ARCH_TOOLCHAIN_TASKING)
-      add_custom_command(
-        OUTPUT ${target}.hex
-        COMMAND ${CMAKE_OBJCOPY} -O ihex ${target} ${target}.hex
-        DEPENDS ${target})
-      add_custom_target(${target}-hex ALL DEPENDS ${target}.hex)
-      add_dependencies(nuttx_post ${target}-hex)
-    endif()
+    add_custom_command(
+      OUTPUT ${target}.hex
+      COMMAND ${CMAKE_OBJCOPY} -O ihex ${target} ${target}.hex
+      DEPENDS ${target})
+    add_custom_target(${target}-hex ALL DEPENDS ${target}.hex)
+    add_dependencies(nuttx_post ${target}-hex)
     file(APPEND ${CMAKE_BINARY_DIR}/nuttx.manifest "${target}.hex\n")
   endif()
 
   if(CONFIG_MOTOROLA_SREC)
-    if(NOT CONFIG_ARCH_TOOLCHAIN_TASKING)
-      add_custom_command(
-        OUTPUT ${target}.srec
-        COMMAND ${CMAKE_OBJCOPY} -O srec ${target} ${target}.srec
-        DEPENDS ${target})
-      add_custom_target(${target}-srec ALL DEPENDS ${target}.srec)
-      add_dependencies(nuttx_post ${target}-srec)
-    endif()
+    add_custom_command(
+      OUTPUT ${target}.srec
+      COMMAND ${CMAKE_OBJCOPY} -O srec ${target} ${target}.srec
+      DEPENDS ${target})
+    add_custom_target(${target}-srec ALL DEPENDS ${target}.srec)
+    add_dependencies(nuttx_post ${target}-srec)
     file(APPEND ${CMAKE_BINARY_DIR}/nuttx.manifest "${target}.srec\n")
   endif()
 

Reply via email to