mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
scons: add TREZOR_NOUI support
This commit is contained in:
parent
3dab5e7797
commit
83686bc0c6
@ -43,7 +43,7 @@ script:
|
|||||||
- test "$GOAL" != "stm32" || make build_firmware
|
- test "$GOAL" != "stm32" || make build_firmware
|
||||||
- test "$GOAL" != "stm32" || make sizecheck
|
- test "$GOAL" != "stm32" || make sizecheck
|
||||||
|
|
||||||
- test "$GOAL" != "unix" || make build_unix TREZOR_NOUI=1
|
- test "$GOAL" != "unix" || make build_unix_noui
|
||||||
- test "$GOAL" != "unix" || make test
|
- test "$GOAL" != "unix" || make test
|
||||||
- test "$GOAL" != "unix" || make testpy
|
- test "$GOAL" != "unix" || make testpy
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@ -59,6 +59,9 @@ build_firmware: res build_cross ## build firmware with frozen modules
|
|||||||
build_unix: ## build unix port
|
build_unix: ## build unix port
|
||||||
$(SCONS) build/unix/micropython
|
$(SCONS) build/unix/micropython
|
||||||
|
|
||||||
|
build_unix_noui: ## build unix port without UI support
|
||||||
|
$(SCONS) build/unix/micropython TREZOR_NOUI=1
|
||||||
|
|
||||||
build_cross: ## build mpy-cross port
|
build_cross: ## build mpy-cross port
|
||||||
$(MAKE) -C vendor/micropython/mpy-cross $(CROSS_PORT_OPTS)
|
$(MAKE) -C vendor/micropython/mpy-cross $(CROSS_PORT_OPTS)
|
||||||
|
|
||||||
|
@ -258,6 +258,10 @@ env.Replace(
|
|||||||
] + CPPDEFINES_MOD,
|
] + CPPDEFINES_MOD,
|
||||||
ASPPFLAGS='$CFLAGS $CCFLAGS', )
|
ASPPFLAGS='$CFLAGS $CCFLAGS', )
|
||||||
|
|
||||||
|
if ARGUMENTS.get('TREZOR_NOUI', 0):
|
||||||
|
env.Append(
|
||||||
|
CPPDEFINES='TREZOR_NOUI', )
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
PYTHON='python',
|
PYTHON='python',
|
||||||
MAKEQSTRDATA='$PYTHON vendor/micropython/py/makeqstrdata.py',
|
MAKEQSTRDATA='$PYTHON vendor/micropython/py/makeqstrdata.py',
|
||||||
|
Loading…
Reference in New Issue
Block a user