Skip to content

Commit a3a0112

Browse files
tejlmandcarlescufi
authored andcommitted
cmake: kconfig: allow build systems to decide defconfig
Allow build system to define an alternative defconfig file. This allows reusing the existing kconfig.cmake file in other projects, such as multi image builds. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 815b974 commit a3a0112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/kconfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ else()
5959
set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig)
6060
endif()
6161

62-
set(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
62+
set_ifndef(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
6363
set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config)
6464
set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
6565

0 commit comments

Comments
 (0)