mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-04 21:48:17 +00:00
chore(core): adapt SConscripts to THP needs
This commit is contained in:
parent
7775340c30
commit
7e557a8844
@ -578,14 +578,23 @@ if FROZEN:
|
|||||||
] if not EVERYTHING else []
|
] if not EVERYTHING else []
|
||||||
))
|
))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/*.py'))
|
if THP:
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py'))
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/thp/*.py'))
|
||||||
|
if not THP or PYOPT == '0':
|
||||||
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py'))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'storage/*.py',
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/*.py'))
|
||||||
exclude=[
|
|
||||||
SOURCE_PY_DIR + 'storage/sd_salt.py',
|
|
||||||
] if not SDCARD else []
|
exclude_list = []
|
||||||
))
|
if 'sd_card' not in FEATURES_AVAILABLE:
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/sd_salt.py')
|
||||||
|
if THP and PYOPT == '1':
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/cache_codec.py')
|
||||||
|
if not THP:
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/cache_thp.py')
|
||||||
|
|
||||||
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'storage/*.py', exclude=exclude_list))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/messages/__init__.py'))
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/messages/__init__.py'))
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/*.py',
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/*.py',
|
||||||
|
@ -635,14 +635,23 @@ if FROZEN:
|
|||||||
] if not EVERYTHING else []
|
] if not EVERYTHING else []
|
||||||
))
|
))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/*.py'))
|
if THP:
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py'))
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/thp/*.py'))
|
||||||
|
if not THP or PYOPT == '0':
|
||||||
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py'))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'storage/*.py',
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/*.py'))
|
||||||
exclude=[
|
|
||||||
SOURCE_PY_DIR + 'storage/sd_salt.py',
|
|
||||||
] if 'sd_card' not in FEATURES_AVAILABLE else []
|
exclude_list = []
|
||||||
))
|
if 'sd_card' not in FEATURES_AVAILABLE:
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/sd_salt.py')
|
||||||
|
if THP and PYOPT == '1':
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/cache_codec.py')
|
||||||
|
if not THP:
|
||||||
|
exclude_list.append(SOURCE_PY_DIR + 'storage/cache_thp.py')
|
||||||
|
|
||||||
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'storage/*.py', exclude=exclude_list))
|
||||||
|
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/messages/__init__.py'))
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/messages/__init__.py'))
|
||||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/*.py',
|
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/enums/*.py',
|
||||||
|
Loading…
Reference in New Issue
Block a user