Skip to content

Commit b1d1c24

Browse files
committed
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 5ee5af6 commit b1d1c24

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)