Add support for Kconfig in src/custom
Also fixes data_nodes_custom.cpp inclusion based on Kconfig.
This commit is contained in:
+3
-1
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user