mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 23:15:21 +00:00
CMake prints a helpful error message with all the boards supported when a board name has been misspelled. But CMake also remembers (caches) the corrupted board name and refuses to change it until the board directory has been cleared. CMake is rightly hesitant to change the board, as other cached variables depend on what the board is. But it is safe to change the board just after it has been selected, because we verify it's correctness before using it to calculate other variables. So to support the use-case of changing a misspelled board name (without clearing the build directory) we unset the cached board when it is invalid. Also; change the now unused (in-tree) macro 'assert_with_usage' to 'print_usage'. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> |
||
---|---|---|
.. | ||
boilerplate.cmake |