Skip to content

Commit 0972cb9

Browse files
nordicjmcarlescufi
authored andcommitted
cmake: kconfig: Configure KCONFIG_ROOT variable
This configures the KCONFIG_ROOT variable to perform variable substitution, this allows external applications/modules to supply variables for this when will then be correctly used. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 49389b5 commit 0972cb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/kconfig.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ foreach(root ${kconfig_board_root})
5555
endforeach()
5656

5757
if(KCONFIG_ROOT)
58+
# Perform any variable substitutions if they are present
59+
string(CONFIGURE "${KCONFIG_ROOT}" KCONFIG_ROOT)
60+
5861
zephyr_file(APPLICATION_ROOT KCONFIG_ROOT)
5962
# KCONFIG_ROOT has either been specified as a CMake variable or is
6063
# already in the CMakeCache.txt. This has precedence.

0 commit comments

Comments
 (0)