cmake/build: fix build break on cmake

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-07-25 11:44:48 +08:00 committed by Mateusz Szafoni
parent e28f6d6e6e
commit 49dec5b48c
4 changed files with 16 additions and 2 deletions

View File

@ -110,6 +110,10 @@ else()
list(APPEND STDLIBS rt)
endif()
if(CONFIG_LIBM_TOOLCHAIN)
list(APPEND STDLIBS m)
endif()
if(CONFIG_RPTUN)
list(APPEND SRCS sim_rptun.c)
endif()

View File

@ -32,7 +32,8 @@ if(NOT CONFIG_DISABLE_MOUNTPOINT)
fs_openblockdriver.c
fs_closeblockdriver.c
fs_blockpartition.c
fs_findmtddriver.c)
fs_findmtddriver.c
fs_closemtddriver.c)
if(CONFIG_MTD)
list(APPEND SRCS fs_registermtddriver.c fs_unregistermtddriver.c

View File

@ -18,6 +18,14 @@
#
# ##############################################################################
set(SRCS)
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()
if(CONFIG_FS_RPMSGFS_SERVER)
list(APPEND SRCS rpmsgfs_server.c)
endif()
target_sources(fs PRIVATE ${SRCS})

View File

@ -36,6 +36,7 @@ set(SRCS
net_close.c
recvmsg.c
sendmsg.c
shutdown.c
net_dup2.c
net_sockif.c
net_poll.c