CMake: fix CMake compile errors during the protected build mode

There are 2 CMake compile errors during the protected build mode. One is forget to add library for nuttx_user, another is the wrong macro used when compile wqueue.

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
pangzhen1 2024-07-26 18:37:59 +08:00 committed by Xiang Xiao
parent f526b91165
commit c8e56ff63a
2 changed files with 2 additions and 1 deletions

View File

@ -420,6 +420,7 @@ add_executable(nuttx)
add_custom_target(nuttx_post) add_custom_target(nuttx_post)
if(CONFIG_BUILD_PROTECTED) if(CONFIG_BUILD_PROTECTED)
add_executable(nuttx_user) add_executable(nuttx_user)
nuttx_add_library_internal(nuttx_user)
endif() endif()
if(CONFIG_ALLSYMS) if(CONFIG_ALLSYMS)

View File

@ -18,7 +18,7 @@
# #
# ############################################################################## # ##############################################################################
if(CONFIG_LIB_USRWORK) if(CONFIG_LIBC_USRWORK)
target_sources(c PRIVATE work_usrthread.c work_queue.c work_cancel.c target_sources(c PRIVATE work_usrthread.c work_queue.c work_cancel.c
work_signal.c work_lock.c) work_signal.c work_lock.c)
endif() endif()