<?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>No SOURCES given to Zephyr library: lib__libc__common - Error adding build configuration with custom board, wont compile hello world</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103187/no-sources-given-to-zephyr-library-lib__libc__common---error-adding-build-configuration-with-custom-board-wont-compile-hello-world</link><description>Hi, 
 I&amp;#39;m working on creating a custom board based off of the Actinius Icarus which is already present in Zephyr. Using this board as a template was able to create a new board. Currently I have made only made minor changes to the device tree such as disabling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Aug 2023 16:29:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103187/no-sources-given-to-zephyr-library-lib__libc__common---error-adding-build-configuration-with-custom-board-wont-compile-hello-world" /><item><title>RE: No SOURCES given to Zephyr library: lib__libc__common - Error adding build configuration with custom board, wont compile hello world</title><link>https://devzone.nordicsemi.com/thread/443443?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 16:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d51a7e2e-198c-4b12-a54f-a6de698e4a0b</guid><dc:creator>4DoorToyota</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Your suggestioin led me to another anwser that solved the problem. While googling for adding the board to TF-M I encountered this seperate thread on the fourm:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100177/problem-configuring-and-building-nrf9160-custom-board-with-tfm"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/100177/problem-configuring-and-building-nrf9160-custom-board-with-tfm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the anwser for that thread it suggested making sure that in the include for the NRF9160 stuff is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;arm/nordic/nrf9160ns_sica.dtsi&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and not&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;arm/nordic/nrf9160_sica.dtsi&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which is way before (note the subtle &amp;quot;ns&amp;quot; change). Making this change allowed the board to compile without issue.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library: lib__libc__common - Error adding build configuration with custom board, wont compile hello world</title><link>https://devzone.nordicsemi.com/thread/443350?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 11:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8904a461-710d-41bf-9d71-382d7c0030dc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &amp;quot;lib__libc__common&amp;quot; warning is likely unrelated to the warning. See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100426/peripheral-lbs-example-policy-cmp0010-is-not-set-and-no-sources-given-to-zephyr-library-lib__libc__common"&gt;Peripheral LBS example: Policy CMP0010 is not set and No SOURCES given to Zephyr library: lib__libc__common&lt;/a&gt;&amp;nbsp;for an explanation of this warning.&lt;/p&gt;
[quote user=""]crm_nrf9160_v1_x.zip[/quote]
&lt;p&gt;Building this worked for me when I used the board &amp;quot;crm_nrf9160_v1_x&amp;quot;. However, it gives me the same error as you for &amp;quot;crm_nrf9160_v1_x_ns&amp;quot;. This tells us that the issue is related to the _ns, which is adding &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-trusted-firmware-m-t-m"&gt;TF-M&lt;/a&gt; to the build.&lt;/p&gt;
&lt;p&gt;So I were not able to find any differences with your board files, so I thought: &amp;quot;Maybe some of the board defines in here does something somewhere else?&amp;quot;.&lt;br /&gt;After some searching, i found that BOARD_NRF9160DK_NRF9160_NS is mentioned in &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/cd4e36f63fd444d1e850894ca743ee8e9654fc1a/https://github.com/nrfconnect/sdk-zephyr/blob/cd4e36f63fd444d1e850894ca743ee8e9654fc1a/modules/trusted-firmware-m/Kconfig.tfm#L12#L12"&gt;zephyr/modules/trusted-firmware-m/Kconfig.tfm&lt;/a&gt;.&lt;br /&gt;And this points to &lt;a href="https://github.com/nrfconnect/sdk-trusted-firmware-m/tree/master/platform/ext/target/nordic_nrf/nrf9160dk_nrf9160"&gt;nordic_nrf/nrf9160dk_nrf9160&lt;/a&gt;, where you also have board files. Maybe you need to add your custom baord to this TF-M directory as well?&lt;br /&gt;I will ask my colleagues if this the correct way to go, but feel free to give it a try in the meantime.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>