With the introduction of #32556 changing the BOARD now prints a warning. Zephyr provides `zephyr_file()` to look up overlays and Kconfig fragments for a specified board, and it used to be possible and safe to do: ``` function(my_func) set(BOARD <local_scope_board>) zephyr_file(CONF_FILES ...) endfunction(my_func) ``` As the BOARD inside `my_func` is locally scoped, this is safe to do. But with introduction of #32556 a warning is now printed when running CMake. Therefore `zephyr_file` has been extended to allow for optional BOARD and BOARD_REVISION arguments. If BOARD is not given as argument the current BOARD in the build system will be used. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| app | ||
| bintools | ||
| compiler | ||
| emu | ||
| flash | ||
| ide | ||
| linker | ||
| makefile_exports | ||
| reports | ||
| toolchain | ||
| usage | ||
| util | ||
| boards.cmake | ||
| ccache.cmake | ||
| cfb.cmake | ||
| dts.cmake | ||
| extensions.cmake | ||
| extra_flags.cmake | ||
| gcc-m-cpu.cmake | ||
| generic_toolchain.cmake | ||
| git.cmake | ||
| hex.cmake | ||
| host-tools.cmake | ||
| kconfig.cmake | ||
| kobj.cmake | ||
| mcuboot.cmake | ||
| pristine.cmake | ||
| python.cmake | ||
| shields.cmake | ||
| target_toolchain_flags.cmake | ||
| target_toolchain.cmake | ||
| verify-toolchain.cmake | ||
| version.cmake | ||
| west.cmake | ||
| zephyr_module.cmake | ||