mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-18 22:18:47 +00:00
check_bootloader: depend on MEMORY_PROTECT
This commit is contained in:
parent
56ff88a08f
commit
e907cb87bc
@ -44,6 +44,7 @@ int known_bootloader(int r, const uint8_t *hash) {
|
|||||||
|
|
||||||
void check_bootloader(void)
|
void check_bootloader(void)
|
||||||
{
|
{
|
||||||
|
#if MEMORY_PROTECT
|
||||||
uint8_t hash[32];
|
uint8_t hash[32];
|
||||||
int r = memory_bootloader_hash(hash);
|
int r = memory_bootloader_hash(hash);
|
||||||
|
|
||||||
@ -57,7 +58,6 @@ void check_bootloader(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
// ENABLE THIS AT YOUR OWN RISK
|
// ENABLE THIS AT YOUR OWN RISK
|
||||||
// ATTEMPTING TO OVERWRITE BOOTLOADER WITH UNSIGNED FIRMWARE MAY BRICK
|
// ATTEMPTING TO OVERWRITE BOOTLOADER WITH UNSIGNED FIRMWARE MAY BRICK
|
||||||
// YOUR DEVICE.
|
// YOUR DEVICE.
|
||||||
|
Loading…
Reference in New Issue
Block a user