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

build: new make targets for generated files

This commit is contained in:
matejcik 2019-05-17 14:21:26 +02:00
parent f8446c3e00
commit e69d98a533

View File

@ -47,3 +47,27 @@ defs_check: ## check validity of coin definitions and protobuf files
python3 common/tools/support.py check --ignore-missing
python3 common/protob/check.py
python3 common/protob/graph.py common/protob/*.proto
## code generation commands:
mocks: ## generate mock python headers from C modules
./core/tools/build_mocks
mocks_check: ## check validity of mock python headers
./core/tools/build_mocks --check
flake8 core/mocks/generated
templates: ## rebuild coin lists from definitions in common
./core/tools/build_templates
templates_check: ## check that coin lists are up to date
./core/tools/build_templates --check
protobuf: ## generate python protobuf headers
./tools/build_protobuf
protobuf_check: ## check that generated protobuf headers are up to date
./tools/build_protobuf --check
gen: mocks templates protobuf ## regeneate auto-generated files from sources
gen_check: mocks_check templates_check protobuf_check ## check validity of auto-generated files