mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 10:55:51 +08:00
Cmake: Provide linker script preprocess for tasking compiler
Provide linker script preprocess for tasking compiler Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user