1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-19 14:38:47 +00:00

check_bootloader: depend on MEMORY_PROTECT

This commit is contained in:
mcudev 2018-04-08 09:37:11 -04:00 committed by Pavol Rusnak
parent 56ff88a08f
commit e907cb87bc

View File

@ -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.