Skip to content

Commit c8d9f4b

Browse files
nordicjmdanieldegrasse
authored andcommitted
sysbuild: cmake: kconfig: Fix missing sysbuild Kconfig paths
Fixes an issue where external sysbuild Kconfig path variables were not provided and meant they could not be overwritten Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent ec0865c commit c8d9f4b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

share/sysbuild/cmake/modules/sysbuild_kconfig.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ set(shield_conf_files)
102102
list(APPEND ZEPHYR_KCONFIG_MODULES_DIR BOARD=${BOARD})
103103
set(KCONFIG_NAMESPACE SB_CONFIG)
104104

105+
foreach(module_name ${ZEPHYR_MODULE_NAMES})
106+
zephyr_string(SANITIZE TOUPPER MODULE_NAME_UPPER ${module_name})
107+
108+
if(SYSBUILD_${MODULE_NAME_UPPER}_KCONFIG)
109+
list(APPEND
110+
ZEPHYR_KCONFIG_MODULES_DIR
111+
"SYSBUILD_${MODULE_NAME_UPPER}_KCONFIG=${SYSBUILD_${MODULE_NAME_UPPER}_KCONFIG}"
112+
)
113+
endif()
114+
endforeach()
115+
105116
if(EXISTS ${APP_DIR}/Kconfig.sysbuild)
106117
set(KCONFIG_ROOT ${APP_DIR}/Kconfig.sysbuild)
107118
endif()

0 commit comments

Comments
 (0)