@@ -10,19 +10,19 @@ if(CONFIG_BOOT_IMAGE_ACCESS_HOOKS)
1010 zephyr_library_sources (nrf53_hooks.c )
1111 zephyr_library_link_libraries (MCUBOOT_BOOTUTIL )
1212
13- if (NOT CONFIG_PARTITION_MANAGER_ENABLED)
14- # Read s0 address from b0n image
15- if (NOT TARGET b0n_target)
16- add_custom_target (b0n_target )
17- zephyr_dt_import (EDT_PICKLE_FILE ${CMAKE_BINARY_DIR} /../b0n/zephyr/edt.pickle TARGET b0n_target )
18- endif ()
13+ if (NOT CONFIG_PARTITION_MANAGER_ENABLED)
14+ # Read s0 address from b0n image
15+ if (NOT TARGET b0n_target)
16+ add_custom_target (b0n_target )
17+ zephyr_dt_import (EDT_PICKLE_FILE ${CMAKE_BINARY_DIR} /../b0n/zephyr/edt.pickle TARGET b0n_target )
18+ endif ()
1919
20- dt_nodelabel (s0_partition_path NODELABEL s0_partition REQUIRED TARGET b0n_target )
21- dt_reg_addr (s0_partition_address PATH ${s0_partition_path} TARGET b0n_target )
22- dt_reg_size (s0_partition_size PATH ${s0_partition_path} TARGET b0n_target )
23- zephyr_library_compile_options ("-DPCD_NET_CORE_APP_ADDRESS=${s0_partition_address} " )
24- zephyr_library_compile_options ("-DPCD_NET_CORE_APP_SIZE=${s0_partition_size} " )
25- endif ()
20+ dt_nodelabel (s0_partition_path NODELABEL s0_partition REQUIRED TARGET b0n_target )
21+ dt_reg_addr (s0_partition_address PATH ${s0_partition_path} TARGET b0n_target )
22+ dt_reg_size (s0_partition_size PATH ${s0_partition_path} TARGET b0n_target )
23+ zephyr_library_compile_options ("-DPCD_NET_CORE_APP_ADDRESS=${s0_partition_address} " )
24+ zephyr_library_compile_options ("-DPCD_NET_CORE_APP_SIZE=${s0_partition_size} " )
25+ endif ()
2626 endif ()
2727endif ()
2828
0 commit comments