zephyr/cmake
Jérôme Pouiller e7fdc84696 cmake: Fix support for "ninja flash"
By default west looks at the parents directory to find Zephyr base
directory. However, in the case the build directory is not a subdirectory
of zephyr base and the user run "ninja flash" directly from the build
directory, west fails to detect Zephyr base.

So, this patch explicitly add ZEPHYR_BASE in the environment.

Implementation notes:
  * ZEPHYR_BASE is already set for ninja menuconfig in
    cmake/modules/kconfig.cmake:201
  * ZEPHYR_BASE seems better than --zephyr-base since the environment in
    inherited
  * BTW, --zephyr-base seems to not have any impact and seems broken

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-07-02 03:55:49 -10:00
..
app
bintools cmake: add option to force raw instruction mnemonics 2025-06-27 10:01:11 -05:00
compiler arch: riscv: Fix incorrect Zalrsc extension name 2025-07-01 10:18:19 -05:00
emu cmake/emu: Use SIMICS_PROJECT environment variable as working dir 2025-05-20 12:47:25 +02:00
flash cmake: Fix support for "ninja flash" 2025-07-02 03:55:49 -10:00
ide build: namespace autoconf.h with zephyr/ 2024-05-28 22:03:55 +02:00
linker iar: linker_script: zero-init BSS 2025-06-30 15:18:30 -05:00
linker_script cmake: Add service section to commo-rom linker generator 2025-06-27 14:13:58 +02:00
makefile_exports
modules doc: correct python minimum required 2025-06-27 09:15:42 -10:00
reports cmake: targets: support overriding puncover host and port 2025-06-27 09:59:30 -05:00
sca sca: eclair: use MISRA C:2012 Amendment 2 2025-06-30 15:20:13 -05:00
toolchain cmake: llvm: Use '=' for --config to improve compatibility 2025-06-20 16:23:16 +02:00
usage cmake: targets: usage: add missing custom targets 2024-08-31 06:46:44 -04:00
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake arch: arm: Add Cortex-A7 support 2025-04-04 09:35:03 +02:00
gcc-m-fpu.cmake soc: xlnx: zynq7000: add FPU support 2025-06-27 09:50:43 -05:00
gen_version_h.cmake cmake: Create git module 2024-09-12 10:04:05 +02:00
kobj.cmake cmake: fix syscall dependencies 2025-05-13 16:23:54 +02:00
llext-edk.cmake llext-edk: fix BOARD_TARGET variable generation to be Zephyr-compatible 2025-04-02 19:02:45 +02:00
mcuboot.cmake mcuboot: Kconfig options for single app slot RAM loading mode 2025-04-08 16:12:33 +02:00
package_helper.cmake cmake: move script mode handling from package helper to extensions.cmake 2024-10-08 17:00:30 +02:00
pristine.cmake
target_toolchain_flags.cmake cmake: source dedicated linker library properties for native builds 2024-11-16 15:28:20 -05:00
verify-toolchain.cmake
vif.cmake
yaml-filter.cmake cmake: yaml: switch to yaml for intermediate file 2025-04-10 10:11:47 +02:00