firmware/shared/manifest.py
2026-06-22 09:28:30 -04:00

82 lines
1.4 KiB
Python

# Freeze everything in this list.
# - not optimized because we need asserts to work
# - for specific boards, see manifest_{mk4,q1}.py
freeze_as_mpy('', [
'actions.py',
'address_explorer.py',
'auth.py',
'backups.py',
'block_height.py',
'callgate.py',
'ccc.py',
'chains.py',
'choosers.py',
'compat7z.py',
'countdowns.py',
'descriptor.py',
'drv_entro.py',
'exceptions.py',
'export.py',
'files.py',
'flow.py',
'ftux.py',
'glob.py',
'history.py',
'imptask.py',
'login.py',
'main.py',
'menu.py',
'mk4.py',
'msgsign.py',
'multisig.py',
'ndef.py',
'nfc.py',
'numpad.py',
'nvstore.py',
'opcodes.py',
'ownership.py',
'paper.py',
'pincodes.py',
'psbt.py',
'psram.py',
'pwsave.py',
'qrs.py',
'queues.py',
'random.py',
'seed.py',
'selftest.py',
'serializations.py',
'sffile.py',
'stash.py',
'tapsigner.py',
'trick_pins.py',
'usb.py',
'utils.py',
'ux.py',
'vdisk.py',
'version.py',
'wallet.py',
'web2fa.py',
'wif.py',
'xor_seed.py'
], opt=0)
# Optimize data-like files, since no need to debug them.
freeze_as_mpy('', [
'charcodes.py',
'public_constants.py',
'sigheader.py',
], opt=3)
# Maybe include test code.
import os
if int(os.environ.get('DEBUG_BUILD', 0)):
freeze_as_mpy('', [
'dev_helper.py',
'h.py',
'sim_display.py',
'usb_test_commands.py',
], opt=0)
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")