<?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>Using own application repo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56548/using-own-application-repo</link><description>Hi! 
 I am trying to use my own repo like described in the tutorial https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial 
 Everything works fine if I compile stuff that is in the &amp;quot;samples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jan 2020 16:41:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56548/using-own-application-repo" /><item><title>RE: Using own application repo</title><link>https://devzone.nordicsemi.com/thread/229114?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 16:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5060afbf-a709-499e-9d81-fa6f78765693</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;On the master branch, we have now changed to ${ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1680"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1680&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also use west:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.1.0/nrf/ug_app_dev.html#ncs-additions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.1.0/nrf/ug_app_dev.html#ncs-additions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using own application repo</title><link>https://devzone.nordicsemi.com/thread/229109?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9674f95d-e187-4ae6-9c60-78935b787f82</guid><dc:creator>Dominik Windhab</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;I tried the hello_world example. This works fine.&lt;/p&gt;
&lt;p&gt;When building the mqtt_simple it says the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf9160_pca10090ns
-- west build: build configuration:
       source directory: C:\nrf91\ncs\applications_test\mqtt_simple
       build directory: C:\nrf91\ncs\applications_test\mqtt_simple\build (created)
       BOARD: nrf9160_pca10090ns (origin: command line)
-- west build: generating a build system
CMake Error at CMakeLists.txt:9 (include):
  include could not find load file:

    ../../../cmake/boilerplate.cmake


-- Using application from &amp;#39;C:/nrf91/ncs/applications_test/mqtt_simple&amp;#39;
Zephyr version: 2.0.99
-- Found PythonInterp: C:/Python37/python.exe (found suitable version &amp;quot;3.7.2&amp;quot;, minimum required is &amp;quot;3.4&amp;quot;)
-- Selected BOARD nrf9160_pca10090ns
-- Found west: C:/Python37/Scripts/west.exe (found suitable version &amp;quot;0.6.3&amp;quot;, minimum required is &amp;quot;0.6.0&amp;quot;)
-- Cache files will be written to: C:\Users\UJDF716\AppData\Local/.cache/zephyr
-- Loading C:/nrf91/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
-- Overlaying C:/nrf91/ncs/zephyr/dts/common/common.dts
Devicetree configuration written to C:/nrf91/ncs/applications_test/mqtt_simple/build/zephyr/include/generated/generated_dts_board.conf

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value &amp;#39;y&amp;#39; but
got the value &amp;#39;n&amp;#39;. You can check symbol information (including dependencies) in the &amp;#39;menuconfig&amp;#39;
interface (see the Application Development Primer section of the manual), or in the Kconfig
reference at
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html (which is
updated regularly from the master branch). See the &amp;#39;Setting configuration values&amp;#39; section of the
Board Porting Guide as well.
Parsing Kconfig tree in C:/nrf91/ncs/applications_test/mqtt_simple/Kconfig
Loaded configuration &amp;#39;C:/nrf91/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig&amp;#39;
Merged configuration &amp;#39;C:/nrf91/ncs/applications_test/mqtt_simple/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/nrf91/ncs/applications_test/mqtt_simple/build/zephyr/.config&amp;#39;
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Using application from &amp;#39;C:/nrf91/ncs/nrf/samples/nrf9160/spm&amp;#39;
Zephyr version: 2.0.99
Changed board to secure nrf9160_pca10090 (NOT NS)
USING OUT OF TREE BOARD
-- Loading C:/nrf91/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying C:/nrf91/ncs/zephyr/dts/common/common.dts
-- Overlaying C:/nrf91/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
Devicetree configuration written to C:/nrf91/ncs/applications_test/mqtt_simple/build/spm/zephyr/include/generated/generated_dts_board.conf
Parsing Kconfig tree in C:/nrf91/ncs/zephyr/Kconfig
Loaded configuration &amp;#39;C:/nrf91/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig&amp;#39;
Merged configuration &amp;#39;C:/nrf91/ncs/nrf/samples/nrf9160/spm/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/nrf91/ncs/applications_test/mqtt_simple/build/spm/zephyr/.config&amp;#39;
Running Partition Manager...
-- Configuring incomplete, errors occurred!
See also &amp;quot;C:/nrf91/ncs/applications_test/mqtt_simple/build/CMakeFiles/CMakeOutput.log&amp;quot;.
See also &amp;quot;C:/nrf91/ncs/applications_test/mqtt_simple/build/CMakeFiles/CMakeError.log&amp;quot;.
ERROR: command exited with status 1: &amp;#39;C:\Program Files\CMake\bin\cmake.EXE&amp;#39; &amp;#39;-BC:\nrf91\ncs\applications_test\mqtt_simple\build&amp;#39; &amp;#39;-SC:\nrf91\ncs\applications_test\mqtt_simple&amp;#39; -GNinja -DBOARD=nrf9160_pca10090ns&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems like there is a&amp;nbsp;relative path to cmake/boilerplate.cmake in the CMakeLists.txt&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;include(../../../cmake/boilerplate.cmake NO_POLICY_SCOPE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I set it manually to the correct path&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;include(C:/nrf91/ncs/nrf/cmake/boilerplate.cmake NO_POLICY_SCOPE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then it builds.&lt;/p&gt;
&lt;p&gt;Can you tell me what the correct&amp;nbsp;environment variable would be to avoid absolute path?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using own application repo</title><link>https://devzone.nordicsemi.com/thread/229103?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb2d31c-a574-4c07-a175-ffcaa8a1168b</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The &amp;quot;C&amp;quot; in your ZEPHYR_BASE is lower case, while the one in the CMAKE_CURRENT_SOURCE_DIR is upper case. This confuses the build script.&lt;/p&gt;
&lt;p&gt;If it is set by you running the zephyr-env.cmd script, either do it from inside the zephyr/scripts folder or by having an upper case &amp;quot;C&amp;quot; in the path to the script.&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>