<?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>How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32114/how-to-automate-compilation-by-including-all-necessary-files</link><description>Hi, 
 I wanna automate the processing of compilation, my idea is to point all path-related files (*.c and *.h), I wrote script which is looking for all *.c and *.h files and includes them into makefile 
 
 
 They were included into main Makefile as 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jan 2019 09:33:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32114/how-to-automate-compilation-by-including-all-necessary-files" /><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/164181?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 09:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb76cce-0bf6-4c7b-969c-af27ecca5863</guid><dc:creator>LukaszM</dc:creator><description>&lt;p&gt;I know it is an old thread but I wanted to mention the one of the reasons would be to speed up compilation times which are too often very long. I know GNU make is taking take of it in many cases but it still unnecessarily happens anyways (f.ex: whenever something is changed in the project&amp;#39;s makefile).&lt;/p&gt;
&lt;p&gt;Having SDK as a library or being able to configure it to precompile once could save plenty of time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/125533?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 12:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae7ad807-d98b-47e3-ac16-0ef5dbde9ddb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The problem is that the SDK is not really setup to be compiled as a full library, so there&amp;#39;s a lot of things that you&amp;#39;ll need to handle in order to make that happen, in terms of preprocessor defines, compiler settings, architecture (nrf51x22, nrf52832, nrf52810, nrf52840), etc. It&amp;#39;s likely easier to manage the sources directly using a project file (makefile or an IDE)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/125290?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 08:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05893084-c1ac-4a31-813d-c59914eba42e</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;Hi, thanks for your reply)&lt;/p&gt;
&lt;p&gt;The reason to simplify adding files to the Makefile. Cause sometimes I missed some files when I compile project, the same case when I edit nrf_config.h file&lt;/p&gt;
&lt;p&gt;I thought there was easy way to build static library and include it into my project every time&lt;/p&gt;
&lt;p&gt;I like, for example Xcode, way when I don&amp;#39;t care about including libraries files and able to build my project, editing only my files and include some headers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/125269?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 07:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10498ba0-8c2c-4a92-85ba-a2791c417e84</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to compile all the files in components/ folder, you have to also have the configuration for some of the those libraries. It might be of more benefit for you just to compile the source and headers in with your project instead. Creating an archive of it all is likely to be a back-and-forth situation wrt. different configurations and preprocessor definitions.&lt;/p&gt;
&lt;p&gt;Is there a specific reason why you want to create an archive of the SDK?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/125190?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 14:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a61da0a-34ed-40a1-bc50-d534ebc8e2a0</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;Yes, but when I compile I get error, that gcc can&amp;#39;t find some files or variables, for example I exclude ./examples and ./components/ant folders from sources and headers path.&lt;pre class="ui-code" data-mode="c_cpp"&gt;In file included from /nrf51/12.3.0/components/ble/ble_services/ble_escs/nrf_ble_escs.h:49:0,
                 from /nrf51/12.3.0/components/ble/ble_services/ble_escs/nrf_ble_escs.c:41:
/nrf51/12.3.0/config/es_app_config.h:81:2: error: #error MISSING ETLM DELAY TIMING
 #error MISSING ETLM DELAY TIMING
  ^~~~~
make: *** [_build/nrf51422_xxac_nrf_ble_escs.c.o] Error 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I see this code is related to NRF52, if I have NRF51 only how can I config to compile only all files for NRF51? Or in general to prevent the same errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/125132?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 10:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2b4c65-dbe7-4c6b-ba09-5c05e104a735</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Have you gotten everything to compile properly? If yes, then the next step is to create a library using arm-none-eabi-ar, like we do in the makefile&amp;#39;s for micro-ecc (external/ folder of the SDK). There should be plenty of examples on how to do that on stackoverflow and similar forums.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/124908?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 07:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2295e78-c4a6-4c6f-b62c-5543159d257d</guid><dc:creator>IlyaM</dc:creator><description>&lt;p&gt;Yes, I commented out ANT headers and sources, but got another one. My question is how to automate the proccess of linking all necessary files. For example, I have a dir with all *.c and *.h files and have main.c with included *.h files, my script has to read all includes, finds all necessary files and compiles it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to automate compilation by including all necessary files</title><link>https://devzone.nordicsemi.com/thread/124621?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 14:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a863878d-3699-465b-83fc-325c61948b96</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Headers (and binary) for ANT enabled Softdevices is distributed by Dynastream, so you&amp;#39;ll have to contact them via. www.thisisant.com in order to obtain.&lt;/p&gt;
&lt;p&gt;If you are not using the ANT protocol, I recommend excluding it from your library.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best 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>