zephyr/cmake/modules
Torsten Rasmussen 8460d91e32 cmake: extend zephyr_get() to support fetching of multiple variables
This commit extends zephyr_get() to support multiple variable names to
be fetched into a single variable.

Example:
  zephyr_get(FOO VAR FOO_A FOO_B FOO_C)

will lookup each FOO_A, FOO_B, FOO_C for supported scopes and return
the value in FOO of the first scope encountered having one of the
variables defined.

If MERGE is specified, then all scopes for all vars are looped and the
variable values are merged into FOO and returned.

This functionality will allow to deprecate user-facing settings while
ensuring that both the new and deprecated variables are considered
in zephyr_get() and also taking into consideration the scope with
highest precedence.

This allows Zephyr CMake to do:
  zephyr_get(FOO VAR FOO DEPRECATED_FOO)

  zephyr_get(BAR MERGE VAR BAR DEPRECATED_BAR)

This allows support of old and new setting for a given number of
releases.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2023-05-23 16:40:21 +02:00
..
arch.cmake cmake: kconfig: introduce dedicated unit testing board 2022-08-18 14:29:14 +02:00
basic_settings.cmake cmake: extend zephyr_get() to handle build configurations from sysbuild 2022-09-02 15:16:50 +02:00
boards.cmake cmake: fix and clean up some module doc comments 2023-01-11 09:40:14 +01:00
ccache.cmake
configuration_files.cmake sysbuild: Add SB_OVERLAY_CONFIG 2023-05-05 09:42:10 +02:00
doc.cmake
dts.cmake cmake: modules: dts: extract preprocessing helper extension 2023-04-12 13:04:31 +02:00
extensions.cmake cmake: extend zephyr_get() to support fetching of multiple variables 2023-05-23 16:40:21 +02:00
Findarmclang.cmake armclang: Add version check for armclang toolchain 2023-02-28 13:54:56 +01:00
FindBabbleSim.cmake nrf52_bsim: Find simulator thru west as fallback 2023-04-28 13:57:21 +02:00
FindDeprecated.cmake cmake: sparse: fix handling of (deprecated) -DSPARSE=garbage 2023-04-20 10:49:23 +02:00
FindDtc.cmake cmake: cleanup search for devicetree compiler, dtc 2022-09-01 15:59:43 +02:00
FindGnuLd.cmake cmake: toolchain: cache property GNULD_LINKER_IS_BFD 2023-04-12 10:25:41 -04:00
FindHostTools.cmake unittest: update coverage library non gcc toolchains 2022-11-21 16:09:46 -05:00
FindLlvmLld.cmake linker: lld: see if clang has a preferred linker 2023-03-29 19:48:47 -04:00
FindoneApi.cmake toolchain: oneApi: Fix support and update for 2023.0.0 release 2023-02-23 14:30:03 -05:00
FindScaTools.cmake cmake: implement build infrastructure for supporting SCA tools. 2023-01-27 20:28:58 +09:00
FindTargetTools.cmake cmake: propagate endianess to CMake CMAKE_<lang>_BYTE_ORDER setting 2022-09-26 15:09:38 +00:00
FindZephyr-sdk.cmake cmake: FindZephyr-sdk: Find newest SDK version 2023-03-06 13:51:36 +01:00
generated_file_directories.cmake cmake: modules: add generated_file_directories 2023-04-12 13:04:31 +02:00
kconfig.cmake cmake: kconfig: Configure KCONFIG_ROOT variable 2023-05-17 16:14:49 +02:00
kernel.cmake cmake: implement build infrastructure for supporting SCA tools. 2023-01-27 20:28:58 +09:00
pre_dt.cmake cmake: modules: dts: extract preprocessing helper extension 2023-04-12 13:04:31 +02:00
python.cmake cmake: Bump the minimum required Python version to 3.8 2022-08-24 18:35:57 +02:00
root.cmake sysbuild: Fix issue with *_ROOT values not propagating 2023-05-03 14:25:33 +02:00
shields.cmake cmake: fix and clean up some module doc comments 2023-01-11 09:40:14 +01:00
snippets.cmake snippets: initial snippet.yml support 2023-03-26 16:12:41 +02:00
soc.cmake
unittest.cmake unittest: add support for coverage 2022-11-28 16:26:02 -05:00
user_cache.cmake cmake: Fix USER_CACHE_DIR path generation 2023-05-10 15:27:54 +02:00
version.cmake cmake: generalize VERSION infrastructure for better reuse 2023-05-17 13:56:58 +02:00
west.cmake west.cmake: make MIN_WEST_VERSION catch up with requirements-base.txt 2023-05-22 10:17:11 +02:00
zephyr_default.cmake cmake: modules: add generated_file_directories 2023-04-12 13:04:31 +02:00
zephyr_module.cmake cmake: modules: Make modules.cmake check more precise 2023-03-27 22:15:59 +00:00