[Kconfig] Don't inherit kconfig when bootloader (and canbootloader)

This commit is contained in:
Peter van der Perk
2021-08-17 18:46:37 +02:00
committed by Daniel Agar
parent 6af0477733
commit c2ad07b983
8 changed files with 28 additions and 3 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ if(EXISTS ${BOARD_DEFCONFIG})
# Depend on BOARD_DEFCONFIG so that we reconfigure on config change
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${BOARD_DEFCONFIG})
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "bootloader")
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "bootloader" OR ${LABEL} MATCHES "canbootloader")
# Generate boardconfig from saved defconfig
execute_process(COMMAND ${CMAKE_COMMAND} -E env ${COMMON_KCONFIG_ENV_SETTINGS}
${DEFCONFIG_PATH} ${BOARD_DEFCONFIG}
@@ -307,7 +307,7 @@ if(EXISTS ${BOARD_DEFCONFIG})
endif()
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "bootloader")
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "bootloader" OR ${LABEL} MATCHES "canbootloader")
add_custom_target(boardconfig
${CMAKE_COMMAND} -E env
${COMMON_KCONFIG_ENV_SETTINGS}