<?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 build project outside of the SDK folder?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20194/how-to-build-project-outside-of-the-sdk-folder</link><description>The way the example projects, including the app_template are structured, they will only build if inside the SDK folder. 
 The main problem I find is that the Board Support Package directory seems to be referenced a lot. 
 So my current workaround is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2017 10:01:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20194/how-to-build-project-outside-of-the-sdk-folder" /><item><title>RE: How to build project outside of the SDK folder?</title><link>https://devzone.nordicsemi.com/thread/78672?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 10:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42bfe686-e1d6-4e68-955c-633b08cc466f</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll put my custom_board.h file in the config folder as this will mean I can isolate all project specific code from the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to build project outside of the SDK folder?</title><link>https://devzone.nordicsemi.com/thread/78670?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 09:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:007394d5-185e-4342-a78d-9b3dac040199</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I think it&amp;#39;s totally fine to put your config file in the config folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to build project outside of the SDK folder?</title><link>https://devzone.nordicsemi.com/thread/78671?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 22:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def38c6f-d984-4891-9e77-c1686841ff59</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Sorry.I should have said, I&amp;#39;m using GCC with SDK 12.1&lt;/p&gt;
&lt;p&gt;After reading your answer,and looking at SDK 12.2, I see in 12.2 that the bsp has effectively been moved to components/boards; which is better than in SDK 12.1&lt;/p&gt;
&lt;p&gt;But the templates and examples seem to use boards.c and which includes boards.h, which includes the board as defined in the Makefile -DBOARD_XXX&lt;/p&gt;
&lt;p&gt;As I&amp;#39;m using a custom board I&amp;#39;ve defined BOARD_CUSTOM and have custom_board.h  but I&amp;#39;d rather not put this in the SDK tree, as its hard to keep under source control (git)&lt;/p&gt;
&lt;p&gt;I tried putting custom_board.h in the root of my project, but that path is not included by the Makefile.
(I could add it, but I don&amp;#39;t think think thats the best option)&lt;/p&gt;
&lt;p&gt;So the next logical place for custom_board.h appears to be in the config folder; and placing board_custom.h there, seems to compile.&lt;/p&gt;
&lt;p&gt;Where would you recommend putting board_custom.h ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to build project outside of the SDK folder?</title><link>https://devzone.nordicsemi.com/thread/78669?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 11:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c0cdef7-ab27-4548-8709-a37e6bf57756</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roger,
Which compiler are you using ?&lt;/p&gt;
&lt;p&gt;If you are using KEIL, you may need to use absolute path for the SDK files. You can replace all path with &amp;quot;..&amp;quot; for example &amp;quot;............\components&amp;quot; to the absolute path. They are in .uvprojx file.&lt;/p&gt;
&lt;p&gt;If you are using gcc, you can simply modify the SDK_ROOT in the makefile file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>