Skip to content

Put also app-flags in app.elf to be retrievable by Speculos#1344

Merged
nroggeman-ledger merged 1 commit intomasterfrom
put-appflags-also-in-install-params
Dec 4, 2025
Merged

Put also app-flags in app.elf to be retrievable by Speculos#1344
nroggeman-ledger merged 1 commit intomasterfrom
put-appflags-also-in-install-params

Conversation

@nroggeman-ledger
Copy link
Copy Markdown
Contributor

@nroggeman-ledger nroggeman-ledger commented Dec 2, 2025

Description

The goal of this PR is to make app_flags also visible in Speculos, to improve emulation of Bolos.
The first targeted usage is the HAVE_APPLICATION_FLAG_DERIVE_MASTER flag, to limit derivation

It is linked to https://ledgerhq.atlassian.net/browse/B2CA-2435

Related PRs:

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Tests
  • Documentation
  • Other (for changes that might not fit in any category)

Auto cherry-pick in API_LEVEL

If requested to port the commits from this PR on a dedicated API_LEVEL branch,
select the targeted one(s), or add new references if not listed:

[x] TARGET_API_LEVEL: API_LEVEL_25

This will only create the PR with cherry-picks, ready to be reviewed and merged.

Remember:

  • The merge will ALWAYS be a manual operation.
  • It is possible the cherry-picks don't apply correctly, mainly if previous commits have been forgotten.
  • In case of failure, there is no other solution than redo the operation manually...

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.60%. Comparing base (5508407) to head (ca26133).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1344   +/-   ##
=======================================
  Coverage   78.60%   78.60%           
=======================================
  Files          42       42           
  Lines        4571     4571           
  Branches      669      669           
=======================================
  Hits         3593     3593           
  Misses        928      928           
  Partials       50       50           
Flag Coverage Δ
unittests 78.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@iartemov-ledger iartemov-ledger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with a small question.

@nroggeman-ledger nroggeman-ledger force-pushed the put-appflags-also-in-install-params branch 2 times, most recently from 28b80c2 to f16e339 Compare December 3, 2025 14:35
@nroggeman-ledger nroggeman-ledger changed the title Put also app-flags in install-params to be retrievable by Speculos Put also app-flags in app.elf to be retrievable by Speculos Dec 3, 2025
@iartemov-ledger iartemov-ledger self-requested a review December 3, 2025 15:57
Copy link
Copy Markdown
Contributor

@iartemov-ledger iartemov-ledger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 minor comments.

@nroggeman-ledger nroggeman-ledger force-pushed the put-appflags-also-in-install-params branch from f16e339 to 3c213eb Compare December 4, 2025 07:13
@nroggeman-ledger nroggeman-ledger force-pushed the put-appflags-also-in-install-params branch from 3c213eb to ca26133 Compare December 4, 2025 07:14
@nroggeman-ledger nroggeman-ledger merged commit e0b2bdf into master Dec 4, 2025
243 checks passed
@nroggeman-ledger nroggeman-ledger deleted the put-appflags-also-in-install-params branch December 4, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants