zephyr/soc
Marc Herbert a8c0123d3c intel_adsp: cmake: add_custom_command(.mod) to fix incremental build
Now building twice back to back does not build anything the second time
when CONFIG_CLEANUP_INTERMEDIATE_FILES (which obviously breaks
incremental builds) is also turned off.

Fixes commit 2906d1aa51 ("soc/intel_adsp: Build bootloader with Zephyr")

Properly implementing custom commands requires BOTH
`add_custom_command()` and an `add_custom_target()` wrapper with some
careful DEPENDS wizardry between them.

https://cmake.org/cmake/help/latest/command/add_custom_target.html
> Use the add_custom_command() command to generate a file with
> dependencies.

The documentation of add_custom_command() also similarly refers to
add_custom_target()

When this is not done properly, the build is cursed in various, very
time-consuming ways which are not officially documented but here
instead:
https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-03-02 15:34:55 -05:00
..
arc zdsp: add ARC DSPLIB backend for zdsp 2023-02-21 15:06:06 +01:00
arm soc: nrf53: Change logging level of anomaly 160 message to DEBUG 2023-03-02 09:03:10 +01:00
arm64 soc: arm64: ti_sitara: Add pinctrl support for TI AM6X A53 SoC 2023-03-02 13:50:06 +01:00
mips asm: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
nios2 linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
posix soc: posix: inf_clock: add C++ support to NATIVE_TASK 2023-01-26 09:30:36 +01:00
riscv ITE drivers/sensor/vcmp/it8xxx2: add work queue for voltage comparator 2023-03-01 09:12:49 -06:00
sparc linker: update files with <zephyr/...> include prefix 2022-05-09 12:45:29 -04:00
x86 soc: x86: Used fixed BDF values for early serial 2022-11-16 11:18:43 +01:00
xtensa intel_adsp: cmake: add_custom_command(.mod) to fix incremental build 2023-03-02 15:34:55 -05:00
Kconfig nrf52_bsim: Convert from a nRF52832 to a nRF52833 2023-01-26 09:29:18 +01:00