Skip to content

Commit a0665bf

Browse files
committed
cmake: kconfig: allow to set Kconfig targets externally
This commit allows a project to specify a given set of Kconfig targets prior to sourcing kconfig.cmake. This allows for greater flexibility when re-using kconfig.cmake in other projects. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 32a28ef commit a0665bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/modules/kconfig.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_hardenconfig
149149
${ZEPHYR_BASE}/scripts/kconfig/hardenconfig.py
150150
)
151151

152+
set_ifndef(KCONFIG_TARGETS menuconfig guiconfig hardenconfig)
153+
152154
foreach(kconfig_target
153-
menuconfig
154-
guiconfig
155-
hardenconfig
155+
${KCONFIG_TARGETS}
156156
${EXTRA_KCONFIG_TARGETS}
157157
)
158158
add_custom_target(

0 commit comments

Comments
 (0)