mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 23:38:09 +00:00
add debug targets to Makefile
This commit is contained in:
parent
7d4fbd07ea
commit
9ef076f137
11
Makefile
11
Makefile
@ -3,7 +3,7 @@
|
|||||||
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-Z0-9_-]+:.*?## / {printf "\033[36mmake %-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36mmake %-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||||
|
|
||||||
vendor: ## update git submodules
|
vendor: ## update git submodules
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
@ -13,9 +13,15 @@ build: build_stmhal build_unix ## build both stmhal and 32-bit unix micropython
|
|||||||
build_stmhal: vendor ## build stmhal port
|
build_stmhal: vendor ## build stmhal port
|
||||||
make -C vendor/micropython/stmhal
|
make -C vendor/micropython/stmhal
|
||||||
|
|
||||||
|
build_stmhal_debug: vendor ## build stmhal port with debug symbols
|
||||||
|
make -C vendor/micropython/stmhal
|
||||||
|
|
||||||
build_unix: vendor ## build 32-bit unix port
|
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_unix_debug: vendor ## build 32-bit unix port with debug symbols
|
||||||
|
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 DEBUG=1
|
||||||
|
|
||||||
build_cross: vendor ## build 32-bit mpy-cross port
|
build_cross: vendor ## build 32-bit mpy-cross port
|
||||||
make -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
|
make -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
|
||||||
|
|
||||||
@ -25,6 +31,9 @@ build_frozen: vendor build_cross ## build 32-bit unix port with frozen modules (
|
|||||||
build_unix64: vendor ## build 64-bit unix port
|
build_unix64: vendor ## build 64-bit unix port
|
||||||
make -C vendor/micropython/unix
|
make -C vendor/micropython/unix
|
||||||
|
|
||||||
|
build_unix64_debug: vendor ## build 64-bit unix port with debug symbols
|
||||||
|
make -C vendor/micropython/unix
|
||||||
|
|
||||||
build_cross64: vendor ## build 64-bit mpy-cross port
|
build_cross64: vendor ## build 64-bit mpy-cross port
|
||||||
make -C vendor/micropython/mpy-cross
|
make -C vendor/micropython/mpy-cross
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user