1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-12 08:20:56 +00:00

build: parallel build by default

This commit is contained in:
Pavol Rusnak 2016-10-12 18:29:01 +02:00
parent aa942dc3a9
commit 57fbd4dfc2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -2,6 +2,9 @@
STMHAL_BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2
JOBS=4
MAKE=make -j $(JOBS)
help: ## show this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36mmake %-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@ -14,28 +17,28 @@ res: ## update resources
build: build_stmhal build_unix build_cross ## build stmhal, unix and mpy-cross micropython ports
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
$(MAKE) -C vendor/micropython/stmhal
build_stmhal_frozen: vendor res build_cross ## build stmhal port with frozen modules (from /src)
make -C vendor/micropython/stmhal FROZEN_MPY_DIR=../../../src
$(MAKE) -C vendor/micropython/stmhal FROZEN_MPY_DIR=../../../src
build_unix: vendor ## build 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 unix port with debug symbols
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 DEBUG=1
$(MAKE) -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 DEBUG=1
build_unix_frozen: vendor res build_cross ## build unix port with frozen modules (from /src)
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 FROZEN_MPY_DIR=../../../src
$(MAKE) -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 FROZEN_MPY_DIR=../../../src
build_cross: vendor ## build mpy-cross port
make -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
$(MAKE) -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
build_bootloader: vendor ## build bootloader
make -C vendor/micropython/stmhal -f Makefile.bootloader
$(MAKE) -C vendor/micropython/stmhal -f Makefile.bootloader
run: ## run unix port
cd src ; ../vendor/micropython/unix/micropython
@ -46,13 +49,13 @@ emu: ## run emulator
clean: clean_stmhal clean_unix clean_cross ## clean all builds
clean_stmhal: ## clean stmhal build
make -C vendor/micropython/stmhal clean
$(MAKE) -C vendor/micropython/stmhal clean
clean_unix: ## clean unix build
make -C vendor/micropython/unix clean
$(MAKE) -C vendor/micropython/unix clean
clean_cross: ## clean mpy-cross build
make -C vendor/micropython/mpy-cross clean
$(MAKE) -C vendor/micropython/mpy-cross clean
test: ## run unit tests
cd src/tests ; ./run_tests.sh