cmake: move the BOARD variable watch below deprecated board handling
Fixes: #33138 Board alias and deprecated board handling is setting the BOARD variable after zephyr_boilerplate_watch(BOARD) has been executed. This results in the board changed warning. This commit moves the zephyr_boilerplate_watch(BOARD) code below the board alias and deprecation handling. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
d697d26bf0
commit
41e283c262
1 changed files with 2 additions and 2 deletions
|
@ -224,8 +224,6 @@ if(NOT (REVISION_SEPARATOR_INDEX EQUAL -1))
|
|||
string(SUBSTRING ${BOARD} 0 ${REVISION_SEPARATOR_INDEX} BOARD)
|
||||
endif()
|
||||
|
||||
zephyr_boilerplate_watch(BOARD)
|
||||
|
||||
set(BOARD_MESSAGE "Board: ${BOARD}")
|
||||
|
||||
if(DEFINED ENV{ZEPHYR_BOARD_ALIASES})
|
||||
|
@ -243,6 +241,8 @@ if(${BOARD}_DEPRECATED)
|
|||
message(WARNING "Deprecated BOARD=${BOARD_DEPRECATED} name specified, board automatically changed to: ${BOARD}.")
|
||||
endif()
|
||||
|
||||
zephyr_boilerplate_watch(BOARD)
|
||||
|
||||
foreach(root ${BOARD_ROOT})
|
||||
# Check that the board root looks reasonable.
|
||||
if(NOT IS_DIRECTORY "${root}/boards")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue