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:
parent
851f1fd439
commit
38ad767f25
3 changed files with 10 additions and 2 deletions
|
|
@ -633,7 +633,7 @@ process_all_directory_romfs()
|
||||||
get_property(ldscript GLOBAL PROPERTY LD_SCRIPT)
|
get_property(ldscript GLOBAL PROPERTY LD_SCRIPT)
|
||||||
|
|
||||||
# Pre-compile linker 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)
|
get_filename_component(LD_SCRIPT_NAME ${ldscript} NAME)
|
||||||
set(LD_SCRIPT_TMP "${CMAKE_BINARY_DIR}/${LD_SCRIPT_NAME}.tmp")
|
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)
|
set(PREPROCESS ${CMAKE_C_COMPILER} ${CMAKE_C_FLAG_ARGS} -E -P -x c)
|
||||||
endif()
|
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_CSA0_SIZE 40k
|
||||||
#define LCF_USTACK0_SIZE CONFIG_IDLETHREAD_STACKSIZE
|
#define LCF_USTACK0_SIZE CONFIG_IDLETHREAD_STACKSIZE
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue