From c7d801fd9cd72f7c9206015e2d62e61e28120d40 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Tue, 10 Sep 2024 20:53:51 +0800 Subject: [PATCH] greenhills: fix the arch_interface archive error : && cxarm cr arch/libarch_interface.a arch/CMakeFiles/arch_interface.dir/arm/src/common/gnu/arm_signal_handler.S.obj && echo arch/libarch_interface.a && : [elxr] (error #16) cannot find file cr Signed-off-by: guoshichao --- arch/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/CMakeLists.txt b/arch/CMakeLists.txt index 41b790a83b..66ce262e71 100644 --- a/arch/CMakeLists.txt +++ b/arch/CMakeLists.txt @@ -27,6 +27,8 @@ target_include_directories(arch PRIVATE ${CMAKE_SOURCE_DIR}/sched) if(CONFIG_BUILD_PROTECTED) nuttx_add_system_library(arch_interface) + file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/empty.c") + target_sources(arch_interface PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/empty.c") target_include_directories(arch_interface PRIVATE ${CMAKE_SOURCE_DIR}/sched) endif()