You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/site_scons/models/T2T1/__init__.py

21 lines
523 B

from __future__ import annotations
from typing import Optional
from .emulator import configure as emul
from .trezor_t import configure
def configure_board(
revision: Optional[str],
features_wanted: list[str],
env: dict, # type: ignore
defines: list[str | tuple[str, str]],
sources: list[str],
paths: list[str],
):
if revision == "emulator":
return emul(env, features_wanted, defines, sources, paths)
else:
return configure(env, features_wanted, defines, sources, paths)