<?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>Project configuraion on source code share with other project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106029/project-configuraion-on-source-code-share-with-other-project</link><description>Hi. 
 I&amp;#39;m working with NCS &amp;amp; developing 2 projects for nRF52840. 
 I have completed one project, and I want to share its soure codes(Library) with another new project. 
 One thing I know that moving these to ZEPHYR_BASE is not a good idea since NCS version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2023 08:51:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106029/project-configuraion-on-source-code-share-with-other-project" /><item><title>RE: Project configuraion on source code share with other project</title><link>https://devzone.nordicsemi.com/thread/458461?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 08:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9468b4bc-ccde-4d8e-bcbe-10383eca5d1d</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;My apologies for the late answer.&lt;/p&gt;
[quote user=""]In Kconfig case I tried like&amp;nbsp;this but &amp;quot;...&amp;nbsp;&lt;span&gt;(${EXTERNAL_LIB}/Kconfig not found error occurs.&lt;/span&gt;[/quote]
&lt;p&gt;EXTERNAL_LIB is a CMake variable, and this will not be exposed to Kconfig.&lt;/p&gt;
&lt;p&gt;For EXTERNAL_LIB variable to be accessible to kconfig and others, you need to set it in your environment (in your current shell/cmd).&lt;/p&gt;
&lt;p&gt;This is commonly done for logging in most external libraries/subsys&amp;#39; in ncs, shown here in the zigbee subsys:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/subsys/zigbee/Kconfig#L281"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/subsys/zigbee/Kconfig#L281&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind 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>