arch/tricore: add tasking compiler support to gen raw/hex binary

tasking compiler toolset does not provide binary generate tool,
  but the open source gcc compiler is able to do this, this patch will
  use tricore-elf-objcopy to generate raw binary and hex file when using
  tasking compiler to do the compiling and linking.

Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
wangchengdong 2025-09-14 15:49:27 +08:00 committed by Xiang Xiao
parent 474835eabe
commit 71f558765c

View file

@ -39,8 +39,8 @@ 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 echo)
set(CMAKE_OBJDUMP elfdump)
set(CMAKE_OBJCOPY ${TOOLCHAIN_PREFIX}tricore-elf-objcopy)
set(CMAKE_OBJDUMP ${TOOLCHAIN_PREFIX}elfdump)
set(CMAKE_LINKER ${TOOLCHAIN_PREFIX}cctc)
set(CMAKE_LD ${TOOLCHAIN_PREFIX}cctc)