Skip to content

Make link-wrap.sh Linux and macOS cross-platform compatible #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 190 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
2bcc1d6
Make link-wrap.sh Linux and macOS cross-platform compatible
harrychin Oct 15, 2024
9d13e15
Passing arg0 to c_main makes the SDK start as lib
yogh333 Oct 17, 2024
3721248
Swap: check_address cmd handler
yogh333 Oct 18, 2024
7e3a6b2
check_address parameters fixed cast
yogh333 Oct 22, 2024
aaba010
Merge branch 'master' into master
harrychin Dec 3, 2024
2d310f7
Retrieve and provide app CHECK_ADDRESS parameters
yogh333 Dec 5, 2024
f42efe0
Retrieve and provide app GET_PRINTABLE_AMOUNT parameters
yogh333 Dec 5, 2024
e35734b
swap module (libcall use case)
yogh333 Dec 5, 2024
ed340e8
Swap start signing tx usecase
yogh333 Dec 10, 2024
e51c879
Manage lib vs std boot
yogh333 Dec 12, 2024
dd96b2a
Add debug feature to activate/deactivate traces
yogh333 Dec 12, 2024
b5cd3c9
Add swap_return() function to wrap unsafe calls
yogh333 Dec 13, 2024
b4aa79f
Signing spinner only for Stax/Flex
yogh333 Dec 13, 2024
993cec1
Bump new versions
yogh333 Dec 13, 2024
0c28f1c
Force Cargo.lock version to 3
yogh333 Dec 13, 2024
52bec2a
Merge pull request #225 from LedgerHQ/y333_241014/swap_support
yogh333 Dec 16, 2024
b65c669
appflags should be set at device level
yogh333 Dec 20, 2024
c1fe1ee
remove backward compatibility code
yogh333 Dec 20, 2024
72c22a9
0x000 is default appflags
yogh333 Dec 20, 2024
6a607b4
Merge pull request #227 from LedgerHQ/y333_20122024/appflags_device_m…
yogh333 Jan 3, 2025
f5f6cbc
Add customized cfgs
yogh333 Dec 16, 2024
69c011a
Disallow references to static mut
yogh333 Dec 17, 2024
857c6d3
Update API_LEVEL when cloning C SDK locally
yogh333 Dec 17, 2024
8ae0f4d
Remove workaround for managing both API_LEVEL_5 and API_LEVEL > 5
yogh333 Dec 17, 2024
467b490
Add Near app
yogh333 Dec 17, 2024
42666d1
Fix Near app branch: use develop
yogh333 Dec 17, 2024
5e7bd18
Bump versions
yogh333 Dec 17, 2024
63c08b1
Merge pull request #226 from LedgerHQ/y333_161224/migration_to_update…
yogh333 Jan 3, 2025
5a0fb47
Increase SPI buffer size
yogh333 Jan 14, 2025
e70e8be
Bump version
yogh333 Jan 14, 2025
3641db6
Update SPI buffer size (missed)
yogh333 Jan 14, 2025
73c7117
Merge pull request #231 from LedgerHQ/y333/fix_bluetooth_spi
yogh333 Jan 14, 2025
061c674
Add fees management in swap
yogh333 Jan 14, 2025
16189cf
Merge pull request #232 from LedgerHQ/y333/swap_add_fees_mngt
yogh333 Jan 14, 2025
7404ac6
Add buffer overflow checks
yogh333 Jan 15, 2025
2c9cbc0
Move unsafe to each unsafe calls
yogh333 Jan 15, 2025
9af72fc
Bump version
yogh333 Jan 15, 2025
13fb0f3
Swap: use constants for all buffer sizes
yogh333 Jan 15, 2025
f44743d
Return empty string if error
yogh333 Jan 16, 2025
a290ffe
Merge pull request #233 from LedgerHQ/y333_150124/swap_sdk_review
yogh333 Jan 16, 2025
ebaae5f
Add choice screen to ask user to confirm tx in generic review example.
agrojean-ledger Aug 21, 2024
0ce695d
run cargo fmt
yogh333 Jan 20, 2025
bfef93f
Merge pull request #181 from LedgerHQ/add-choice-to-generic-review-ex…
yogh333 Jan 20, 2025
c51c495
Pin code management: when device is locked, returned 0x5515 error
yogh333 Jan 8, 2025
e85f931
Update build all apps workflow
yogh333 Jan 8, 2025
c8d5062
Remove nanos from CI tests
yogh333 Jan 8, 2025
58b6c20
Exclude Nano S for pin management
yogh333 Jan 8, 2025
83573d8
Revert remove Nano S (should be done in another PR
yogh333 Jan 8, 2025
ec33697
Implement heartbeat function in sys crate
yogh333 Jan 9, 2025
ba12114
Bump versions
yogh333 Jan 22, 2025
296440f
Merge pull request #229 from LedgerHQ/y333_08012024/update_pin_code_mngt
yogh333 Jan 23, 2025
f7f58c3
Generate glyphs automatically when building sys crate
yogh333 Jan 23, 2025
c9ed921
Bump SDK version
yogh333 Jan 24, 2025
4c93f64
Improved code readability
yogh333 Jan 24, 2025
9277831
Merge pull request #235 from LedgerHQ/y333/better_glyphs_management
yogh333 Jan 24, 2025
c476847
Update NBGL spinner: previous and new strings shall be stored to enab…
yogh333 Jan 29, 2025
d8b1037
Update NBGL spinner
yogh333 Jan 29, 2025
1d93d8e
Merge pull request #236 from LedgerHQ/y333/nbgl_spinner_integration
yogh333 Jan 31, 2025
f1ee541
Remove C SDK NBGL UX sync dep
yogh333 Jan 31, 2025
b790f1f
Merge pull request #237 from LedgerHQ/y333/remove_nbgl_ux_sync
yogh333 Jan 31, 2025
d81bc7e
Fix sysroot fallback
apaillier-ledger Feb 4, 2025
0196fab
Version bump
apaillier-ledger Feb 4, 2025
1b289c6
Merge pull request #238 from LedgerHQ/fix/apa/sysroot_fallback
apaillier-ledger Feb 4, 2025
5db6239
Use libc from C SDK for each device
yogh333 Feb 6, 2025
8ea8bf4
defautl path for Nano S
yogh333 Feb 6, 2025
3cb435d
Bump version
yogh333 Feb 6, 2025
67b1ffe
Merge pull request #240 from LedgerHQ/y333/link_with_proper_libc
yogh333 Feb 6, 2025
d5c423e
Fix pin lock issue during io reset
yogh333 Feb 4, 2025
ceb82de
Exclude Nano S
yogh333 Feb 4, 2025
42efbd7
Fix SRAM sizes for S+ and X
yogh333 Feb 5, 2025
07fd458
Bump versions
yogh333 Feb 12, 2025
ad901b5
Merge pull request #239 from LedgerHQ/y333/avoid_unwanted_pin_lock_du…
yogh333 Feb 12, 2025
6136cd1
Move custom target files into cargo-ledger crate
yogh333 Feb 5, 2025
2dfc857
Update cargo ledger setup
yogh333 Feb 5, 2025
4b01fd8
Manage unknown device
yogh333 Feb 6, 2025
7c47bb9
Move custom targets and link files into sys crate
yogh333 Feb 6, 2025
19bf4b1
Use RUST_NIGHTLY env variable for setup target files
yogh333 Feb 6, 2025
b1e46a1
Fix C SDK info
yogh333 Feb 7, 2025
28ef844
Use single file for glyphs
yogh333 Feb 10, 2025
4386359
Enable NBGL for Nano S+ and Nano X
yogh333 Feb 10, 2025
4524cbb
Cleanup header files
yogh333 Feb 11, 2025
49105be
Update header for each target
yogh333 Feb 11, 2025
a8fd126
Add build.rs time monitoring
yogh333 Feb 11, 2025
963d75d
Update CFLAGS (same as C SDK)
yogh333 Feb 12, 2025
5d507fa
Remove CCID feature
yogh333 Feb 12, 2025
d5c29ed
Remove CCID feature bis
yogh333 Feb 12, 2025
327e86e
remove device match in bindings
yogh333 Feb 13, 2025
754ff65
Cleanup
yogh333 Feb 13, 2025
be9b7c2
Add libm.a and libgcc.a for linking + os_printf.c shall be built for …
yogh333 Feb 14, 2025
348a162
Add nbgl feature
yogh333 Feb 14, 2025
17e3a8b
Rename header files
yogh333 Feb 14, 2025
b5fd671
Move linker files from sdk crate to sys crate
yogh333 Feb 14, 2025
74756bb
Set the C SDK path in Device
yogh333 Feb 14, 2025
4a47de6
rename bolos_sdk as c_sdk
yogh333 Feb 17, 2025
6320ef2
Move glyphs_folders into Device
yogh333 Feb 17, 2025
33c5b7a
Set arm libs path in Device
yogh333 Feb 17, 2025
30f43b3
Move local functions
yogh333 Feb 17, 2025
80a8e2e
Update linker script name in custom targets for Stax and Flex
yogh333 Feb 17, 2025
f0a2b82
Move linker script in Device
yogh333 Feb 17, 2025
e226641
Enable NBGL build for all Nano* devices
yogh333 Feb 18, 2025
9076acc
Bump versions
yogh333 Feb 18, 2025
552a800
Merge pull request #241 from LedgerHQ/y333/nbgl_support_for_nanos
yogh333 Feb 19, 2025
a54165f
Emergency patch for building Nano S apps
yogh333 Feb 21, 2025
a377f28
Merge pull request #243 from LedgerHQ/y333/patch_for_nanos_build
yogh333 Feb 21, 2025
7a16c29
fix: Change `UserCancelled` status word code
Fingolfin69 Feb 24, 2025
9e2babd
Bump version
Fingolfin69 Feb 24, 2025
774f60c
Merge pull request #244 from Fingolfin69/bn-change-sw-user-cancelled-…
yogh333 Feb 24, 2025
dabb0ae
Add coin configuartion to swap params
Fingolfin69 Feb 25, 2025
fc5a004
Bump SDK version
Fingolfin69 Feb 25, 2025
0680588
Fix buffer overwrite
Fingolfin69 Feb 26, 2025
17fa220
Merge pull request #246 from Fingolfin69/bn-add-coin-config-to-swap-p…
yogh333 Feb 26, 2025
78fc734
Update Readme and publish workflow
yogh333 Feb 26, 2025
42c02cc
Merge pull request #247 from LedgerHQ/y333/motherfucker_readme
yogh333 Feb 27, 2025
2809b96
fix typo
yogh333 Feb 27, 2025
69a34ab
Merge pull request #248 from LedgerHQ/y333/fix_typo_publish_workflow
yogh333 Feb 27, 2025
94fb4ba
Rename NBGL feature for Nano devices
yogh333 Feb 28, 2025
98c769e
Exclude NBGL GenericReview usecase for Nanos
yogh333 Mar 4, 2025
a8d0265
Bump versions
yogh333 Mar 4, 2025
bd21972
Merge pull request #249 from LedgerHQ/y333/rename_nbg_nano_feature
yogh333 Mar 4, 2025
d27fa67
When calling detect_apdu(), returns DeviceLocked when pin locked
yogh333 Mar 13, 2025
abaa3ae
Bump version
yogh333 Mar 13, 2025
30ceeec
Merge pull request #252 from LedgerHQ/y333/fix_pin_lock_nbgl_apdu_filter
yogh333 Mar 13, 2025
5c14797
Update build all Rust apps CI using ledgered
yogh333 Mar 6, 2025
18f552b
Add PR event to trigger all Rust apps building
yogh333 Mar 7, 2025
659e138
Exclude app-pocket
yogh333 Mar 7, 2025
9976ea1
Try to parallelize all builds
yogh333 Mar 11, 2025
dd89866
Make build all rust apps workflow callable
yogh333 Mar 11, 2025
ca533e0
Fix when workflow is called from another workflow
yogh333 Mar 11, 2025
67b2b81
Fix SDK checkout when building apps
yogh333 Mar 11, 2025
e51d665
Display context info
yogh333 Mar 11, 2025
98f3c6d
Add an additional job to determine how the workflow is called
yogh333 Mar 11, 2025
a1decc6
Fix inputs workflow parameters
yogh333 Mar 11, 2025
a847a75
Fix repo URL
yogh333 Mar 11, 2025
f3362bb
Use PR branch when using workflow_call
yogh333 Mar 11, 2025
8772272
Share GH token
yogh333 Mar 11, 2025
e4b92a0
Use CI GITHUB_TOKEN + filter out archived apps
yogh333 Mar 12, 2025
04f8dc0
Suppress shared GH token
yogh333 Mar 12, 2025
f5f0b54
Update after PR review
yogh333 Mar 13, 2025
473daad
Remove excluded devices list
yogh333 Mar 13, 2025
4376c0c
Merge pull request #250 from LedgerHQ/y333/update_ci
yogh333 Mar 13, 2025
81f27b6
Remove Nano S support
yogh333 Mar 7, 2025
38c2ee3
Remove NanoS refs
yogh333 Mar 7, 2025
bfa16ac
Still NanoS refs to be removed
yogh333 Mar 7, 2025
6d62dff
Remove Nano S from CI
yogh333 Mar 7, 2025
762b447
Bump versions
yogh333 Mar 14, 2025
443ed9f
Update after PR review
yogh333 Mar 14, 2025
7e81604
Add cargo-ledger in publish CI
yogh333 Mar 17, 2025
c1a43f4
Merge pull request #251 from LedgerHQ/y333/remove_nanos_support
yogh333 Mar 17, 2025
b9ea628
Panic if unknown UX event is set
yogh333 Mar 18, 2025
b44e965
Update after Copilot PR review
yogh333 Mar 18, 2025
13ede06
Merge pull request #253 from LedgerHQ/y333/fix_ux_event_id
yogh333 Mar 18, 2025
134a3dc
Delay lock + better ticker management
yogh333 Mar 21, 2025
b480a3c
Bump versions
yogh333 Mar 21, 2025
2b79ab3
set delay using struct field (no binding names)
yogh333 Mar 21, 2025
91144dd
Set default delay lock duration to 10000ms
yogh333 Mar 25, 2025
5972663
Merge pull request #254 from LedgerHQ/y333/delay_lock_from_app
yogh333 Mar 25, 2025
18f029c
Update reusable_build_all_apps.yml following docker image switch to d…
tdejoigny-ledger Mar 28, 2025
b4acd75
Merge pull request #255 from LedgerHQ/tdj/workflow_fix
tdejoigny-ledger Mar 28, 2025
cebfbb9
Foward button event to OS to prevent early pin lock
yogh333 Mar 28, 2025
c561c4a
run cargo fmt
yogh333 Mar 28, 2025
78e568a
Merge pull request #256 from LedgerHQ/y333/bagl_forward_button_event_…
yogh333 Mar 28, 2025
87d2a0b
When no settings set, pass NULL pointer to C NBGL API
yogh333 Apr 14, 2025
f0f51ec
Run cargo fmt
yogh333 Apr 14, 2025
850f92c
Merge pull request #257 from LedgerHQ/y333/support_no_settings_ngbl_home
yogh333 Apr 14, 2025
6f5dca0
feat: Add const generic address buffer size to swap params
Fingolfin69 Apr 21, 2025
296bf0c
Bump version
Fingolfin69 Apr 22, 2025
ec37bef
Merge pull request #258 from Fingolfin69/bn-swap-params-generic-addre…
yogh333 Apr 22, 2025
4b3398c
Fix nanosp -> nanosplus resolution following ledgered update
yogh333 May 12, 2025
15b48d3
Fix hardcoded nanos+
yogh333 May 12, 2025
1bc15fd
Merge pull request #260 from LedgerHQ/y333/fix_build_all_rust_apps_wo…
yogh333 May 12, 2025
8b1a3fc
Test if CString is empty before calling C API
yogh333 Apr 28, 2025
2dd6a61
Run cargo fmt
yogh333 Apr 28, 2025
e66af80
Bump version
yogh333 Apr 28, 2025
786d983
revert nanosp->nanos+
yogh333 May 15, 2025
cc89f11
Merge pull request #259 from LedgerHQ/y333/fix_nbg_empty_pages
yogh333 May 15, 2025
024a11d
Enable to use rust-analyzer from the devtools container
yogh333 Apr 30, 2025
720e0db
Remove cargo-ledger from workspace
yogh333 May 15, 2025
2aa8a76
Set C SDK path when building sys crate
yogh333 May 15, 2025
d786cd4
RUST_NIGHTLY env variable no more needed
yogh333 May 20, 2025
f404f5e
Bump SDK version
yogh333 May 20, 2025
0893046
refactor setting C SDK path code
yogh333 May 21, 2025
99b75d4
run cargo fmt
yogh333 May 21, 2025
bdf87ab
Merge pull request #261 from LedgerHQ/y333/dev_container_setup
yogh333 May 23, 2025
4378a63
Enable to set a tagline when invoking NbglHomeAndSettings
yogh333 Jun 4, 2025
a03312b
added in show_and_return() as well
yogh333 Jun 4, 2025
a8507f0
Run cargo fmt
yogh333 Jun 4, 2025
533ded5
Bump version and filter app-age
yogh333 Jun 5, 2025
2679ffa
Merge pull request #262 from LedgerHQ/y333/set_tag_line_nbglHomeAndSe…
yogh333 Jun 5, 2025
37e2dbe
Make link-wrap.sh Linux and macOS cross-platform compatible
harrychin Oct 15, 2024
f5fd4b3
Merge branch 'master' of https://github.com/harrychin/ledger-device-r…
Jun 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ledger_device_sdk/link_wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ llvm-objcopy --dump-section .rel.nvm_data=$OUT-nvm-reloc $OUT /dev/null || true
cat $OUT-rodata-reloc $OUT-nvm-reloc $OUT-data-reloc > $OUT-relocs || true

reloc_allocated_size="$((0x$(llvm-nm $OUT | grep _reloc_size | cut -d' ' -f1)))"
reloc_real_size="$(stat -c %s $OUT-relocs)"
reloc_real_size="$(wc -c < "$OUT-relocs")"
# Check that our relocations _actually_ fit.
if [ "$reloc_real_size" -gt "$reloc_allocated_size" ]
then
Expand Down