diff --git a/boards/risc-v/qemu-rv/rv-virt/src/CMakeLists.txt b/boards/risc-v/qemu-rv/rv-virt/src/CMakeLists.txt index e5f78691fd..58e2e55687 100644 --- a/boards/risc-v/qemu-rv/rv-virt/src/CMakeLists.txt +++ b/boards/risc-v/qemu-rv/rv-virt/src/CMakeLists.txt @@ -31,9 +31,11 @@ endif() target_sources(board PRIVATE ${SRCS}) if(CONFIG_ARCH_CHIP_QEMU_RV) - if(CONFIG_BUILD_KERNEL) set(LDFILE ld-kernel.script) + if(CONFIG_NUTTSBI) + set(LDFILE ld-nuttsbi.script) + endif() else() set(LDFILE ld.script) endif()