We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b10af16 commit f9315ccCopy full SHA for f9315cc
subsys/mgmt/mcumgr/bootutil_hooks/nrf53_hooks.c
@@ -8,10 +8,18 @@
8
#include <zephyr/device.h>
9
#include "bootutil/bootutil_public.h"
10
11
+#if CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1
12
+/* Sysbuild */
13
+#define NET_CORE_IMAGE CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER
14
+#else
15
+/* Legacy child/parent */
16
+#define NET_CORE_IMAGE 1
17
+#endif
18
+
19
int boot_read_swap_state_primary_slot_hook(int image_index,
20
struct boot_swap_state *state)
21
{
- if (image_index == 1) {
22
+ if (image_index == NET_CORE_IMAGE) {
23
/* Pretend that primary slot of image 1 unpopulated */
24
state->magic = BOOT_MAGIC_UNSET;
25
state->swap_type = BOOT_SWAP_TYPE_NONE;
0 commit comments