Skip to content

Commit

Permalink
Remove stax from guidelines enforcer, add stax icon
Browse files Browse the repository at this point in the history
  • Loading branch information
relatko committed Sep 12, 2023
1 parent d4cf90e commit 937b5b9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/guidelines_enforcer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ jobs:
guidelines_enforcer:
name: Call Ledger guidelines_enforcer
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1
with:
run_for_devices: '["nanos", "nanox", "nanosp"]'
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ WORDS = "abandon abandon abandon abandon abandon abandon abandon abandon abandon
PIN = 5555

SPECULOS_MODEL_SWITCH=nanos
NANO_ICON_GIF=nanos_icon.gif
NANO_ICON_GIF=icon_fio_nanos.gif
BOLOS_SDK_DIRECTORY=/opt/nanos-secure-sdk
TARGET_NAME=TARGET_NANOS
TEST_DEVICE=nanos
SPECULOS_SDK_STRING= --sdk 2.1
ifeq ($(TARGET_DEVICE), NANO_X)
$(info Targeting NanoX)
SPECULOS_MODEL_SWITCH=nanox
NANO_ICON_GIF=nanox_icon.gif
NANO_ICON_GIF=icon_fio_nanox.gif
BOLOS_SDK_DIRECTORY=/opt/nanox-secure-sdk
TARGET_NAME=TARGET_NANOX
TEST_DEVICE=nanox
Expand All @@ -46,13 +46,23 @@ endif
ifeq ($(TARGET_DEVICE), NANO_SP)
$(info Targeting NanoSPlus)
SPECULOS_MODEL_SWITCH=nanosp
NANO_ICON_GIF=nanox_icon.gif
NANO_ICON_GIF=icon_fio_nanox.gif
BOLOS_SDK_DIRECTORY=/opt/nanosplus-secure-sdk
TARGET_NAME=TARGET_NANOS2
TEST_DEVICE=nanosp
SPECULOS_SDK_STRING=
endif

ifeq ($(TARGET_DEVICE), STAX)
$(info Targeting STAX)
SPECULOS_MODEL_SWITCH=stax
NANO_ICON_GIF=icon_fio_stax.png
BOLOS_SDK_DIRECTORY=/opt/stax-secure-sdk
TARGET_NAME=TARGET_STAX
TEST_DEVICE=stax
SPECULOS_SDK_STRING=
endif


ifeq ($(BOLOS_SDK),)
include $(CURDIR)/MakefileContainer.mk
Expand Down
8 changes: 6 additions & 2 deletions MakefileLocal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ APP_LOAD_PARAMS += $(COMMON_LOAD_PARAMS)
ifeq ($(TARGET_NAME),TARGET_NANOS)
ICONNAME=icon_fio_nanos.gif
else
ICONNAME=icon_fio_nanox.gif
ifeq ($(TARGET_NAME),TARGET_STAX)
ICONNAME=icon_fio_stax.png
else
ICONNAME=icon_fio_nanox.gif
endif
endif

############
Expand Down Expand Up @@ -179,7 +183,7 @@ include $(BOLOS_SDK)/Makefile.rules
dep/%.d: %.c Makefile

listvariants:
@echo VARIANTS COIN fio
@echo VARIANTS COIN FIO

##############
# Style #
Expand Down
2 changes: 1 addition & 1 deletion MakefileSpeculos.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
#*******************************************************************************

SPECULOS_IMAGE = speculos:sha-d6dee99
SPECULOS_IMAGE = speculos:sha-6a34680

define run_announce
@perl -e 'use Time::HiRes; use POSIX; $$ts = sprintf qq[%f], Time::HiRes::time(); ($$f) = $$ts =~ m~(\....)~; printf qq[%s%s %s make: %s\n], POSIX::strftime("%H:%M:%S", gmtime), $$f, q[-] x 126, $$ARGV[0];' "$(1)"
Expand Down
Binary file added icon_fio_stax.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 icon_fio_stax_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test-integration/speculos-buttons-and-snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const fioWaitingForCommandsSHA = {

const fioWarningDevelSHA = {
"nanos": "sha256:df7553b0b614d9d3ff0dcb5facde9e1e7e308e2691be9669d206a241f958a999",
"nanox": "sha256:2bb665c41bcb7e7abda8fc30255f28b35144d26997f314074290eb24b23e37fa", //TODO?
"nanox": "sha256:2bb665c41bcb7e7abda8fc30255f28b35144d26997f314074290eb24b23e37fa",
"nanosp": "sha256:2bb665c41bcb7e7abda8fc30255f28b35144d26997f314074290eb24b23e37fa",
}

const fioThreeDotsSHA = {
"nanos": "sha256:77d4d2651ac7327eee85219c9d25da7b40cf476fad1a67e7eeacb74b37221efe",
"nanox": "sha256:c650a1475392bdc2ff484341c43bb3aa532ea5262ddb9331f219a24314bc014f", //TODO?
"nanox": "sha256:c650a1475392bdc2ff484341c43bb3aa532ea5262ddb9331f219a24314bc014f",
"nanosp": "sha256:c650a1475392bdc2ff484341c43bb3aa532ea5262ddb9331f219a24314bc014f",
}

Expand Down

0 comments on commit 937b5b9

Please sign in to comment.