Skip to content

Commit

Permalink
add app flags for swap
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Aug 16, 2023
1 parent 3ffe648 commit b1c053a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions makefiles/Makefile.devices
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
#*******************************************************************************

ifeq ($(TARGET_NAME),TARGET_NANOS)
ifeq ($(HAVE_SWAP),1)
APP_LOAD_PARAMS += --appFlags 0x800
else
APP_LOAD_PARAMS += --appFlags 0x000
endif

ifeq ($(NANOS_STACK_SIZE),)
APP_STACK_SIZE:=3150
Expand All @@ -30,21 +34,33 @@ OUTPUT_INSTALLER := $(CURDIR)/pkg/installer_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
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
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
Expand Down

0 comments on commit b1c053a

Please sign in to comment.