1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 15:30:55 +00:00

Merge pull request #345 from saleemrashid/nem-cleanup

Use symlink to trezor-common for nem_mosaics.json
This commit is contained in:
Tomas Susanka 2018-05-10 10:30:07 +02:00 committed by GitHub
commit d7ccc74de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -120,5 +120,5 @@ clean::
endef
$(eval $(call GENERATE_CODE,coin_info,coins.json,coin_info.c))
$(eval $(call GENERATE_CODE,nem_mosaics,../vendor/trezor-common/defs/nem/nem_mosaics.json,nem_mosaics.c))
$(eval $(call GENERATE_CODE,nem_mosaics,nem_mosaics.json,nem_mosaics.c))
$(eval $(call GENERATE_CODE,bl_data,../bootloader/bootloader.bin))

1
firmware/nem_mosaics.json Symbolic link
View File

@ -0,0 +1 @@
../vendor/trezor-common/defs/nem/nem_mosaics.json

View File

@ -109,7 +109,7 @@ if __name__ == "__main__":
sys.path.insert(0, "protob")
import types_pb2 as types
messages = json.load(open("../vendor/trezor-common/defs/nem/nem_mosaics.json"))
messages = json.load(open("nem_mosaics.json"))
with open("nem_mosaics.h", "w+") as f:
f.write(HEADER_TEMPLATE.format(