mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
16 lines
377 B
Bash
Executable File
16 lines
377 B
Bash
Executable File
#!/bin/bash
|
|
CURDIR=$(pwd)
|
|
|
|
|
|
for i in messages types storage ; do
|
|
|
|
# Compile .proto files to python2 modules using google protobuf library
|
|
cd $CURDIR/../../trezor-common/protob
|
|
protoc --python_out=$CURDIR/pb2/ -I/usr/include -I. $i.proto
|
|
|
|
# Convert google protobuf library to trezor's internal format
|
|
cd $CURDIR
|
|
./pb2py $i ../src/trezor/messages/
|
|
done
|
|
|