mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-20 20:31:06 +00:00
travis: fix build for old protobuf
This commit is contained in:
parent
8a6dd3c764
commit
4b8ac90d10
@ -27,6 +27,7 @@ script:
|
|||||||
- make
|
- make
|
||||||
- make -C bootloader
|
- make -C bootloader
|
||||||
- make -C fastflash
|
- make -C fastflash
|
||||||
|
- sed -i '/, deprecated = true/d' firmware/protob/messages.proto # protobuf 2.5 compatibility :-/
|
||||||
- make -C firmware/protob
|
- make -C firmware/protob
|
||||||
- make -C firmware
|
- make -C firmware
|
||||||
- make -C demo
|
- make -C demo
|
||||||
|
@ -25,7 +25,7 @@ def handle_message(message, extension):
|
|||||||
bootloader = options.Extensions[wire_bootloader]
|
bootloader = options.Extensions[wire_bootloader]
|
||||||
tiny = options.Extensions[wire_tiny] and direction == "i"
|
tiny = options.Extensions[wire_tiny] and direction == "i"
|
||||||
|
|
||||||
if options.deprecated:
|
if getattr(options, 'deprecated', None):
|
||||||
return '\t// Message %s is deprecated' % short_name
|
return '\t// Message %s is deprecated' % short_name
|
||||||
if bootloader:
|
if bootloader:
|
||||||
return '\t// Message %s is used in bootloader mode only' % short_name
|
return '\t// Message %s is used in bootloader mode only' % short_name
|
||||||
|
Loading…
Reference in New Issue
Block a user