|
|
|
@ -485,18 +485,6 @@ elif TREZOR_MODEL in ('T3T1',):
|
|
|
|
|
else:
|
|
|
|
|
raise ValueError('Unknown Trezor model')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if 'sd_card' in FEATURES_AVAILABLE:
|
|
|
|
|
SDCARD = True
|
|
|
|
|
else:
|
|
|
|
|
SDCARD = False
|
|
|
|
|
|
|
|
|
|
if 'optiga' in FEATURES_AVAILABLE:
|
|
|
|
|
OPTIGA = True
|
|
|
|
|
else:
|
|
|
|
|
OPTIGA = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env.Tool('micropython')
|
|
|
|
|
|
|
|
|
|
env.Replace(
|
|
|
|
@ -664,7 +652,7 @@ if FROZEN:
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/*.py',
|
|
|
|
|
exclude=[
|
|
|
|
|
SOURCE_PY_DIR + 'trezor/sdcard.py',
|
|
|
|
|
] if not SDCARD else []
|
|
|
|
|
] if 'sd_card' not in FEATURES_AVAILABLE else []
|
|
|
|
|
))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/crypto/*.py'))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/ui/*.py'))
|
|
|
|
@ -701,7 +689,7 @@ if FROZEN:
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'storage/*.py',
|
|
|
|
|
exclude=[
|
|
|
|
|
SOURCE_PY_DIR + 'storage/sd_salt.py',
|
|
|
|
|
] if not SDCARD else []
|
|
|
|
|
] if 'sd_card' not in FEATURES_AVAILABLE else []
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/messages/__init__.py'))
|
|
|
|
@ -726,16 +714,16 @@ if FROZEN:
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*.py',
|
|
|
|
|
exclude=[
|
|
|
|
|
SOURCE_PY_DIR + 'apps/common/sdcard.py',
|
|
|
|
|
] if not SDCARD else []
|
|
|
|
|
] if "sd_card" not in FEATURES_AVAILABLE else []
|
|
|
|
|
))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/debug/*.py'))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/homescreen/*.py'))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*.py',
|
|
|
|
|
exclude=[
|
|
|
|
|
SOURCE_PY_DIR + 'apps/management/sd_protect.py',
|
|
|
|
|
] if not SDCARD else [] + [
|
|
|
|
|
] if "sd_card" not in FEATURES_AVAILABLE else [] + [
|
|
|
|
|
SOURCE_PY_DIR + 'apps/management/authenticate_device.py',
|
|
|
|
|
] if not OPTIGA else [])
|
|
|
|
|
] if "optiga" not in FEATURES_AVAILABLE else [])
|
|
|
|
|
)
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*/*.py'))
|
|
|
|
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/misc/*.py'))
|
|
|
|
@ -804,7 +792,9 @@ if FROZEN:
|
|
|
|
|
source_dir=SOURCE_PY_DIR,
|
|
|
|
|
bitcoin_only=BITCOIN_ONLY,
|
|
|
|
|
backlight='backlight' in FEATURES_AVAILABLE,
|
|
|
|
|
optiga=OPTIGA,
|
|
|
|
|
optiga='optiga' in FEATURES_AVAILABLE,
|
|
|
|
|
use_button='button' in FEATURES_AVAILABLE,
|
|
|
|
|
use_touch='touch' in FEATURES_AVAILABLE,
|
|
|
|
|
ui_layout=UI_LAYOUT,
|
|
|
|
|
thp=THP,
|
|
|
|
|
)
|
|
|
|
|