Skip to content

Commit

Permalink
feat: add some extra required fields for loading and deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Sep 18, 2024
1 parent 645ceb4 commit c2c437b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions makefiles/Makefile.devices
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ endif
$(info APP_STACK_MIN_SIZE set to default($(APP_STACK_MIN_SIZE)))
endif

APP_LOAD_PARAMS += --targetVersion= --fileName bin/app.hex --delete --tlv --rootPrivateKey ff701d781f43ce106f72dc26a46b6a83e053b5d07bb3d4ceab79c91ca822a66b
APP_DELETE_PARAMS += --rootPrivateKey ff701d781f43ce106f72dc26a46b6a83e053b5d07bb3d4ceab79c91ca822a66b

#######################################
ifeq ($(TARGET_NAME),TARGET_NANOS)
ifeq ($(HAVE_SWAP),1)
Expand All @@ -47,6 +50,7 @@ APP_LOAD_PARAMS += --appFlags 0xA00
else
APP_LOAD_PARAMS += --appFlags 0x200
endif

ICONNAME:=$(CURDIR)/nanox_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_x.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/$(INSTALLER_NAME)_x.sh
Expand All @@ -58,6 +62,7 @@ APP_LOAD_PARAMS += --appFlags 0x800
else
APP_LOAD_PARAMS += --appFlags 0x000
endif

ICONNAME:=$(CURDIR)/nanox_$(ICON_NAME).gif
OUTPUT_ELF ?= $(CURDIR)/output/$(ELF_NAME)_s2.elf
OUTPUT_INSTALLER:= $(CURDIR)/pkg/$(INSTALLER_NAME)_s2.sh
Expand Down
2 changes: 1 addition & 1 deletion makefiles/Makefile.installer_script
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ create-install-script:
@echo "APPVERSION=\"${APPVERSION}\"" >> $(OUTPUT_INSTALLER)
@echo "APPPATH=\""${APPPATH}"\"" >> $(OUTPUT_INSTALLER)
@echo "LOAD_PARAMS=($$(echo "${APP_LOAD_PARAMS}" | sed -e "s|"${APPNAME}"|\""${APPNAME}"\"|"))" >> $(OUTPUT_INSTALLER)
@echo "DELETE_PARAMS=($$(echo "${COMMON_DELETE_PARAMS}" | sed -e "s|"${APPNAME}"|\""${APPNAME}"\"|"))" >> $(OUTPUT_INSTALLER)
@echo "DELETE_PARAMS=($$(echo "${APP_DELETE_PARAMS}" | sed -e "s|"${APPNAME}"|\""${APPNAME}"\"|"))" >> $(OUTPUT_INSTALLER)
@echo "APPHEX=\"" >> $(OUTPUT_INSTALLER)
@cat $(CURDIR)/bin/app.hex >> $(OUTPUT_INSTALLER)
@echo "\"" >> $(OUTPUT_INSTALLER)
Expand Down

0 comments on commit c2c437b

Please sign in to comment.