I got an error when generating build file for rv-virt:ksmp64 with cmake.
# cmake .. -DBOARD_CONFIG=rv-virt:ksmp64 -GNinja
-- Initializing NuttX
-- Board: rv-virt
-- Config: ksmp64
-- Appdir: /mnt/files/inochi/cache/mainline/nuttx/../apps
-- Configuring done (1.1s)
CMake Error at CMakeLists.txt:736 (add_executable):
No SOURCES given to target: nuttx_user
CMake Error at cmake/nuttx_add_library.cmake:90 (add_library):
No SOURCES given to target: arch_interface
Call Stack (most recent call first):
arch/CMakeLists.txt:29 (nuttx_add_system_library)
CMake Generate step failed. Build files cannot be regenerated correctly.
I have tried the following change, but get another error: ninja: error: 'syscall/stubs/nuttx_host_tools', needed by 'syscall/stubs/STUB__assert.c', missing and no known rule to make it
Cmake does not support Kernel(CONFIG_BUILD_KERNEL) / Protected(CONFIG_BUILD_PROTECTED) mode building currently. Please use Makefile to build if the board defconfig contains dependencies on these two modes.
I got an error when generating build file for rv-virt:ksmp64 with cmake.
I have tried the following change, but get another error:
ninja: error: 'syscall/stubs/nuttx_host_tools', needed by 'syscall/stubs/STUB__assert.c', missing and no known rule to make it
I wonder whether there is something I missed. My cmake version is 3.28.3