Skip to content

Commit

Permalink
Merge pull request #40 from LedgerHQ/master
Browse files Browse the repository at this point in the history
LedgerHQ changes
  • Loading branch information
3noch authored Jan 17, 2019
2 parents 6bbd328 + cb85201 commit 9216b97
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ $(error Environment variable BOLOS_SDK is not set)
endif
include $(BOLOS_SDK)/Makefile.defines

ifeq ($(BAKING_APP),Y)
ifeq ($(APP),)
APP=tezos_wallet
endif

ifeq ($(APP),tezos_baking)
APPNAME = "Tezos Baking"
else
else ifeq ($(APP),tezos_wallet)
APPNAME = "Tezos Wallet"
endif
APP_LOAD_PARAMS=--appFlags 0 --curve ed25519 --curve secp256k1 --curve prime256r1 --path "44'/1729'" $(COMMON_LOAD_PARAMS)
Expand Down Expand Up @@ -59,15 +63,21 @@ DEFINES += COMMIT=\"$(COMMIT)\" APPVERSION_N=$(APPVERSION_N) APPVERSION_P=$(AP
##############
# Compiler #
##############
ifneq ($(BOLOS_ENV),)
GCCPATH := $(BOLOS_ENV)/gcc-arm-none-eabi-5_3-2016q1/bin/
CLANGPATH := $(BOLOS_ENV)/clang-arm-fropi/bin/
endif

CC := $(CLANGPATH)clang

ifeq ($(BAKING_APP),)
ifeq ($(APP),tezos_wallet)
CFLAGS += -O3 -Os -Wall -Wextra
endif
ifeq ($(BAKING_APP),Y)
else ifeq ($(APP),tezos_baking)
CFLAGS += -DBAKING_APP -O3 -Os -Wall -Wextra
else
ifeq ($(filter clean,$(MAKECMDGOALS)),)
$(error Unsupported APP - use tezos_wallet, tezos_baking)
endif
endif

AS := $(GCCPATH)arm-none-eabi-gcc
Expand All @@ -84,7 +94,7 @@ APP_SOURCE_PATH += src
SDK_SOURCE_PATH += lib_stusb lib_stusb_impl

### U2F support (wallet app only)
ifeq ($(BAKING_APP),)
ifeq ($(APP), tezos_wallet)
SDK_SOURCE_PATH += lib_u2f lib_stusb_impl

DEFINES += USB_SEGMENT_SIZE=64
Expand All @@ -107,3 +117,6 @@ include $(BOLOS_SDK)/Makefile.rules

#add dependency on custom makefile filename
dep/%.d: %.c Makefile

listvariants:
@echo VARIANTS APP tezos_wallet tezos_baking
Binary file added tezos_baking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tezos_wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9216b97

Please sign in to comment.