Require CMake to use Sysbuild

I would like to use native CMake rather than West to take advantage of CMake Presets.

I have been able to make this work on the command line using the following command:

cmake $ZEPHYR_BASE/share/sysbuild \
-Bbuild_test -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp \
-DAPP_DIR=. \
-DSB_CONF_FILE=sysbuild.conf \
&& ninja -Cbuild_test
However, not every tool accepts the command "cmake $ZEPHYR_BASE/share/sysbuild ..."
Is there another way to force CMake to use sysbuild using, perhaps, a "-D" argument I can add? 
The Zephyr example has this, but adding "share/sysbuild" does not work for me.

https://docs.zephyrproject.org/latest/build/sysbuild/index.html#sysbuild 
cmake -Bbuild -GNinja -DBOARD=reel_board -DAPP_DIR=samples/hello_world share/sysbuild
Parents
  • Hello LukeC,

    I am afraid I am not fully clear what you want to achieve yet. Could you please give more details?

    I am not an expert with CMake, but I know that the nRF Connect for VS Code extensions can create CMake Presets, and it should be using the built in CMake in NCS. I find this indicating that the built-in CMake version should work too.

    Hieu

Reply
  • Hello LukeC,

    I am afraid I am not fully clear what you want to achieve yet. Could you please give more details?

    I am not an expert with CMake, but I know that the nRF Connect for VS Code extensions can create CMake Presets, and it should be using the built in CMake in NCS. I find this indicating that the built-in CMake version should work too.

    Hieu

Children
Related