@@ -1071,11 +1071,11 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
1071
1071
#if defined(CONFIG_SOC_NRF5340_CPUAPP ) && defined(CONFIG_NRF53_MULTI_IMAGE_UPDATE ) \
1072
1072
&& defined(CONFIG_PCD_APP ) && defined(CONFIG_PCD_READ_NETCORE_APP_VERSION )
1073
1073
if (BOOT_CURR_IMG (state ) == CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER ) {
1074
- rc = pcd_version_cmp_net (fap , boot_img_hdr (state , BOOT_SECONDARY_SLOT ));
1074
+ rc = pcd_version_cmp_net (fap , boot_img_hdr (state , BOOT_SLOT_SECONDARY ));
1075
1075
} else {
1076
1076
rc = boot_version_cmp (
1077
- & boot_img_hdr (state , BOOT_SECONDARY_SLOT )-> ih_ver ,
1078
- & boot_img_hdr (state , BOOT_PRIMARY_SLOT )-> ih_ver );
1077
+ & boot_img_hdr (state , BOOT_SLOT_SECONDARY )-> ih_ver ,
1078
+ & boot_img_hdr (state , BOOT_SLOT_PRIMARY )-> ih_ver );
1079
1079
1080
1080
#if CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1
1081
1081
if (rc >= 0 && BOOT_CURR_IMG (state ) == CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER ) {
@@ -1096,8 +1096,8 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
1096
1096
}
1097
1097
#else
1098
1098
rc = boot_version_cmp (
1099
- & boot_img_hdr (state , BOOT_SECONDARY_SLOT )-> ih_ver ,
1100
- & boot_img_hdr (state , BOOT_PRIMARY_SLOT )-> ih_ver );
1099
+ & boot_img_hdr (state , BOOT_SLOT_SECONDARY )-> ih_ver ,
1100
+ & boot_img_hdr (state , BOOT_SLOT_PRIMARY )-> ih_ver );
1101
1101
1102
1102
#if CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1
1103
1103
if (rc >= 0 && BOOT_CURR_IMG (state ) == CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER ) {
@@ -1116,7 +1116,7 @@ boot_validate_slot(struct boot_loader_state *state, int slot,
1116
1116
}
1117
1117
#endif
1118
1118
#endif
1119
- if (rc < 0 && boot_check_header_erased (state , BOOT_PRIMARY_SLOT )) {
1119
+ if (rc < 0 && boot_check_header_erased (state , BOOT_SLOT_PRIMARY )) {
1120
1120
BOOT_LOG_ERR ("insufficient version in secondary slot" );
1121
1121
boot_scramble_slot (fap , slot );
1122
1122
/* Image in the secondary slot does not satisfy version requirement.
0 commit comments