1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 01:18:28 +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
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
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
.coveragerc
.dockerignore
.gitignore
.towncrier.template.md
asan_blacklist.txt
asan_suppressions.txt
AUTHORS
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
COPYING
emu.py
emu.sh
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
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

Trezor Core

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

See docs/core for more info.