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-08-29 01:59:29 +08:00
committed by Xiang Xiao
parent f526b91165
commit c8e56ff63a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -420,6 +420,7 @@ add_executable(nuttx)
add_custom_target(nuttx_post)
if(CONFIG_BUILD_PROTECTED)
add_executable(nuttx_user)
nuttx_add_library_internal(nuttx_user)
endif()
if(CONFIG_ALLSYMS)
+1 -1
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
work_signal.c work_lock.c)
endif()