forked from LedgerHQ/app-tezos-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
75 lines (54 loc) · 1.63 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
ifeq ($(BOLOS_SDK),)
$(error Environment variable BOLOS_SDK is not set)
endif
include $(BOLOS_SDK)/Makefile.defines
APPNAME = "Tezos Baking"
APP_SOURCE_PATH = src
VARIANT_PARAM = APP
VARIANT_VALUES = tezos_baking
# OPTION
ENABLE_BLUETOOTH = 1
ENABLE_NBGL_QRCODE = 1
# APP_LOAD_PARAMS
HAVE_APPLICATION_FLAG_GLOBAL_PIN = 1
# No BLS for NANOS
CURVE_APP_LOAD_PARAMS = ed25519 secp256k1 secp256r1 bls12381g1
PATH_APP_LOAD_PARAMS = "44'/1729'"
# VERSION
APPVERSION_M=2
APPVERSION_N=5
APPVERSION_P=1
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
# COMMIT
GIT_DESCRIBE ?= $(shell git describe --tags --abbrev=8 --always --long --dirty 2>/dev/null)
VERSION_TAG ?= $(shell echo "$(GIT_DESCRIBE)" | cut -f1 -d-)
COMMIT ?= $(shell echo "$(GIT_DESCRIBE)" | awk -F'-g' '{print $2}' | sed 's/-dirty/*/')
DEFINES += COMMIT=\"$(COMMIT)\"
DEFINES += HAVE_BLS
# Only warn about version tags if specified/inferred
ifeq ($(VERSION_TAG),)
$(warning VERSION_TAG not checked)
else
ifneq (v$(APPVERSION), $(VERSION_TAG))
$(warning Version-Tag Mismatch: v$(APPVERSION) version and $(VERSION_TAG) tag)
endif
endif
ifeq ($(COMMIT),)
$(warning COMMIT not specified and could not be determined with git from "$(GIT_DESCRIBE)")
else
$(info COMMIT=$(COMMIT))
endif
# ICONS
ICON_NANOS = icons/nanos_app_tezos.gif
ICON_NANOX = icons/nanox_app_tezos.gif
ICON_NANOSP = $(ICON_NANOX)
ICON_STAX = icons/stax_app_tezos.gif
ICON_FLEX = icons/flex_app_tezos.gif
################
# Default rule #
################
all: show-app default
.PHONY: show-app
show-app:
@echo ">>>>> Building at commit $(COMMIT)"
include $(BOLOS_SDK)/Makefile.standard_app