File tree 2 files changed +14
-0
lines changed
modules/firmware-manager/source
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 66
66
"delta-storage-size" : {
67
67
"help" : " Total storage allocated for delta image. This config item is only for multicast update." ,
68
68
"value" : null
69
+ },
70
+ "disable-storage-hash-validation" : {
71
+ "help" : " Disables storage hash validation for PAL using like PSA Firmware Update API not supporting storage read." ,
72
+ "options" : [ " null" , " 1" ],
73
+ "default" : null ,
74
+ "value" : null
69
75
}
70
76
}
71
77
}
Original file line number Diff line number Diff line change @@ -300,7 +300,15 @@ static void arm_uc_internal_event_handler(uintptr_t event)
300
300
{
301
301
switch (event ) {
302
302
case ARM_UC_PAAL_EVENT_FINALIZE_DONE :
303
+ #if defined(MBED_CONF_UPDATE_CLIENT_DISABLE_STORAGE_HASH_VALIDATION ) && \
304
+ (MBED_CONF_UPDATE_CLIENT_DISABLE_STORAGE_HASH_VALIDATION == 1 )
305
+ /* PAL using like PSA FWU API doesn't support storage read of firmware candidate (no psa_fwu_read()).
306
+ * Disable storage hash validation. */
307
+ event = UCFM_EVENT_FINALIZE_DONE ;
308
+ arm_uc_signal_ucfm_handler (event );
309
+ #else
303
310
event_handler_finalize ();
311
+ #endif
304
312
break ;
305
313
case ARM_UC_PAAL_EVENT_READ_DONE :
306
314
if (ARM_UC_HUB_getState () == ARM_UC_HUB_STATE_WAIT_FOR_MULTICAST ||
You can’t perform that action at this time.
0 commit comments