<?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>nrf9160 - configuring with west and different board always results in the same zeyhyr_settings.txt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72155/nrf9160---configuring-with-west-and-different-board-always-results-in-the-same-zeyhyr_settings-txt</link><description>Hi DevZone Team, 
 when I use west to configure a project, build/zephyr_settings.txt always contains 
 &amp;quot;BOARD_ROOT&amp;quot;:&amp;quot;/home/user/test/nrf&amp;quot; &amp;quot;DTS_ROOT&amp;quot;:&amp;quot;/home/user/test/nrf&amp;quot; 
 I would assume that when I configure with &amp;quot;west build -t nrf9160dk_nrf9160ns&amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Mar 2021 08:57:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72155/nrf9160---configuring-with-west-and-different-board-always-results-in-the-same-zeyhyr_settings-txt" /><item><title>RE: nrf9160 - configuring with west and different board always results in the same zeyhyr_settings.txt</title><link>https://devzone.nordicsemi.com/thread/297072?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 08:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f2ab817-882c-49b3-8d7a-5c3da1eee0f2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;This comment from zephyr/cmake/app/boilerplate.cmake should explain it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# &amp;#39;BOARD_ROOT&amp;#39; is a prioritized list of directories where boards may
# be found. It always includes ${ZEPHYR_BASE} at the lowest priority.
zephyr_file(APPLICATION_ROOT BOARD_ROOT)
list(APPEND BOARD_ROOT ${ZEPHYR_BASE})&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In other words, nrf/zephyr/module.yml sets the BOARD_ROOT to point to nrf, so the boards defined in nrf is included, in addition to the boards defined in zephyr.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 - configuring with west and different board always results in the same zeyhyr_settings.txt</title><link>https://devzone.nordicsemi.com/thread/296956?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 16:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80471d0-7260-41ee-a04f-55078d72f209</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;Thank you for the quick response. But still I would assume that BOARD_ROOT refers to the correct directory, which would be /zephyr as the board is located in /zephyr/boards/..., not in /nrf/boards&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 - configuring with west and different board always results in the same zeyhyr_settings.txt</title><link>https://devzone.nordicsemi.com/thread/296940?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30145a86-97cf-4f5c-98d1-c960a0fabfb6</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A West module can have a &amp;lt;module&amp;gt;/zephyr/module.yml file that describes it, as well as integrates it into Zephyr&amp;#39;s build system.&lt;/p&gt;
&lt;p&gt;Here is the contents of nrf/zephyr/module.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;build:
  cmake: .
  kconfig: Kconfig.nrf
  settings:
    board_root: .
    dts_root: .
    module_ext_root: .
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see, it sets board_root and dts_root to be the nrf directory.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>