zephyr/cmake
Grzegorz Swiderski af23628e43 sysbuild: Add SB_OVERLAY_CONFIG
This fixes a minor issue in sysbuild, where `-DOVERLAY_CONFIG=...` would
be applied not only to the main application, but also sysbuild itself.
This was incorrect, because sysbuild imports a different Kconfig tree
than normal Zephyr builds, so the same Kconfig fragment file would not
necessarily be valid for both.

This adds a new variable SB_OVERLAY_CONFIG to resolve this ambiguity.
It functions along the lines of SB_CONF_FILE, with both being sysbuild-
specific versions of existing variables.

To ensure that OVERLAY_CONFIG is still passed on to the main application
verbatim, its value is now loaded in `configuration_files.cmake`, rather
than `kconfig.cmake`. This is because the former file is not imported by
sysbuild, and it is where the related variables, such as CONF_FILE and
DTC_OVERLAY_FILE, are loaded as well.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-05-05 09:42:10 +02:00
..
app
bintools toolchain: oneApi: Fix support and update for 2023.0.0 release 2023-02-23 14:30:03 -05:00
compiler cmake: armclang: Handle -mfpu=auto used by cortex-m55 2023-04-27 14:16:52 +02:00
emu cmake: armfvp: enable SMSC_91C111 when it needed 2023-04-11 11:27:05 +02:00
flash west: runners: uf2: Add new UF2 runner. 2023-02-20 12:50:38 +01:00
ide
linker linker: ld: include crt{begin,end}.o if LIBGCC_DIR is defined 2023-03-29 19:48:47 -04:00
linker_script logging: Use TYPE_SECTION macros for log dynamic 2023-05-03 10:43:31 +02:00
makefile_exports
modules sysbuild: Add SB_OVERLAY_CONFIG 2023-05-05 09:42:10 +02:00
reports
sca/sparse cmake: add sparse support to the new SCA infrastructure 2023-01-27 20:28:58 +09:00
toolchain cmake/toolchain: Add Kconfig setting for toolchains with newlib 2023-04-27 20:18:11 +09:00
usage
util
cfb.cmake scripts: move gen_cfb_font_header.py to scripts/build 2022-07-12 10:03:45 +02:00
extra_flags.cmake cmake: fix improper use of separate_arguments 2022-09-05 10:22:05 +02:00
gcc-m-cpu.cmake ARC: Add HS4x support 2023-05-02 16:54:24 +02:00
gcc-m-fpu.cmake cmake: gcc: Fix Cortex-R52 FPU type 2022-10-19 00:28:33 +09:00
gen_version_h.cmake
hex.cmake
kobj.cmake scripts: move gen_kobject_list.py to scripts/build/gen_kobject_list.py 2022-07-12 10:03:45 +02:00
mcuboot.cmake cmake: mcuboot: Add Kconfig for passing west sign arguments 2023-03-24 09:04:49 +01:00
package_helper.cmake cmake: recommend CMake >=3.20.5 as minimum CMake version 2023-03-07 18:15:58 +01:00
pristine.cmake
target_toolchain_flags.cmake
verify-toolchain.cmake cmake: rework of host tools and generic toolchain handling 2022-09-01 15:59:43 +02:00
vif.cmake usb-c: Generate USB-C connector VIF policies XML file 2022-12-02 08:46:04 -06:00