<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116374/issue-integrating-freestanding-zephyr-module-with-sysbuild</link><description>Hello, 
 
 
 
 
 
 I&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Nov 2024 09:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116374/issue-integrating-freestanding-zephyr-module-with-sysbuild" /><item><title>RE: Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/thread/510864?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 09:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21d4dba-058b-4f9f-9e8f-0e52cd1588e8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you show how you tried to use&amp;nbsp;&lt;span&gt;ExternalZephyrProject_Add()?&lt;br /&gt;&lt;br /&gt;Can you show your build command?&lt;br /&gt;&lt;br /&gt;Can you provide results when using --sysbuild with and without ExternalZephyrProject_Add()?&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/thread/510658?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 11:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e950725e-d69e-4c9d-8f4d-3d2732dfb718</guid><dc:creator>creative.industry.ag</dc:creator><description>&lt;p&gt;Hey, I tried to use it with the same results. I believe the problem is related witch fetching custom board by sysbuild.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/thread/510655?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 11:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd50befb-00eb-45c1-8e0f-794a84f7656b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Maybe you could try using&amp;nbsp;&lt;span&gt;ExternalZephyrProject_Add().&amp;nbsp;&lt;/span&gt;There is information in the documentation on&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/build/sysbuild/index.html#adding_zephyr_applications_to_sysbuild"&gt;adding Zephyr applications to sysbuild&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/thread/510496?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d517ae2f-0a2d-48a0-ac77-d3a99654621c</guid><dc:creator>creative.industry.ag</dc:creator><description>&lt;p&gt;hey ;)&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;bash:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="bat"&gt;west build -p auto -d ${BUILD_DIR} -b custom_board&amp;#160;--sysbuild -s &amp;quot;$PWD/../&amp;quot;&amp;#160; -- -DEXTRA_ZEPHYR_MODULES=&amp;quot;$PWD/../OOTModule&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;I added&amp;nbsp;such code&amp;nbsp;in every possible CMake file ( ofc i updated paths)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="bat"&gt;set(FIRMWARE_ROOT_DIR &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/../../..&amp;quot;)
list(APPEND EXTRA_ZEPHYR_MODULES
&amp;quot;${FIRMWARE_ROOT_DIR}/OOTModule&amp;quot;
)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue integrating freestanding Zephyr module with sysbuild</title><link>https://devzone.nordicsemi.com/thread/510493?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1668f1ca-82cc-4fde-bc6d-c5ce81c6eab4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I added &lt;span&gt;ZEPHYR_EXTRA_MODULES IN CmakeList.txt, that&amp;#39;s why non sysbuild process works. I also tried to add the same to sysbuild.cmake, but doesn&amp;#39;t help.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Can you show the content of your CMakeLists.txt file when process works and sysbuild.cmake when it does not work?&lt;/p&gt;
[quote user=""]When I add switch -DZEPHYR_EXTRA_MODULES=&amp;lt;path&amp;gt; then it works, but my concern is I don&amp;#39;t understand why i sysbuild doesn&amp;#39;t &amp;quot;see&amp;quot; my variables.&amp;nbsp; &amp;nbsp;[/quote]
&lt;p&gt;Can you show where and how you added -DZEPHYR_EXTRA_MODULES=&amp;lt;path&amp;gt;?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>