Commit 5e0f695
[nrf noup] zephyr: sysflash: Fix undefined TARGET_NAME in dependency
The add_dependencies() call introduced together with the
PCD_NET_CORE_APP_ADDRESS / PCD_NET_CORE_APP_SIZE compile definitions
used ${TARGET_NAME}, which is not defined anywhere in MCUboot's CMake
or Kconfig. CMake therefore expanded it to an empty string and aborted
the configure step with:
add_dependencies called with incorrect number of arguments
This affected every build enabling the new code path, that is:
CONFIG_PARTITION_MANAGER_ENABLED=n
CONFIG_SOC_NRF5340_CPUAPP=y
CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER set (multi-image update)
Replaced ${TARGET_NAME} with the standard Zephyr application library
target name app, matching how add_dependencies() is used elsewhere
across the tree.
Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>1 parent 2c25836 commit 5e0f695
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| |||
0 commit comments