mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 12:32:02 +00:00
build: take an optional argument specifying protobuf output directory
This commit is contained in:
parent
40ff849228
commit
d7fb363ffb
@ -1,11 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
OUTDIR=`readlink -f "$1"`
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# set up paths
|
||||
INDEX="__init__.py"
|
||||
GENPATH="../trezorlib/messages"
|
||||
GENPATH="${OUTDIR:-../trezorlib/messages}"
|
||||
PROTO_PATH="../vendor/trezor-common/protob"
|
||||
PROTO_FILES="types messages"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user