mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-28 09:08:07 +00:00
add build_cross and build_frozen make targets
This commit is contained in:
parent
0653ea7edc
commit
5968eb3f5f
20
Makefile
20
Makefile
@ -3,22 +3,34 @@
|
|||||||
STMHAL_BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2
|
STMHAL_BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2
|
||||||
|
|
||||||
help: ## show this help
|
help: ## show this help
|
||||||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36mmake %-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36mmake %-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||||
|
|
||||||
vendor: ## update git submodules
|
vendor: ## update git submodules
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
build: build_stmhal build_unix ## build both stmhal and unix micropython ports
|
build: build_stmhal build_unix ## build both stmhal and 32-bit unix micropython ports
|
||||||
|
|
||||||
build_stmhal: vendor ## build stmhal port
|
build_stmhal: vendor ## build stmhal port
|
||||||
make -C vendor/micropython/stmhal
|
make -C vendor/micropython/stmhal
|
||||||
|
|
||||||
build_unix: vendor ## build unix port (32-bit)
|
build_unix: vendor ## build 32-bit unix port
|
||||||
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1
|
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1
|
||||||
|
|
||||||
build_unix64: vendor ## build unix port (64-bit)
|
build_cross: vendor ## build 32-bit mpy-cross port
|
||||||
|
make -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
|
||||||
|
|
||||||
|
build_frozen: vendor build_cross ## build 32-bit unix port with frozen modules (from vendor/micropython/unix/frozen)
|
||||||
|
make -C vendor/micropython/unix FROZEN_MPY_DIR=frozen MICROPY_FORCE_32BIT=1
|
||||||
|
|
||||||
|
build_unix64: vendor ## build 64-bit unix port
|
||||||
make -C vendor/micropython/unix
|
make -C vendor/micropython/unix
|
||||||
|
|
||||||
|
build_cross64: vendor ## build 64-bit mpy-cross port
|
||||||
|
make -C vendor/micropython/mpy-cross
|
||||||
|
|
||||||
|
build_frozen64: vendor build_cross ## build 64-bit unix port with frozen modules (from vendor/micropython/unix/frozen)
|
||||||
|
make -C vendor/micropython/unix FROZEN_MPY_DIR=frozen
|
||||||
|
|
||||||
run: ## run unix port
|
run: ## run unix port
|
||||||
cd src ; ../vendor/micropython/unix/micropython
|
cd src ; ../vendor/micropython/unix/micropython
|
||||||
|
|
||||||
|
@ -17,10 +17,8 @@
|
|||||||
|
|
||||||
#if defined STM32_HAL_H
|
#if defined STM32_HAL_H
|
||||||
#include "display-stmhal.h"
|
#include "display-stmhal.h"
|
||||||
#elif defined UNIX
|
|
||||||
#include "display-unix.h"
|
|
||||||
#else
|
#else
|
||||||
#error Unsupported port. Only STMHAL and UNIX ports are supported.
|
#include "display-unix.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// common display functions
|
// common display functions
|
||||||
|
Loading…
Reference in New Issue
Block a user