Issue integrating freestanding Zephyr module with sysbuild

Hello,
I'm experiencing an issue integrating a freestanding Zephyr module with the sysbuild system. The module defines custom boards and projects. When I use the standard Zephyr build process (without --sysbuild), everything works correctly. However, when I try to use sysbuild, I encounter problems with custom board visibility (it just don't see the board). 

I added ZEPHYR_EXTRA_MODULES IN CmakeList.txt, that's why non sysbuild process works. I also tried to add the same to sysbuild.cmake, but doesn't help. 

When I add switch -DZEPHYR_EXTRA_MODULES=<path> then it works, but my concern is I don't understand why i sysbuild doesn't "see" my variables.   

Could you help me?
 
Parents
  • Hi,

    I added ZEPHYR_EXTRA_MODULES IN CmakeList.txt, that's why non sysbuild process works. I also tried to add the same to sysbuild.cmake, but doesn't help. 

    Can you show the content of your CMakeLists.txt file when process works and sysbuild.cmake when it does not work?

    When I add switch -DZEPHYR_EXTRA_MODULES=<path> then it works, but my concern is I don't understand why i sysbuild doesn't "see" my variables.   

    Can you show where and how you added -DZEPHYR_EXTRA_MODULES=<path>? 

    Best regards,
    Dejan

  • hey ;)

    bash:
    west build -p auto -d ${BUILD_DIR} -b custom_board --sysbuild -s "$PWD/../"  -- -DEXTRA_ZEPHYR_MODULES="$PWD/../OOTModule
    I added such code in every possible CMake file ( ofc i updated paths)
    set(FIRMWARE_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..")
    list(APPEND EXTRA_ZEPHYR_MODULES
    "${FIRMWARE_ROOT_DIR}/OOTModule"
    )
    
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
     
Reply
  • hey ;)

    bash:
    west build -p auto -d ${BUILD_DIR} -b custom_board --sysbuild -s "$PWD/../"  -- -DEXTRA_ZEPHYR_MODULES="$PWD/../OOTModule
    I added such code in every possible CMake file ( ofc i updated paths)
    set(FIRMWARE_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..")
    list(APPEND EXTRA_ZEPHYR_MODULES
    "${FIRMWARE_ROOT_DIR}/OOTModule"
    )
    
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
     
Children
Related