1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

fix(core): bitcoin-only all_modules.py

This commit is contained in:
Martin Milata 2021-09-28 00:43:11 +02:00
parent 13417d7e5a
commit 70bb0ee04f
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1 @@
Remove altcoin message definitions from bitcoin-only build.

View File

@ -280,8 +280,6 @@ apps.bitcoin.sign_tx.tx_info
import apps.bitcoin.sign_tx.tx_info
apps.bitcoin.sign_tx.tx_weight
import apps.bitcoin.sign_tx.tx_weight
apps.bitcoin.sign_tx.zcash
import apps.bitcoin.sign_tx.zcash
apps.bitcoin.verification
import apps.bitcoin.verification
apps.bitcoin.verify_message
@ -381,7 +379,7 @@ import apps.misc.sign_identity
apps.workflow_handlers
import apps.workflow_handlers
if utils.BITCOIN_ONLY:
if not utils.BITCOIN_ONLY:
trezor.enums.BinanceOrderSide
import trezor.enums.BinanceOrderSide
trezor.enums.BinanceOrderType
@ -436,6 +434,8 @@ if utils.BITCOIN_ONLY:
import apps.binance.layout
apps.binance.sign_tx
import apps.binance.sign_tx
apps.bitcoin.sign_tx.zcash
import apps.bitcoin.sign_tx.zcash
apps.cardano
import apps.cardano
apps.cardano.address

View File

@ -28,6 +28,7 @@ ALTCOINS = (
"stellar",
"tezos",
"webauthn",
"zcash",
)
pyfiles = chain.from_iterable(sorted(SRCDIR.glob(p)) for p in PATTERNS)
@ -78,7 +79,7 @@ ${import_name}
import ${import_name}
% endfor
if utils.BITCOIN_ONLY:
if not utils.BITCOIN_ONLY:
% for import_name in imports_altcoin:
${import_name}
import ${import_name}