mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-21 04:41:18 +00:00
fixup! feat(core): add libtropic to unix build
This commit is contained in:
parent
fac69b398e
commit
590382bd53
@ -60,30 +60,6 @@ def configure(
|
||||
features_available.append("optiga")
|
||||
defines += [("USE_OPTIGA", "1")]
|
||||
|
||||
if "tropic" in features_wanted:
|
||||
sources += [
|
||||
"embed/sec/secret/unix/secret.c",
|
||||
"embed/sec/tropic/tropic_transport.c",
|
||||
"vendor/libtropic/src/libtropic.c",
|
||||
"vendor/libtropic/src/lt_crc16.c",
|
||||
"vendor/libtropic/src/lt_hkdf.c",
|
||||
"vendor/libtropic/src/lt_l1.c",
|
||||
"vendor/libtropic/src/lt_l1_port_wrap.c",
|
||||
"vendor/libtropic/src/lt_l2.c",
|
||||
"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/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"]
|
||||
features_available.append("tropic")
|
||||
defines += ["USE_TROPIC=1"]
|
||||
|
||||
if "input" in features_wanted:
|
||||
sources += ["embed/io/touch/unix/touch.c"]
|
||||
paths += ["embed/io/touch/inc"]
|
||||
|
@ -52,6 +52,30 @@ def configure(
|
||||
features_available.append("optiga")
|
||||
defines += [("USE_OPTIGA", "1")]
|
||||
|
||||
if "tropic" in features_wanted:
|
||||
sources += [
|
||||
"embed/sec/secret/unix/secret.c",
|
||||
"embed/sec/tropic/tropic_transport.c",
|
||||
"vendor/libtropic/src/libtropic.c",
|
||||
"vendor/libtropic/src/lt_crc16.c",
|
||||
"vendor/libtropic/src/lt_hkdf.c",
|
||||
"vendor/libtropic/src/lt_l1.c",
|
||||
"vendor/libtropic/src/lt_l1_port_wrap.c",
|
||||
"vendor/libtropic/src/lt_l2.c",
|
||||
"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/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"]
|
||||
features_available.append("tropic")
|
||||
defines += ["USE_TROPIC=1"]
|
||||
|
||||
if "input" in features_wanted:
|
||||
sources += ["embed/io/touch/unix/touch.c"]
|
||||
paths += ["embed/io/touch/inc"]
|
||||
|
Loading…
Reference in New Issue
Block a user