Add support for Kconfig in src/custom

Also fixes data_nodes_custom.cpp inclusion based on Kconfig.
This commit is contained in:
Martin Jäger
2020-07-27 17:53:31 +02:00
parent bbd1312fe5
commit 8f96343cf1
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ target_sources(app PRIVATE
add_subdirectory(ext)
target_sources_if_kconfig(CONFIG_CUSTOM_DATA_NODES_FILE, app PRIVATE data_nodes_custom.cpp)
if(${CONFIG_CUSTOM_DATA_NODES_FILE})
target_sources(app PRIVATE data_nodes_custom.cpp)
endif()
# Using this option enables user-specific customization of the firmware. The
# custom subfolder should have its own CMakeLists.txt file.
+3
View File
@@ -229,5 +229,8 @@ config CUSTOM_DCDC_CONTROLLER
endif
# include custom Kconfig if existing
orsource "../src/custom/Kconfig"
# include main Zephyr menu entries from Zephyr root directory
source "Kconfig.zephyr"