Simplified adding new clones

Removed dead code from the app (was safeguarded by #ifdefs of macros
that weren't defined)
This commit is contained in:
Alexandre Paillier
2023-09-12 15:07:07 +02:00
parent 14ba60c797
commit 015842d4e5
62 changed files with 119 additions and 704 deletions

View File

@@ -55,6 +55,7 @@ else
$(error Unsupported CHAIN - use $(SUPPORTED_CHAINS))
endif
CFLAGS += -DAPPNAME=\"$(APPNAME)\"
DEFINES += CHAINID_COINNAME=\"$(TICKER)\" CHAIN_ID=$(CHAIN_ID)
#########
# Other #
@@ -65,15 +66,15 @@ DEFINES += $(DEFINES_LIB)
#prepare hsm generation
ifeq ($(TARGET_NAME),TARGET_NANOS)
ICONNAME=icons/nanos_app_$(CHAIN_ID).gif
ICONNAME=icons/nanos_app_chain_$(CHAIN_ID).gif
else ifeq ($(TARGET_NAME),TARGET_STAX)
ICONNAME=icons/stax_app_$(CHAIN_ID).gif
DEFINES += ICONGLYPH=C_stax_$(CHAIN_ID)_64px
DEFINES += ICONBITMAP=C_stax_$(CHAIN_ID)_64px_bitmap
DEFINES += ICONGLYPH_SMALL=C_stax_$(CHAIN_ID)
ICONNAME=icons/stax_app_chain_$(CHAIN_ID).gif
DEFINES += ICONGLYPH=C_stax_chain_$(CHAIN_ID)_64px
DEFINES += ICONBITMAP=C_stax_chain_$(CHAIN_ID)_64px_bitmap
DEFINES += ICONGLYPH_SMALL=C_stax_chain_$(CHAIN_ID)
GLYPH_FILES += $(ICONNAME)
else
ICONNAME=icons/nanox_app_$(CHAIN_ID).gif
ICONNAME=icons/nanox_app_chain_$(CHAIN_ID).gif
endif
################
@@ -223,8 +224,6 @@ ifneq ($(NOCONSENT),)
DEFINES += NO_CONSENT
endif
#DEFINES += HAVE_TOKENS_LIST # Do not activate external ERC-20 support yet
##############
# Compiler #
##############