Commit Graph

114 Commits

Author SHA1 Message Date
Roman Zeyde
98ba19b081 build(core): fix Rust library path in SConscript
[no changelog]
2026-01-14 11:16:47 +01:00
cepetr
f0d12275d3 refactor(core): move rsod to io/gfx and sec/rsod
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
47a7ba723f refactor(core): move gfx to io/gfx
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
cd8b7b62d6 refactor(core): move translatations module to io layer
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
2cc46b0f08 refactor(core): move image module to sec layer
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
79dd851f78 refactor(core): move flash driver to sys layer
[no changelog]
2026-01-13 11:18:26 +01:00
cepetr
0fb65da661 refactor(core): move scm_revision to rtl layer
[no changelog]
2026-01-13 11:18:26 +01:00
Roman Zeyde
ef0cb404e3 build(core): remove unused import shlex
[no changelog]
2025-12-22 09:58:05 +01:00
Roman Zeyde
6a637bd49f build(core): exclude embed/rtl/printf.c from non-prodtest builds
Otherwise, nightly CI fails with:
https://github.com/trezor/trezor-firmware/actions/runs/20320385493/job/58431441939

We currently use `printf()` only in prodtest / non-production builds[^1].

[no changelog]

[^1]: https://github.com/trezor/trezor-firmware/pull/6208#discussion_r2610006444
2025-12-18 19:07:27 +01:00
cepetr
80c5444a2e fix(core): remove rsod screens from rtl error handling
[no changelog]
2025-12-16 11:49:07 +01:00
cepetr
f804a1fbe9 feat(core): introduce centralized logging
[no changelog]
2025-12-12 15:18:35 +01:00
cepetr
b1af516621 feat(core): add extended formatting capabilities to snprintf
[no changelog]
2025-12-12 15:18:35 +01:00
cepetr
b969d71cd3 refactor(core): do not use mini_snprintf in board/bootloader
[no changelog]
2025-12-12 15:18:35 +01:00
tychovrahe
4a12681776 refactor(core/bootloader): extract fw check from main.c
[no changelog]
2025-12-08 10:18:11 +01:00
tychovrahe
8e1f07888e fix(core/bootloader): fix battery drain when waiting on unofficial firmware confirmation 2025-10-27 11:36:54 +01:00
cepetr
6f789233fc refactor(core): originate random number always from sec/rng
[no changelog]
2025-09-24 15:51:02 +02:00
cepetr
6096623322 feat(core): use tropic chip entropy in RNG
[no changelog]
2025-09-24 15:51:02 +02:00
cepetr
71d6052652 refactor(core): simplify usb driver api
[no changelog]
2025-08-28 14:57:24 +02:00
cepetr
9951c962c3 refactor(core): remove circular dependencies, new 'storage' feature
[no changelog]
2025-08-12 13:47:39 +02:00
tychovrahe
c3cfb0af2f chore(core): add BLE to bootloader emulator
[no changelog]
2025-07-02 15:10:42 +02:00
tychovrahe
fdc9cfdc94 perf(core/bootloader): remove optiga from bootloader
[no changelog]
2025-07-01 12:24:52 +02:00
tychovrahe
32c4d9f105 refactor(core/bootloader): remove obsolete antiglitch protection
[no changelog]
2025-06-27 16:50:59 +02:00
cepetr
8a115eff03 chore(core): reformat FEATURES_WANTED list for readability
[no changelog]
2025-06-04 16:58:15 +02:00
cepetr
bbb74c03a4 feat(core): introduce secure monitor
[no changelog]
2025-06-04 16:58:15 +02:00
tychovrahe
5a3156d782 refactor(core/unix): use unix common files in scons
[no changelog]
2025-06-02 09:16:53 +02:00
tychovrahe
26dc39b941 feat(core/bootloader): add power management to bootloader
[no changelog]
2025-05-30 14:04:45 +02:00
cepetr
452e63c4fb feat(core): add display feature to SConscript
[no changelog]
2025-05-12 07:57:46 +02:00
cepetr
daa6ea25fb feat(core): add powerctl feature to SConscript
[no changelog]
2025-05-12 07:57:46 +02:00
tychovrahe
37687f1815 feat(core): add BLE to bootloader 2025-05-07 14:54:28 +02:00
Martin Milata
04aeaf0607 build(core/unix): use -g instead of -g3
Prevents flood of warnings on macos.

[no changelog]
2025-04-16 17:27:11 +02:00
cepetr
ced0a1462e feat(core): emulate hw jpeg decoder using libjpeg
[no changelog]
2025-04-04 12:59:44 +02:00
cepetr
b9d15cb343 feat(core): introduce system-level event polling
[no changelog]
2025-04-01 10:00:26 +02:00
cepetr
271f029be7 fix(core): fix emulator build on macOS
[no changelog]
2025-04-01 10:00:26 +02:00
tychovrahe
8e0e3a1787 refactor(core): complete bootloader refactoring 2025-03-24 14:31:14 +01:00
Roman Zeyde
90d7713592 build(core): fix RUST_PRINT_TYPES_SIZES passing to SConscript.firmware
Use a list to collect RUSTFLAGS, to prevent overwriting them.

Also:
- fix a typo in `SConscript.unix` (it was using `firmware` build directory)
- use keyword arguments for better readability
- reformat Rust library build command string

[no changelog]
2025-03-13 18:18:48 +02:00
tychovrahe
57789c7121 refactor(core): remove fonts and no longer used drawing functions from C
[no changelog]
2025-02-11 11:25:18 +01:00
tychovrahe
1700841856 refactor(core): unify way how rust is added to build
[no changelog]
2025-02-11 11:25:18 +01:00
Martin Milata
dadff32f39 build(core): use internal model names everywhere
TREZOR_MODEL=T and TREZOR_MODEL=R

no longer work, please use

  TREZOR_MODEL=T2T1 and TREZOR_MODEL=T2B1

[no changelog]
2025-01-13 16:24:35 +01:00
Andrew Kozlik
83a96f7a5a feat(core): Randomize SCM_REVISION address in firmware
[no changelog]
2025-01-03 10:23:41 +01:00
matejcik
b35854471b build(core): improve CPPDEFINES quoting
Here we change all FOO=VALUE defines to be tuples ("FOO", "VALUE").
Also, VALUE is always the raw string you want to end up in the C file,
instead of attempting to shell-escape it while specifying.

By all rights scons _should_ be using shlex.quote() on the CPPDEFINES,
but it doesn't, so we hack it by specifying the define prefix as `-D'`
and suffix as `'`. That way the arguments in shell are '-escaped, and
we're (currently) not using ' in any argument value so this should work
fine.

At the same time, when passing the flags to cargo, we can shlex.quote
the whole thing and get the right strings passed all the way into
build.rs -- as long as no argument contains a comma, which is the split
character...
2024-11-21 14:33:52 +01:00
cepetr
089db2cadf refactor(core): restructure embed folder
[no changelog]
2024-11-18 09:41:02 +01:00
cepetr
d4286ff584 chore(core): remove legacy drawing code (c)
[no changelog]
2024-11-13 12:15:38 +01:00
cepetr
4929ca1c66 fix(core): fix bootloader_emu macOS build
[no changelog]
2024-11-04 14:05:37 +01:00
tychovrahe
42396dd007 refactor(core): make USE_xxx defines global
[no changelog]
2024-10-31 10:27:08 +01:00
cepetr
0bacbdf355 fix(emulator): fix bootloader emulator build on MacOS
[no changelog]
2024-10-30 14:18:34 +01:00
cepetr
12a9dca5e1 refactor(emulator): improve SDL event polling logic
[no changelog]
2024-10-22 09:06:21 +02:00
cepetr
5845c665af refactor(core): refactor unit properties detection
[no changelog]
2024-10-22 08:30:49 +02:00
tychovrahe
d71d9e9c34 feat(core): add T3W1 emulator build
[no changelog]
2024-10-09 15:06:40 +02:00
tychovrahe
7374700c0a refactor(core): ui configuration in build scripts
[no changelog]
2024-09-27 22:02:08 +02:00
tychovrahe
94af4d98f0 chore(core): clean sconscripts
[no changelog]
2024-09-27 09:49:20 +02:00