Skip to content

Commit

Permalink
riscv/k230: fix KERNEL cmake
Browse files Browse the repository at this point in the history
This fixes the issue that apps ROMFS is not detected by cmake for
KERNEL mode.

Signed-off-by: Yanfeng Liu <[email protected]>
  • Loading branch information
yf13 committed Jul 14, 2024
1 parent a8523f3 commit 8b9dd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/risc-v/k230/canmv230/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8b9dd7d

Please sign in to comment.