mirror of
https://github.com/apache/nuttx.git
synced 2025-12-17 10:16:49 +08:00
riscv/k230: fix KERNEL cmake
This fixes the issue that apps ROMFS is not detected by cmake for KERNEL mode. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
set(SRCS canmv_init.c)
|
||||
|
||||
if(CONFIG_BUILD_KERNEL)
|
||||
if(EXISTS romfs_boot.c)
|
||||
list(APPEND SRCS romfs_boot.c)
|
||||
if(EXISTS ${CMAKE_BINARY_DIR}/romfs_boot.c)
|
||||
list(APPEND SRCS ${CMAKE_BINARY_DIR}/romfs_boot.c)
|
||||
else()
|
||||
list(APPEND SRCS romfs_stub.c)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user