cmake: add CMake configure dependency to board.yml
Fixes: #69840 Add CMake configure dependency on the board's board.yml file. This dependency ensures that CMake will re-run and pickup any changes to the current board's board.yml file. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
66b475a3aa
commit
b29d73fcc4
|
@ -199,6 +199,7 @@ if(NOT "${ret_board}" STREQUAL "")
|
|||
set(multi_val "REVISIONS;SOCS;QUALIFIERS")
|
||||
cmake_parse_arguments(LIST_BOARD "" "${single_val}" "${multi_val}" ${ret_board})
|
||||
set(BOARD_DIR ${LIST_BOARD_DIR} CACHE PATH "Board directory for board (${BOARD})" FORCE)
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${BOARD_DIR}/board.yml)
|
||||
|
||||
# Create two CMake variables identifying the hw model.
|
||||
# CMake variable: HWM=[v1,v2]
|
||||
|
|
|
@ -28,4 +28,5 @@ if(HWMv2)
|
|||
set(SOC_FAMILY ${CONFIG_SOC_FAMILY})
|
||||
set(SOC_V2_DIR ${SOC_${SOC_NAME}_DIR})
|
||||
set(SOC_FULL_DIR ${SOC_V2_DIR})
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${SOC_V2_DIR}/soc.yml)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue