zephyr/cmake
Torsten Rasmussen ffff2124d3 cmake: zephyr_file() now accepts BOARD and BOARD_REVISION as argument
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>
2021-03-16 17:03:04 -05:00
..
app cmake: make WATCH an optional argument to zephyr_check_cache() 2021-03-16 17:03:04 -05:00
bintools bintools: append ; to > to ensure a space 2020-11-26 14:20:03 +01:00
compiler compiler: do not allow expansion-to-defined 2021-02-17 04:05:42 -05:00
emu renode: fix dependencies for renode platforms 2021-02-08 21:03:48 -05:00
flash cmake: flash signed binaries for mcuboot 2020-09-03 16:49:09 -05:00
ide
linker ARC: MWDT: avoid xcheck object linkage as we don't use xcheck 2021-03-12 18:29:27 -05:00
makefile_exports cmake: using zephyr_get_compile_options_for_lang_as_string for export 2020-12-15 08:37:54 -05:00
reports scripts: size_report: Fix colorized output 2020-09-03 09:54:21 -04:00
toolchain xcc: do not assume clang by default 2021-03-08 16:04:28 -05:00
usage boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
util
boards.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
ccache.cmake
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake cmake: dtc: Validate EXTRA_DTC_FLAGS flags 2021-03-03 17:29:29 +01:00
extensions.cmake cmake: zephyr_file() now accepts BOARD and BOARD_REVISION as argument 2021-03-16 17:03:04 -05:00
extra_flags.cmake
gcc-m-cpu.cmake arch: arm: Add Cortex-R7 support 2021-01-13 15:04:43 +01:00
generic_toolchain.cmake cmake: twister: Using common script for toolchain setting verification 2021-02-04 20:05:05 -05:00
git.cmake
hex.cmake
host-tools.cmake cmake: add IMGTOOL optional dependency 2020-09-01 13:33:46 +02:00
kconfig.cmake cmake: shields: escaping and quoting list when used for env settings 2021-01-26 17:42:08 -05:00
kobj.cmake cmake: improved handling of output and byproducts in CMake 2021-02-14 18:09:24 -05:00
mcuboot.cmake cmake: mcuboot: confirmed images needs to be padded 2020-09-04 12:00:04 +02:00
pristine.cmake cmake: pristine.cmake requires SOURCE_DIR and BINARY_DIR as arguments 2021-01-23 08:31:13 -05:00
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
shields.cmake boards/shields: re-work handling in cmake and west 2021-01-15 15:07:49 -05:00
target_toolchain_flags.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
target_toolchain.cmake cmake: use the toolchain path, id and version as extended signature. 2020-12-14 11:56:00 -05:00
verify-toolchain.cmake cmake: twister: Using common script for toolchain setting verification 2021-02-04 20:05:05 -05:00
version.cmake cmake: Added possibility to disable the printing of version 2020-03-27 16:23:46 +01:00
west.cmake cmake: add WEST to cached variable 2020-09-03 17:32:48 -04:00
zephyr_module.cmake cmake: modules: Remove duplicates only from existing ZEPHYR_MODULE_NAMES 2021-03-09 07:04:09 -05:00