mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-16 15:25:47 +00:00
build(core): update build to newer libtropic
* update unix port filename * update USE_TREZOR_CRYPTO flag to LT_USE_TREZOR_CRYPTO
This commit is contained in:
parent
7e64fddaee
commit
d900eb4c54
@ -254,9 +254,6 @@ SOURCE_MOD += [
|
||||
'embed/upymod/modutime.c',
|
||||
]
|
||||
|
||||
CPPDEFINES_MOD += ['USE_TREZOR_CRYPTO']
|
||||
|
||||
|
||||
SOURCE_MICROPYTHON = [
|
||||
'vendor/micropython/extmod/modubinascii.c',
|
||||
'vendor/micropython/extmod/moductypes.c',
|
||||
|
@ -66,7 +66,7 @@ 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",
|
||||
@ -76,8 +76,9 @@ def configure(
|
||||
paths += ["vendor/libtropic/include"]
|
||||
paths += ["vendor/libtropic/src"]
|
||||
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"]
|
||||
|
@ -166,7 +166,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"]
|
||||
|
@ -166,7 +166,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"]
|
||||
|
@ -166,7 +166,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"]
|
||||
|
Loading…
Reference in New Issue
Block a user