This is an automated email from the ASF dual-hosted git repository.
archer 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 38ad767f250 Cmake: Provide linker script preprocess for tasking
compiler
38ad767f250 is described below
commit 38ad767f250862f1d2cd1efeb4390e61590f2803
Author: wangchengdong <[email protected]>
AuthorDate: Tue Sep 23 16:42:27 2025 +0800
Cmake: Provide linker script preprocess for tasking compiler
Provide linker script preprocess for tasking compiler
Signed-off-by: Chengdong Wang <[email protected]>
---
CMakeLists.txt | 2 +-
arch/tricore/src/cmake/platform.cmake | 8 ++++++++
.../tc397/a2g-tc397-5v-tft/scripts/Lcf_Tasking_Tricore_Tc.lsl | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f44c1725af..685fb1f6445 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -633,7 +633,7 @@ process_all_directory_romfs()
get_property(ldscript GLOBAL PROPERTY LD_SCRIPT)
# Pre-compile linker script
-if(NOT CONFIG_ARCH_SIM AND NOT CONFIG_ARCH_TOOLCHAIN_TASKING)
+if(NOT CONFIG_ARCH_SIM)
get_filename_component(LD_SCRIPT_NAME ${ldscript} NAME)
set(LD_SCRIPT_TMP "${CMAKE_BINARY_DIR}/${LD_SCRIPT_NAME}.tmp")
diff --git a/arch/tricore/src/cmake/platform.cmake
b/arch/tricore/src/cmake/platform.cmake
index 3b2970d22d6..1441c069f45 100644
--- a/arch/tricore/src/cmake/platform.cmake
+++ b/arch/tricore/src/cmake/platform.cmake
@@ -75,3 +75,11 @@ if(CONFIG_TRICORE_TOOLCHAIN_GNU)
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
endif()
+
+if(CONFIG_TRICORE_TOOLCHAIN_TASKING)
+ find_program(TASKING_COMPILER_PATH ctc)
+ get_filename_component(C_COMPILER_DIR ${TASKING_COMPILER_PATH} DIRECTORY)
+ set(PREPROCESS
+ ${TOOLCHAIN_PREFIX}ctc ${CMAKE_C_FLAG_ARGS} -E
+ -I${TOOLCHAIN_PREFIX}/../include.lsl -I${C_COMPILER_DIR}/../include.lsl)
+endif()
diff --git
a/boards/tricore/tc397/a2g-tc397-5v-tft/scripts/Lcf_Tasking_Tricore_Tc.lsl
b/boards/tricore/tc397/a2g-tc397-5v-tft/scripts/Lcf_Tasking_Tricore_Tc.lsl
index c6120cb42e4..0cb345caf48 100644
--- a/boards/tricore/tc397/a2g-tc397-5v-tft/scripts/Lcf_Tasking_Tricore_Tc.lsl
+++ b/boards/tricore/tc397/a2g-tc397-5v-tft/scripts/Lcf_Tasking_Tricore_Tc.lsl
@@ -20,7 +20,7 @@
*
****************************************************************************/
-#include "include/nuttx/config.h"
+#include <nuttx/config.h>
#define LCF_CSA0_SIZE 40k
#define LCF_USTACK0_SIZE CONFIG_IDLETHREAD_STACKSIZE