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

Reply
  • 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

Children
Related