Skip to content

Commit

Permalink
customized params
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Apr 30, 2024
1 parent 8f6fc7d commit 5e9c362
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions makefiles/Makefile.devices
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#*******************************************************************************
# Ledger App
# (c) 2018 - 2023 Zondax AG
# (c) 2018 - 2024 Zondax AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,11 @@
# limitations under the License.
#*******************************************************************************

INSTALLER_NAME ?= installer
ICON_NAME ?= icon
ELF_NAME ?= app

#######################################
ifeq ($(TARGET_NAME),TARGET_NANOS)
ifeq ($(HAVE_SWAP),1)
APP_LOAD_PARAMS += --appFlags 0x800
Expand All @@ -26,40 +31,41 @@ ifneq ($(NANOS_STACK_SIZE),)
$(error NANOS_STACK_SIZE is deprecated. Remove NANOS_STACK_SIZE definition in app/Makefile)
endif

ICONNAME:=$(CURDIR)/nanos_icon.gif
OUTPUT_ELF ?= $(CURDIR)/output/app_s.elf
OUTPUT_INSTALLER := $(CURDIR)/pkg/installer_s.sh
ICONNAME:=$(CURDIR)/nanos_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_s.elf
OUTPUT_INSTALLER := $(CURDIR)/pkg/$(INSTALLER_NAME)_s.sh
endif

#######################################
ifeq ($(TARGET_NAME),TARGET_NANOX)
ifeq ($(HAVE_SWAP),1)
APP_LOAD_PARAMS += --appFlags 0xA00
else
APP_LOAD_PARAMS += --appFlags 0x200
endif
ICONNAME:=$(CURDIR)/nanox_icon.gif
OUTPUT_ELF ?= $(CURDIR)/output/app_x.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/installer_x.sh
ICONNAME:=$(CURDIR)/nanox_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_x.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/$(INSTALLER_NAME)_x.sh
endif

#######################################
ifeq ($(TARGET_NAME),TARGET_NANOS2)
ifeq ($(HAVE_SWAP),1)
APP_LOAD_PARAMS += --appFlags 0x800
else
APP_LOAD_PARAMS += --appFlags 0x000
endif
ICONNAME:=$(CURDIR)/nanox_icon.gif
OUTPUT_ELF ?= $(CURDIR)/output/app_s2.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/installer_s2.sh
ICONNAME:=$(CURDIR)/nanox_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_s2.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/$(INSTALLER_NAME)_s2.sh
endif

#######################################
ifeq ($(TARGET_NAME),TARGET_STAX)
ifeq ($(HAVE_SWAP),1)
APP_LOAD_PARAMS += --appFlags 0xA00
else
APP_LOAD_PARAMS += --appFlags 0x200
endif
ICONNAME:=$(CURDIR)/stax_icon.gif
OUTPUT_ELF ?= $(CURDIR)/output/app_stax.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/installer_stax.sh
ICONNAME:=$(CURDIR)/stax_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_stax.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/$(INSTALLER_NAME)_stax.sh
endif
#######################################

0 comments on commit 5e9c362

Please sign in to comment.