zephyr/cmake
Grzegorz Swiderski 105a2bae84 cmake: modules: boards: Fix board deprecation for HWMv2
Deprecating boards comes with similar challenges as with board aliases,
since BOARD_DEPRECATED is also set after parsing BOARD as user input.

With this patch, a deprecated board can be properly translated to a
board with identifiers. This opens up the possibility of recording all
legacy board names in `boards/deprecated.cmake`, such as:

   set(mps2_an521_remote_DEPRECATED mps2/an521/cpu1)

Unlike with aliases, though, there are additional restrictions for
building with BOARD=<deprecated>, which only makes this feature suitable
for deprecating v1 boards:

 * BOARD=<deprecated>/<identifier> is never allowed.
 * BOARD=<deprecated>@<revision> is not allowed if the old board already
   corresponds to a new board revision:

   set(<deprecated>_DEPRECATED <new-board>@<new-revision>)

Future enhancements will be needed for deprecating v2 boards.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-03-01 15:50:05 +01:00
..
app
bintools buildsystem: Add an option to enable LTO 2024-02-02 19:49:36 +01:00
compiler cmake: Fix uses of old SOC path 2024-03-01 15:49:58 +01:00
emu
flash
ide
linker buildsystem: Add an option to enable LTO 2024-02-02 19:49:36 +01:00
linker_script
makefile_exports
modules cmake: modules: boards: Fix board deprecation for HWMv2 2024-03-01 15:50:05 +01:00
reports
sca cmake: sca: Add Parasoft C++test 2024-02-02 13:49:08 +01:00
toolchain
usage
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake
gcc-m-fpu.cmake
gen_version_h.cmake
hex.cmake cmake: hex: deprecate use of to_hex() and from_hex() utility functions 2024-01-22 09:48:33 +00:00
kobj.cmake
mcuboot.cmake
package_helper.cmake
pristine.cmake
target_toolchain_flags.cmake
verify-toolchain.cmake
vif.cmake