1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-15 09:02:02 +00:00

core: move base functions from "homescreen" app to "base"

This commit is contained in:
matejcik 2020-04-14 12:21:07 +02:00 committed by matejcik
parent 8859d103f4
commit d5e45c02bb
5 changed files with 5 additions and 3 deletions

View File

@ -486,6 +486,7 @@ if FROZEN:
]) ])
) )
SOURCE_PY.append(SOURCE_PY_DIR + 'apps/base.py')
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/debug/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/debug/*.py'))

View File

@ -454,6 +454,7 @@ if FROZEN:
]) ])
) )
SOURCE_PY.append(SOURCE_PY_DIR + 'apps/base.py')
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/common/*/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/debug/*.py')) SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/debug/*.py'))

View File

@ -15,7 +15,7 @@ usb.bus.open()
def _boot_apps() -> None: def _boot_apps() -> None:
# load applications # load applications
import apps.homescreen import apps.base
import apps.management import apps.management
import apps.bitcoin import apps.bitcoin
import apps.misc import apps.misc
@ -37,7 +37,7 @@ def _boot_apps() -> None:
import apps.debug import apps.debug
# boot applications # boot applications
apps.homescreen.boot() apps.base.boot()
apps.management.boot() apps.management.boot()
apps.bitcoin.boot() apps.bitcoin.boot()
apps.misc.boot() apps.misc.boot()

View File

@ -5,7 +5,7 @@ from storage import cache
from trezor.messages.Initialize import Initialize from trezor.messages.Initialize import Initialize
from trezor.wire import DUMMY_CONTEXT from trezor.wire import DUMMY_CONTEXT
from apps.homescreen import handle_Initialize from apps.base import handle_Initialize
KEY = 99 KEY = 99