Skip to content

Commit

Permalink
build(core): fix CI bootloader build for T2B1
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
mmilata committed Nov 14, 2023
1 parent 75b3e54 commit 5725050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/SConscript.bootloader_ci
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if TREZOR_MODEL in ('1', 'DISC1'):
)
Return()

FEATURES_WANTED = ["input", "usb"]
FEATURES_WANTED = ["input", "rgb_led", "consumption_mask", "usb", "optiga"]

CCFLAGS_MOD = ''
CPPPATH_MOD = []
Expand Down Expand Up @@ -152,6 +152,7 @@ env.Replace(
'vendor/nanopb',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[
'BOOTLOADER',
'TREZOR_MODEL_'+TREZOR_MODEL,
'USE_HAL_DRIVER',
'PB_FIELD_16BIT',
Expand Down
2 changes: 1 addition & 1 deletion core/embed/bootloader_ci/messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ int process_msg_FirmwareUpload(uint8_t iface_num, uint32_t msg_size,
read_image_header(chunk_buffer + vhdr.hdrlen, FIRMWARE_IMAGE_MAGIC,
FIRMWARE_IMAGE_MAXSIZE);

if (received_hdr != (const image_header *)chunk_buffer + vhdr.hdrlen) {
if (received_hdr != (const image_header *)(chunk_buffer + vhdr.hdrlen)) {
MSG_SEND_INIT(Failure);
MSG_SEND_ASSIGN_VALUE(code, FailureType_Failure_ProcessError);
MSG_SEND_ASSIGN_STRING(message, "Invalid firmware header");
Expand Down

0 comments on commit 5725050

Please sign in to comment.