Skip to content

Commit ab8ff3b

Browse files
committed
Add APEX_P files
1 parent fac821f commit ab8ff3b

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

ledger_secure_sdk_sys/apex_p.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"abi": "eabi",
3+
"arch": "arm",
4+
"c-enum-min-bits": 8,
5+
"data-layout": "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64",
6+
"emit-debug-gdb-scripts": false,
7+
"executables": true,
8+
"frame-pointer": "always",
9+
"linker": "link_wrap.sh",
10+
"linker-flavor": "ld.lld",
11+
"llvm-target": "thumbv8m.main-none-eabi",
12+
"max-atomic-width": 32,
13+
"panic-strategy": "abort",
14+
"pre-link-args": {
15+
"ld.lld": [
16+
"-Tapex_p_layout.ld",
17+
"-Tlink.ld"
18+
],
19+
"ld": [
20+
"-Tapex_p_layout.ld",
21+
"-Tlink.ld"
22+
]
23+
},
24+
"relocation-model": "ropi-rwpi",
25+
"singlethread": true,
26+
"target-pointer-width": "32",
27+
"os": "apex_p",
28+
"target-family": [ "bolos" ]
29+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MEMORY
2+
{
3+
FLASH (rx) : ORIGIN = 0xc0de0000, LENGTH = 400K
4+
DATA (r) : ORIGIN = 0xc0de0000, LENGTH = 400K
5+
SRAM (rwx) : ORIGIN = 0xda7a0000, LENGTH = 40K
6+
}
7+
8+
PAGE_SIZE = 512;
9+
STACK_SIZE = 1500;
10+
END_STACK = ORIGIN(SRAM) + LENGTH(SRAM);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--sysroot="/usr/lib/arm-none-eabi"
2+
-Oz
3+
-g0
4+
-fomit-frame-pointer
5+
-momit-leaf-frame-pointer
6+
-fno-common
7+
-std=gnu99
8+
-fdata-sections
9+
-ffunction-sections
10+
-funsigned-char
11+
-fshort-enums
12+
-mno-unaligned-access
13+
-fropi
14+
-fno-jump-tables
15+
-msoft-float
16+
-frwpi
17+
--target=arm-none-eabi
18+
-mcpu=cortex-m35p+nodsp
19+
-mlittle-endian
20+
-mthumb
21+
-Wno-unused-command-line-argument
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#define HAVE_BLE
2+
#define BLE_COMMAND_TIMEOUT_MS 2000
3+
#define HAVE_BLE_APDU
4+
#define NBGL_QRCODE
5+
#define USE_OS_IO_STACK
6+
#define IO_HID_EP_LENGTH 64
7+
#define HAVE_SPRINTF
8+
#define HAVE_SNPRINTF_FORMAT_U
9+
#define HAVE_IO_USB
10+
#define HAVE_L4_USBLIB
11+
#define IO_USB_MAX_ENDPOINTS 4
12+
#define HAVE_USB_APDU
13+
#define USB_SEGMENT_SIZE 64
14+
#define HAVE_WEBUSB
15+
#define WEBUSB_URL_SIZE_B 0
16+
#define WEBUSB_URL
17+
#define HAVE_IO_U2F
18+
#define OS_IO_SEPROXYHAL
19+
#define STANDARD_APP_SYNC_RAPDU
20+
#define REVAMPED_IO
21+
#define gcc
22+
#define __IO volatile
23+
#define NDEBUG
24+
#define HAVE_BAGL_FONT_NANOTEXT_MEDIUM_18PX
25+
#define HAVE_BAGL_FONT_NANOTEXT_BOLD_18PX
26+
#define HAVE_BAGL_FONT_NANODISPLAY_SEMIBOLD_24PX
27+
#define HAVE_NBGL
28+
#define HAVE_SE_TOUCH
29+
#define HAVE_SE_EINK_DISPLAY
30+
#define NBGL_PAGE
31+
#define NBGL_USE_CASE
32+
#define SCREEN_SIZE_WALLET
33+
#define HAVE_FAST_HOLD_TO_APPROVE
34+
#define HAVE_INAPP_BLE_PAIRING
35+
#define OS_IO_SEPH_BUFFER_SIZE 272
36+
#define HAVE_LEDGER_PKI

0 commit comments

Comments
 (0)