<?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>Zephyr nrf sdk automated build server with docker image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78355/zephyr-nrf-sdk-automated-build-server-with-docker-image</link><description>Hello, 
 
 I am trying to setup a windows docker image to use on a build server for zephyr nrfsdk projects, but i am haveing difficulty getting things configured correctly. 
 
 For setting up the sdk, I am using this powershell script (which seems to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Aug 2021 22:00:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78355/zephyr-nrf-sdk-automated-build-server-with-docker-image" /><item><title>RE: Zephyr nrf sdk automated build server with docker image</title><link>https://devzone.nordicsemi.com/thread/324094?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 22:00:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f621ff3b-84f6-4ab5-a91f-46746a484382</guid><dc:creator>smackenzie</dc:creator><description>&lt;p&gt;Adding `$Env:TOOLCHAIN_ROOT=&amp;quot;$Env:ZEPHYR_BASE&amp;quot;` has fixed the issue. Builds are now successful!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr nrf sdk automated build server with docker image</title><link>https://devzone.nordicsemi.com/thread/323932?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 08:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a528cd5-c9db-4b92-9a1f-215d5e2622e0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there any documentation on how to correctly setup a build server?[/quote]
&lt;p&gt;There is some information from the upstream project itself:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/docker-image"&gt;https://github.com/zephyrproject-rtos/docker-image&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And we have a blog post on the matter:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/build-ncs-application-firmware-images-using-docker"&gt;https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/build-ncs-application-firmware-images-using-docker&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&amp;nbsp;For the project build step, the projects use custom boards and have `set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/)` in the `CMakeList.txt` and the working directory is set to the project directory. Then this powershell script is run:[/quote][quote user=""]But the build is failing&amp;nbsp;[/quote]
&lt;p&gt;Does this mean that a generic sample is built successfully when configured for any &amp;quot;standard&amp;quot; board?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Given your shell output, especially&amp;nbsp;these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake Error at C:/ncs/v1.6.1/zephyr/cmake/generic_toolchain.cmake:36 (include):
  include could not find load file:

    C:\Tools\arm-eabi/cmake/toolchain/gnuarmemb/generic.cmake&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This indicates that the env &amp;quot;TOOLCHAIN_ROOT&amp;quot; is not set correctly (it should be: &amp;quot;c:/ncs/v1.6.1/zephyr/&amp;quot; in your case) . I am able to reproduce a similar error when running this command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mkdir build &amp;amp;&amp;amp; cd build &amp;amp;&amp;amp; TOOLCHAIN_ROOT=/wrong/path cmake .. -DBOARD=nrf9160dk_nrf9160ns -GNinja&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which then produces this output (some line numbers does not match with yours, so might be a red herring):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Including boilerplate (Zephyr base): /opt/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /opt/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.6.0-rc1 (/opt/ncs/zephyr), build: v2.6.0-rc1-ncs1
-- Found Python3: /usr/bin/python3.9 (found suitable exact version &amp;quot;3.9.5&amp;quot;) found components: Interpreter 
-- Found west (found suitable version &amp;quot;0.11.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: /home/hkn/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version &amp;quot;1.6.0&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
CMake Error at /opt/ncs/zephyr/cmake/generic_toolchain.cmake:36 (include):
  include could not find load file:

    /wrong/path/cmake/toolchain/gnuarmemb/generic.cmake
Call Stack (most recent call first):
  /opt/ncs/zephyr/cmake/app/boilerplate.cmake:553 (include)
  /opt/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /opt/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:13 (find_package)


-- Found BOARD.dts: /opt/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Found devicetree overlay: /opt/ncs/nrf/applications/asset_tracker/nrf9160dk_nrf9160ns.overlay
CMake Error at /opt/ncs/zephyr/cmake/dts.cmake:157 (message):
  command failed with return code: No such file or directory
Call Stack (most recent call first):
  /opt/ncs/zephyr/cmake/app/boilerplate.cmake:554 (include)
  /opt/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /opt/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The TOOLCHAIN_ROOT is set as default to $ZEPHYR_BASE if not defined. Could you check if you have this defined in your env?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>