zephyr/cmake
Torsten Rasmussen 13642fe013 cmake: west: west flash dependencies in sync with CMake flash target
This commit creates a list of a phony targets for each runner, that is:
`west_flash_depends`, `west_debug_depends`, and so on.
Those targets has identical dependencies as CMake runner target.
flash, debug, debugserver, attach targets.

As example `ninja flash` correctly ensures dependencies are taken into
consideration before calling `west flash`.

Unfortunately, calling `west flash` directly would not re-run the flash
dependencies, cause `west flash` would only build the default CMake
target.

Now, `west flash` calls the phony `west_flash_depends` target, ensuring
all deps are up-to-date before flashing (unless --skip-rebuild is given)

The same is true for the other mentioned runners.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-07-01 07:58:10 -04:00
..
app cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
bintools cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
compiler cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
emu boards: centralize QEMU icount management 2020-06-24 20:28:36 -04:00
flash cmake: west: west flash dependencies in sync with CMake flash target 2020-07-01 07:58:10 -04:00
ide
linker/ld cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
makefile_exports cmake: Add option for exporting build metadata to Make 2020-01-23 15:09:12 -05:00
reports build: reports: add puncover target 2020-05-04 17:33:56 -04:00
toolchain cmake: fix usage of Zephyr SDK tools with 3rd party toolchains 2020-05-19 17:12:11 +02:00
usage cmake: ninja usage build target 2020-03-27 16:23:46 +01:00
util
boards.cmake doc,cmake: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02: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: re-run if gen_defines changes 2020-04-13 08:22:46 -05:00
extensions.cmake cmake, samples, tests: Use semi-accurate project names 2020-06-09 08:18:29 -04:00
extra_flags.cmake cmake: extra_flags: fix EXTRA_CPPFLAGS being applied as macros 2019-12-13 13:23:40 -05:00
gcc-m-cpu.cmake arch: arm: aarch64: Add Cortex-A72 config 2020-05-08 10:46:23 +02:00
generic_toolchain.cmake cmake: Zephyr sdk package handling 2020-05-08 17:15:55 +02:00
git.cmake
hex.cmake
host-tools.cmake cmake: improved DTC detection handling 2020-06-12 17:10:36 +02:00
kconfig.cmake cmake: kconfig: pass EXTRA_DTC_FLAGS to kconfig for EDT init 2020-04-16 06:07:24 -05:00
kobj.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
pristine.cmake
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
target_toolchain.cmake cmake: Toolchain abstraction: Abstraction of binary tools, foundation. 2019-07-31 11:09:35 +02:00
version.cmake cmake: Added possibility to disable the printing of version 2020-03-27 16:23:46 +01:00
zephyr_module.cmake cmake: propagating zephyr base to west 2020-03-27 16:23:46 +01:00