mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 13:42:41 +00:00
build: update protobuf build process and update vendored definitions
This commit is contained in:
parent
2f3a32f8e8
commit
9dc86f3955
3
setup.py
3
setup.py
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
import glob
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
@ -65,7 +66,7 @@ class PrebuildCommand(Command):
|
|||||||
|
|
||||||
# regenerate messages
|
# regenerate messages
|
||||||
try:
|
try:
|
||||||
proto_srcs = [os.path.join(TREZOR_COMMON, "protob", name + ".proto") for name in ("messages", "types")]
|
proto_srcs = glob.glob(os.path.join(TREZOR_COMMON, "protob", "*.proto"))
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
os.path.join(TREZOR_COMMON, "protob", "pb2py"),
|
os.path.join(TREZOR_COMMON, "protob", "pb2py"),
|
||||||
"-o", os.path.join(CWD, "trezorlib", "messages"),
|
"-o", os.path.join(CWD, "trezorlib", "messages"),
|
||||||
|
2
vendor/trezor-common
vendored
2
vendor/trezor-common
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 6575418de93d2ca5fd67dd306f19ee736ebfd7b7
|
Subproject commit 2301f7034c1b7a3d1b0be5d4447d432593649a1e
|
Loading…
Reference in New Issue
Block a user