1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-30 02:18:16 +00:00

perf(core/bootloader): remove optiga from bootloader

[no changelog]
This commit is contained in:
tychovrahe 2025-06-28 14:43:42 +02:00 committed by TychoVrahe
parent f966119817
commit fdc9cfdc94
5 changed files with 2 additions and 16 deletions

View File

@ -18,7 +18,6 @@ FEATURES_WANTED = [
"dma2d",
"input",
"iwdg",
"optiga",
"power_manager",
"rgb_led",
"rtc",
@ -142,7 +141,7 @@ SOURCE_BOOTLOADER = [
'embed/projects/bootloader/version_check.c',
]
if 'optiga' in FEATURES_AVAILABLE:
if ('LOCKABLE_BOOTLOADER', '1') in CPPDEFINES_HAL:
SOURCE_BOOTLOADER += [
'embed/projects/bootloader/workflow/wf_unlock_bootloader.c',
]

View File

@ -11,7 +11,6 @@ FEATURES_WANTED = [
"consumption_mask",
"display",
"input",
"optiga",
"powerctl",
"rgb_led",
"usb",

View File

@ -24,7 +24,6 @@ FEATURES_WANTED = [
"display",
"dma2d",
"input",
"optiga",
"power_manager",
"rgb_led",
]
@ -139,7 +138,7 @@ env = Environment(
FEATURES_AVAILABLE = models.configure_board(TREZOR_MODEL, HW_REVISION, FEATURES_WANTED, env, CPPDEFINES_HAL, SOURCE_UNIX, PATH_HAL)
if 'optiga' in FEATURES_AVAILABLE:
if ('LOCKABLE_BOOTLOADER', '1') in CPPDEFINES_HAL:
SOURCE_BOOTLOADER += [
'embed/projects/bootloader/workflow/wf_unlock_bootloader.c',
]

View File

@ -38,9 +38,6 @@
#ifdef USE_PVD
#include <sys/pvd.h>
#endif
#ifdef USE_OPTIGA
#include <sec/optiga_hal.h>
#endif
#ifdef USE_TOUCH
#include <io/touch.h>
#endif
@ -245,10 +242,6 @@ static void drivers_init(secbool manufacturing_mode,
}
#endif
#ifdef USE_OPTIGA
optiga_hal_init();
#endif
#ifdef USE_CONSUMPTION_MASK
consumption_mask_init();
#endif

View File

@ -106,12 +106,8 @@ void resume_secure_drivers() {
secure_aes_init();
#endif
#ifdef USE_OPTIGA
#ifdef BOOTLOADER
optiga_hal_init();
#else
optiga_init_and_configure();
#endif
#endif
#if defined(USE_TROPIC) && !defined(BOOTLOADER)
tropic_init();
#endif