<?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>Custom Kconfig Menu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77339/custom-kconfig-menu</link><description>I&amp;#39;m trying to add a sensor driver to my project based off of Zephyr&amp;#39;s sensor driver for adxl372. I can&amp;#39;t figure out how to get the Kconfig file in that sensor folder to show up in SES &amp;quot;Configure nRF Connect SDK Project&amp;quot; gui. 
 This is how I have my project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jul 2021 03:19:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77339/custom-kconfig-menu" /><item><title>RE: Custom Kconfig Menu</title><link>https://devzone.nordicsemi.com/thread/319693?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 03:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e7e130-c153-48df-baa1-0a6c8d7d004d</guid><dc:creator>theIdeaMen</dc:creator><description>&lt;p&gt;I figured it out. I changed and added a few things, some of which may not be needed.&lt;/p&gt;
&lt;p&gt;New folder tree:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;($ProjectFolder)
- CMakeLists.txt
- myproject.emProject
- prj.conf
- src
    - main.c
- drivers
    - mysensor
        - CMakeLists.txt
        - Kconfig
        - mysensor.c
        - zephyr
            - module.yml&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Added this line to the top of root CMakeLists.txt:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_LIST_DIR}/drivers/mysensor)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;drivers/mysensor/CMakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_include_directories(.)

zephyr_library()
zephyr_library_sources_ifdef(CONFIG_MYSENSOR mysensor.c)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;drivers/mysensor/zephyr/module.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;build:
  cmake: .
  kconfig: Kconfig&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>