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 386a172 commit d142426Copy full SHA for d142426
src/update_flash.c
@@ -814,11 +814,14 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
814
* wolfBoot_start*/
815
wolfBoot_swap_and_final_erase(0);
816
817
-#else /* DISABLE_BACKUP */ /* Compute and verify scattered hash */
818
- if (wolfBoot_verify_scattered_hash(&boot) != 0) {
819
- wolfBoot_printf("Scattered hash verification failed\n");
820
- return -1;
821
- }
+#else /* DISABLE_BACKUP */
+ #ifdef ELF_SCATTERED
+ /* Compute and verify scattered hash */
+ if (wolfBoot_verify_scattered_hash(&boot) != 0) {
+ wolfBoot_printf("Scattered hash verification failed\n");
822
+ return -1;
823
+ }
824
+ #endif
825
/* Direct Swap without power fail safety */
826
827
hal_flash_unlock();
0 commit comments