mirror of
https://github.com/apache/nuttx.git
synced 2025-12-17 10:16:49 +08:00
cmake/build: fix build break on cmake
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -110,6 +110,10 @@ else()
|
|||||||
list(APPEND STDLIBS rt)
|
list(APPEND STDLIBS rt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_LIBM_TOOLCHAIN)
|
||||||
|
list(APPEND STDLIBS m)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_RPTUN)
|
if(CONFIG_RPTUN)
|
||||||
list(APPEND SRCS sim_rptun.c)
|
list(APPEND SRCS sim_rptun.c)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ if(NOT CONFIG_DISABLE_MOUNTPOINT)
|
|||||||
fs_openblockdriver.c
|
fs_openblockdriver.c
|
||||||
fs_closeblockdriver.c
|
fs_closeblockdriver.c
|
||||||
fs_blockpartition.c
|
fs_blockpartition.c
|
||||||
fs_findmtddriver.c)
|
fs_findmtddriver.c
|
||||||
|
fs_closemtddriver.c)
|
||||||
|
|
||||||
if(CONFIG_MTD)
|
if(CONFIG_MTD)
|
||||||
list(APPEND SRCS fs_registermtddriver.c fs_unregistermtddriver.c
|
list(APPEND SRCS fs_registermtddriver.c fs_unregistermtddriver.c
|
||||||
|
|||||||
@@ -18,6 +18,14 @@
|
|||||||
#
|
#
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
|
set(SRCS)
|
||||||
|
|
||||||
if(CONFIG_FS_RPMSGFS)
|
if(CONFIG_FS_RPMSGFS)
|
||||||
target_sources(fs PRIVATE rpmsgfs.c rpmsgfs_client.c rpmsgfs_server.c)
|
list(APPEND SRCS rpmsgfs.c rpmsgfs_client.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_FS_RPMSGFS_SERVER)
|
||||||
|
list(APPEND SRCS rpmsgfs_server.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_sources(fs PRIVATE ${SRCS})
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ set(SRCS
|
|||||||
net_close.c
|
net_close.c
|
||||||
recvmsg.c
|
recvmsg.c
|
||||||
sendmsg.c
|
sendmsg.c
|
||||||
|
shutdown.c
|
||||||
net_dup2.c
|
net_dup2.c
|
||||||
net_sockif.c
|
net_sockif.c
|
||||||
net_poll.c
|
net_poll.c
|
||||||
|
|||||||
Reference in New Issue
Block a user