1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-09 20:56:05 +00:00
trezor-firmware/core
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
..
.changelog.d chore(core): show the last pin digit for a while 2024-11-18 14:05:04 +01:00
assets feat(core): allow for going back to previous word in recovery process 2024-02-19 22:05:04 +01:00
embed chore(core): remove residual optiga_hal symlink 2024-11-21 13:04:13 +01:00
mocks refactor(core/mercury): separate upy args parsing 2024-11-19 16:19:31 +01:00
prof feat(core): adjust the coverage file output for multicore tests 2023-03-09 16:50:32 +01:00
site_scons build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
src refactor(core): get rid of description_font_green 2024-11-19 13:36:01 +02:00
tests feat(tests): adjust firmware hash calc test to expect different hashes based on model 2024-11-14 09:30:20 +01:00
tools refactor(core): restructure embed folder 2024-11-18 09:41:02 +01:00
translations refactor(core): restructure embed folder 2024-11-18 09:41:02 +01:00
vendor fix(core): add missing stm32u5 symlinks 2024-03-19 11:33:23 +01:00
.coveragerc chore(core): silence false alarms in coverage report 2023-03-09 16:50:32 +01:00
.dockerignore MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
.gitignore feat(core): add support for gdb scripts to emulator 2023-05-11 21:02:21 +02:00
.towncrier.template.md docs(core): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
asan_blacklist.txt core: asan config 2019-06-27 19:09:55 +02:00
asan_suppressions.txt ci: Suppress libSDL memory leaks. 2022-01-19 15:22:03 +01:00
AUTHORS MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
CHANGELOG.md docs(core): changelog for 2.8.5 2024-11-05 21:18:48 +01:00
CHANGELOG.T2B1.md docs(core): changelog for 2.8.5 2024-11-05 21:18:48 +01:00
CHANGELOG.T2T1.md docs(core): changelog for 2.8.5 2024-11-05 21:18:48 +01:00
CHANGELOG.T3B1.md docs(core): changelog for 2.8.5 2024-11-05 21:18:48 +01:00
CHANGELOG.T3T1.md docs(core): changelog for 2.8.5 2024-11-05 21:18:48 +01:00
CHANGELOG.unreleased docs(core): use towncrier for generating CHANGELOG.md 2021-05-04 14:18:01 +02:00
COPYING MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
emu.py feat(core): add support for gdb scripts to emulator 2023-05-11 21:02:21 +02:00
emu.sh core: remove src1 2020-08-03 15:59:57 +02:00
Makefile build(core): introduce common definition of all makefile vars that get passed as scons vars 2024-11-21 14:33:52 +01:00
pyrightconfig.json feat(tools): make pyright_tool more user-friendly 2022-03-23 14:55:05 +01:00
README.md docs: add Safe 3 and Safe 5 in documentation (#4228) 2024-09-30 10:15:35 +02:00
SConscript.boardloader build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.bootloader build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.bootloader_ci build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.bootloader_emu build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.firmware build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.kernel build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.prodtest build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.reflash build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConscript.unix build(core): improve CPPDEFINES quoting 2024-11-21 14:33:52 +01:00
SConstruct refactor(core): migrate coreapp into firmware 2024-09-24 12:21:53 +02:00
towncrier.toml chore: generate-changelog.py adjustments 2024-07-12 20:43:26 +00:00

Trezor Core

Firmware currently running on Model T and the Trezor Safe family.

See docs/core for more info.