1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-02 16:35:55 +00:00
This commit is contained in:
matejcik 2025-03-20 14:46:12 +00:00 committed by GitHub
commit 364f151fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 9 deletions

View File

@ -256,8 +256,6 @@ SOURCE_MOD_TROPIC += [
'vendor/libtropic/src/libtropic.c',
]
CPPDEFINES_MOD += ['USE_TREZOR_CRYPTO']
CPPPATH_MOD += ['vendor/libtropic/src/', 'vendor/libtropic/include/']
SOURCE_MICROPYTHON = [

View File

@ -65,16 +65,16 @@ def configure(
"vendor/libtropic/src/lt_l2_frame_check.c",
"vendor/libtropic/src/lt_l3.c",
"vendor/libtropic/src/lt_random.c",
"vendor/libtropic/hal/port/unix/lt_port_unix.c",
"vendor/libtropic/hal/port/unix/lt_port_unix_tcp.c",
"vendor/libtropic/hal/crypto/trezor_crypto/lt_crypto_trezor_aesgcm.c",
"vendor/libtropic/hal/crypto/trezor_crypto/lt_crypto_trezor_ed25519.c",
"vendor/libtropic/hal/crypto/trezor_crypto/lt_crypto_trezor_sha256.c",
"vendor/libtropic/hal/crypto/trezor_crypto/lt_crypto_trezor_x25519.c",
]
paths += ["embed/sec/tropic/inc"]
defines += ["USE_TREZOR_CRYPTO"]
defines += [("LT_USE_TREZOR_CRYPTO", "1")]
features_available.append("tropic")
defines += ["USE_TROPIC=1"]
defines += [("USE_TROPIC", "1")]
if "input" in features_wanted:
sources += ["embed/io/touch/unix/touch.c"]

View File

@ -163,7 +163,7 @@ def configure(
paths += ["vendor/libtropic/include"]
paths += ["vendor/libtropic/src"]
defines += [("USE_TROPIC", "1")]
defines += [("USE_TREZOR_CRYPTO", "1")]
defines += [("LT_USE_TREZOR_CRYPTO", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]

View File

@ -163,7 +163,7 @@ def configure(
paths += ["vendor/libtropic/include"]
paths += ["vendor/libtropic/src"]
defines += [("USE_TROPIC", "1")]
defines += [("USE_TREZOR_CRYPTO", "1")]
defines += [("LT_USE_TREZOR_CRYPTO", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]

View File

@ -163,7 +163,7 @@ def configure(
paths += ["vendor/libtropic/include"]
paths += ["vendor/libtropic/src"]
defines += [("USE_TROPIC", "1")]
defines += [("USE_TREZOR_CRYPTO", "1")]
defines += [("LT_USE_TREZOR_CRYPTO", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]

2
vendor/libtropic vendored

@ -1 +1 @@
Subproject commit 09ca073d8456520f9e12ef5c90bc99571fda8920
Subproject commit 96dd86d96acf31aea10d303677c217cbf222a8dd