1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

trezorhal: add to Makefile

This commit is contained in:
Jan Pochyla 2017-02-20 11:36:07 +01:00
parent bf878ff15e
commit edae88932a

View File

@ -26,6 +26,9 @@ build_stmhal_debug: vendor build_cross ## build stmhal port with debug symbols
build_stmhal_frozen: vendor res build_cross ## build stmhal port with frozen modules (from /src) build_stmhal_frozen: vendor res build_cross ## build stmhal port with frozen modules (from /src)
$(MAKE) -C vendor/micropython/stmhal BOARD=$(BOARD) FROZEN_MPY_DIR=../../../src $(MAKE) -C vendor/micropython/stmhal BOARD=$(BOARD) FROZEN_MPY_DIR=../../../src
build_trezorhal_frozen: vendor res build_cross ## build trezorhal port with frozen modules (from /src)
$(MAKE) -C vendor/micropython/trezorhal FROZEN_MPY_DIR=../../../src
build_bootloader: vendor ## build bootloader build_bootloader: vendor ## build bootloader
$(MAKE) -C vendor/micropython/stmhal -f Makefile.bootloader BOARD=$(BOARD) BUILD=build-$(BOARD)_bootloader $(MAKE) -C vendor/micropython/stmhal -f Makefile.bootloader BOARD=$(BOARD) BUILD=build-$(BOARD)_bootloader
@ -47,11 +50,14 @@ run: ## run unix port
emu: ## run emulator emu: ## run emulator
./emu.sh ./emu.sh
clean: clean_stmhal clean_bootloader clean_unix clean_cross ## clean all builds clean: clean_stmhal clean_trezorhal clean_bootloader clean_unix clean_cross ## clean all builds
clean_stmhal: ## clean stmhal build clean_stmhal: ## clean stmhal build
$(MAKE) -C vendor/micropython/stmhal clean BOARD=$(BOARD) $(MAKE) -C vendor/micropython/stmhal clean BOARD=$(BOARD)
clean_trezorhal: ## clean trezorhal build
$(MAKE) -C vendor/micropython/trezorhal clean
clean_bootloader: ## clean stmhal build clean_bootloader: ## clean stmhal build
$(MAKE) -C vendor/micropython/stmhal -f Makefile.bootloader clean BOARD=$(BOARD) BUILD=build-$(BOARD)_bootloader $(MAKE) -C vendor/micropython/stmhal -f Makefile.bootloader clean BOARD=$(BOARD) BUILD=build-$(BOARD)_bootloader