File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -841,3 +841,24 @@ if(SYSBUILD AND CONFIG_PCD_APP)
841841 set (RAM_FLASH_ADDR "${ram_flash_addr} " CACHE STRING "" FORCE )
842842 set (RAM_FLASH_SIZE "${ram_flash_size} " CACHE STRING "" FORCE )
843843endif ()
844+
845+ if (NOT CONFIG_PARTITION_MANAGER_ENABLED AND CONFIG_SOC_NRF5340_CPUAPP)
846+ if (CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER AND NOT CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER EQUAL -1)
847+ if (NOT TARGET b0n_target)
848+ add_custom_target (b0n_target )
849+ zephyr_dt_import (EDT_PICKLE_FILE ${CMAKE_BINARY_DIR} /../b0n/zephyr/edt.pickle TARGET b0n_target )
850+ endif ()
851+ # Really this dependency if set for MCUboot, but it will also cover s1 image,
852+ # since contition that let us here checks for `CONFIG_MCUBOOT` which is only
853+ # set for MCUboot builds.
854+ add_dependencies (${TARGET_NAME} b0n_target )
855+
856+ dt_nodelabel (s0_partition_path NODELABEL s0_partition REQUIRED TARGET b0n_target )
857+ dt_reg_addr (s0_partition_address PATH ${s0_partition_path} TARGET b0n_target )
858+ dt_reg_size (s0_partition_size PATH ${s0_partition_path} TARGET b0n_target )
859+ # Using same identifiers as nrf5340 hooks use, as they represnt the same
860+ # information in hooks.
861+ zephyr_compile_definitions ("PCD_NET_CORE_APP_ADDRESS=${s0_partition_address} " )
862+ zephyr_compile_definitions ("PCD_NET_CORE_APP_SIZE=${s0_partition_size} " )
863+ endif ()
864+ endif ()
Original file line number Diff line number Diff line change 4343#define SPI_FLASH_0_ID 1
4444#endif
4545
46+ /* Support for NETCPU application image updates */
47+ #if CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1
48+ #define NETCPU_APP_SLOT_OFFSET PCD_NET_CORE_APP_ADDRESS
49+ #define NETCPU_APP_SLOT_SIZE PCD_NET_CORE_APP_SIZE
50+ #define NETCPU_APP_SLOT_END (NETCPU_APP_SLOT_OFFSET + NETCPU_APP_SLOT_SIZE)
51+ #endif
52+
4653/* This is workaround because of bootutil public interface also requiring this
4754 * file. In reality application is supposed to maintain flash area access,
4855 * but bootutil uses own definitions, taken directly from DTS, which includes
You can’t perform that action at this time.
0 commit comments