Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cmake/modules/kernel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,14 @@ if("${CMAKE_EXTRA_GENERATOR}" STREQUAL "Eclipse CDT4")
include(${ZEPHYR_BASE}/cmake/ide/eclipse_cdt4_generator_amendment.cmake)
eclipse_cdt4_generator_amendment(1)
endif()

if(CONFIG_NET_CONFIG_SETTINGS)
# If network configuration library is enabled, check if the yaml file
# is present and use it to generate an initial configuration. Otherwise
# use the .config file to generate the initial configuration.
if(EXISTS ${APPLICATION_SOURCE_DIR}/network-config.yaml)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this should be using the zephyr_file() functions so they can pick up e.g. file suffix, also makes me think there should be an option to specify the exact file to use

network_generate_config_file_for_target(app ${APPLICATION_SOURCE_DIR}/network-config.yaml)
else()
network_generate_config_file_for_target(app ${DOTCONFIG})
endif()
endif()