Skip to content

Commit 2264f67

Browse files
Merge pull request #458 from LedgerHQ/develop
App release 1.10.3
2 parents 1c024e5 + 5de8726 commit 2264f67

File tree

406 files changed

+2366
-505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+2366
-505
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion

.github/workflows/ci-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ jobs:
128128
jobs-e2e-speculos-tests:
129129
name: Speculos tests
130130
strategy:
131+
fail-fast: false
131132
matrix:
132133
model: ["nanosp", "nanos", "nanox"]
133134

@@ -153,7 +154,7 @@ jobs:
153154
run: |
154155
cd tests/speculos
155156
sudo apt-get update && sudo apt-get install -y qemu-user-static
156-
pip install --extra-index-url https://test.pypi.org/simple/ -r requirements.txt
157+
pip install -r requirements.txt
157158
158159
- name: Run speculos tests
159160
run: |
@@ -171,7 +172,6 @@ jobs:
171172
with:
172173
upload_app_binaries_artifact: "ragger_elfs"
173174
flags: "DEBUG=1 CAL_CI_KEY=1 DOMAIN_NAME_TEST_KEY=1"
174-
run_for_devices: '["nanos", "nanox", "nanosp"]'
175175

176176
jobs-ragger-tests:
177177
name: Run Ragger tests
@@ -180,4 +180,3 @@ jobs:
180180
with:
181181
download_app_binaries_artifact: "ragger_elfs"
182182
test_dir: tests/ragger
183-
run_for_devices: '["nanos", "nanox", "nanosp"]'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Swap functional tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
- develop
9+
pull_request:
10+
11+
jobs:
12+
job_functional_tests:
13+
uses: LedgerHQ/app-exchange/.github/workflows/reusable_swap_functional_tests.yml@develop
14+
with:
15+
branch_for_ethereum: ${{ github.ref }}
16+
test_filter: '"ETH or eth or Ethereum or ethereum"'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ bin/
55
debug/
66
dep/
77
obj/
8+
build/
89

910
# Python
1011
*.pyc

CHANGELOG.md

Lines changed: 27 additions & 0 deletions

Makefile

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'"
3434

3535
APPVERSION_M=1
3636
APPVERSION_N=10
37-
APPVERSION_P=2
37+
APPVERSION_P=3
3838
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
3939
APP_LOAD_FLAGS= --appFlags 0xa40 --dep Ethereum:$(APPVERSION)
4040

@@ -54,6 +54,7 @@ include ./makefile_conf/chain/$(CHAIN).mk
5454
else
5555
$(error Unsupported CHAIN - use $(SUPPORTED_CHAINS))
5656
endif
57+
CFLAGS += -DAPPNAME=\"$(APPNAME)\"
5758

5859
#########
5960
# Other #
@@ -65,6 +66,12 @@ DEFINES += $(DEFINES_LIB)
6566
#prepare hsm generation
6667
ifeq ($(TARGET_NAME),TARGET_NANOS)
6768
ICONNAME=icons/nanos_app_$(CHAIN).gif
69+
else ifeq ($(TARGET_NAME),TARGET_STAX)
70+
ICONNAME=icons/stax_app_$(CHAIN).gif
71+
DEFINES += ICONGLYPH=C_stax_$(CHAIN)_64px
72+
DEFINES += ICONBITMAP=C_stax_$(CHAIN)_64px_bitmap
73+
DEFINES += ICONGLYPH_SMALL=C_stax_$(CHAIN)
74+
GLYPH_FILES += $(ICONNAME)
6875
else
6976
ICONNAME=icons/nanox_app_$(CHAIN).gif
7077
endif
@@ -79,9 +86,10 @@ all: default
7986
############
8087

8188
DEFINES += OS_IO_SEPROXYHAL
82-
DEFINES += HAVE_BAGL HAVE_SPRINTF HAVE_SNPRINTF_FORMAT_U
89+
DEFINES += HAVE_SPRINTF HAVE_SNPRINTF_FORMAT_U
8390
DEFINES += HAVE_IO_USB HAVE_L4_USBLIB IO_USB_MAX_ENDPOINTS=4 IO_HID_EP_LENGTH=64 HAVE_USB_APDU
8491
DEFINES += LEDGER_MAJOR_VERSION=$(APPVERSION_M) LEDGER_MINOR_VERSION=$(APPVERSION_N) LEDGER_PATCH_VERSION=$(APPVERSION_P)
92+
DEFINES += BUILD_YEAR=\"$(shell date +%Y)\"
8593

8694
# U2F
8795
DEFINES += HAVE_U2F HAVE_IO_U2F
@@ -90,30 +98,41 @@ DEFINES += USB_SEGMENT_SIZE=64
9098
DEFINES += BLE_SEGMENT_SIZE=32 #max MTU, min 20
9199
DEFINES += UNUSED\(x\)=\(void\)x
92100
DEFINES += APPVERSION=\"$(APPVERSION)\"
93-
DEFINES += HAVE_UX_FLOW
94101

95102
#WEBUSB_URL = www.ledgerwallet.com
96103
#DEFINES += HAVE_WEBUSB WEBUSB_URL_SIZE_B=$(shell echo -n $(WEBUSB_URL) | wc -c) WEBUSB_URL=$(shell echo -n $(WEBUSB_URL) | sed -e "s/./\\\'\0\\\',/g")
97104

98105
DEFINES += HAVE_WEBUSB WEBUSB_URL_SIZE_B=0 WEBUSB_URL=""
99106

100-
ifeq ($(TARGET_NAME),TARGET_NANOX)
107+
ifneq (,$(filter $(TARGET_NAME),TARGET_NANOX TARGET_STAX))
101108
DEFINES += HAVE_BLE BLE_COMMAND_TIMEOUT_MS=2000
102109
DEFINES += HAVE_BLE_APDU # basic ledger apdu transport over BLE
110+
SDK_SOURCE_PATH += lib_blewbxx lib_blewbxx_impl
103111
endif
104112

105113
ifeq ($(TARGET_NAME),TARGET_NANOS)
106-
DEFINES += IO_SEPROXYHAL_BUFFER_SIZE_B=72
107-
DEFINES += HAVE_WALLET_ID_SDK
114+
DEFINES += IO_SEPROXYHAL_BUFFER_SIZE_B=128
108115
else
109116
DEFINES += IO_SEPROXYHAL_BUFFER_SIZE_B=300
117+
endif
118+
119+
ifeq ($(TARGET_NAME),TARGET_STAX)
120+
DEFINES += NBGL_QRCODE
121+
else
122+
DEFINES += HAVE_BAGL
123+
DEFINES += HAVE_UX_FLOW
124+
ifeq ($(TARGET_NAME),TARGET_NANOS)
125+
DEFINES += HAVE_WALLET_ID_SDK
126+
DEFINES += BAGL_WIDTH=128 BAGL_HEIGHT=32
127+
else
110128
DEFINES += HAVE_GLO096
111-
DEFINES += HAVE_BAGL BAGL_WIDTH=128 BAGL_HEIGHT=64
129+
DEFINES += BAGL_WIDTH=128 BAGL_HEIGHT=64
112130
DEFINES += HAVE_BAGL_ELLIPSIS # long label truncation feature
113131
DEFINES += HAVE_BAGL_FONT_OPEN_SANS_REGULAR_11PX
114132
DEFINES += HAVE_BAGL_FONT_OPEN_SANS_EXTRABOLD_11PX
115133
DEFINES += HAVE_BAGL_FONT_OPEN_SANS_LIGHT_16PX
116134
endif
135+
endif
117136

118137
# Enables direct data signing without having to specify it in the settings. Useful when testing with speculos.
119138
ALLOW_DATA:=0
@@ -167,7 +186,6 @@ endif
167186
endif
168187

169188
# Enabling debug PRINTF
170-
DEBUG:=0
171189
ifneq ($(DEBUG),0)
172190
DEFINES += HAVE_STACK_OVERFLOW_CHECK
173191
ifeq ($(TARGET_NAME),TARGET_NANOS)
@@ -204,13 +222,11 @@ endif
204222

205223
CC := $(CLANGPATH)clang
206224

207-
#CFLAGS += -O0
208-
CFLAGS += -Oz -Wno-format-invalid-specifier -Wno-format-extra-args
225+
CFLAGS += -Wno-format-invalid-specifier -Wno-format-extra-args
209226

210227
AS := $(GCCPATH)arm-none-eabi-gcc
211228

212229
LD := $(GCCPATH)arm-none-eabi-gcc
213-
LDFLAGS += -O3 -Os
214230
LDLIBS += -lm -lgcc -lc
215231

216232
# import rules to compile glyphs(/pone)
@@ -219,11 +235,12 @@ include $(BOLOS_SDK)/Makefile.glyphs
219235
### variables processed by the common makefile.rules of the SDK to grab source files and include dirs
220236
APP_SOURCE_PATH += src_common src src_features src_plugins
221237
SDK_SOURCE_PATH += lib_stusb lib_stusb_impl lib_u2f
238+
ifeq ($(TARGET_NAME),TARGET_STAX)
239+
APP_SOURCE_PATH += src_nbgl
240+
else
222241
SDK_SOURCE_PATH += lib_ux
223-
ifeq ($(TARGET_NAME),TARGET_NANOX)
224-
SDK_SOURCE_PATH += lib_blewbxx lib_blewbxx_impl
225-
endif
226242
APP_SOURCE_PATH += src_bagl
243+
endif
227244

228245
### initialize plugin SDK submodule if needed, rebuild it, and warn if a difference is noticed
229246
ifeq ($(CHAIN),ethereum)

README.md

Lines changed: 2 additions & 2 deletions

ethereum-plugin-sdk

glyphs/badge_transaction.gif

-339 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)