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:
Yanfeng Liu
2024-07-14 16:31:17 +08:00
committed by Xiang Xiao
parent e047ab9c70
commit 25adc9fdaa

View File

@@ -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()