1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

Updating resources on build automatically

This commit is contained in:
slush0 2016-09-29 13:35:00 +02:00
parent 588b7b5c70
commit 1d7d408bc8
2 changed files with 11 additions and 7 deletions

View File

@ -8,27 +8,30 @@ help: ## show this help
vendor: ## update git submodules
git submodule update --init
res: ## update resources
python3 tools/res_collect.py
build: build_stmhal build_unix build_cross ## build stmhal, unix and mpy-cross micropython ports
build_stmhal: vendor ## build stmhal port
build_stmhal: vendor res ## build stmhal port
make -C vendor/micropython/stmhal
build_stmhal_debug: vendor ## build stmhal port with debug symbols
build_stmhal_debug: vendor res ## build stmhal port with debug symbols
make -C vendor/micropython/stmhal
build_stmhal_frozen: vendor 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 FROZEN_MPY_DIR=../../../src
build_unix: vendor ## build unix port
build_unix: vendor res ## build unix port
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1
build_unix_debug: vendor ## build unix port with debug symbols
build_unix_debug: vendor res ## build unix port with debug symbols
make -C vendor/micropython/unix MICROPY_FORCE_32BIT=1 DEBUG=1
build_unix_frozen: vendor build_cross ## build unix port with frozen modules (from /src)
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
build_cross: vendor ## build mpy-cross port
build_cross: vendor res ## build mpy-cross port
make -C vendor/micropython/mpy-cross MICROPY_FORCE_32BIT=1
build_bootloader: vendor ## build bootloader

View File

@ -3,6 +3,7 @@ import os
resources = {}
os.chdir(os.path.dirname(__file__))
os.chdir('../src/')
def process_file(name):