Skip to content

emit: allow mpy-cross to exclude source lines' data#29

Merged
romanz merged 1 commit intotrezor-v1.19.1from
romanz/no-source-lines
Apr 13, 2026
Merged

emit: allow mpy-cross to exclude source lines' data#29
romanz merged 1 commit intotrezor-v1.19.1from
romanz/no-source-lines

Conversation

@romanz
Copy link
Copy Markdown

@romanz romanz commented Apr 9, 2026

This would allow having debug FW builds without source line data.

The new emit_no_source_lines flag is disabled by default, and is used only by mpy-cross.

Will be used by trezor/trezor-firmware#6736 to resolve trezor/trezor-firmware#6715.

Upstream PR: micropython#19080

@romanz romanz changed the title emit: allow mpy-cross to exclude source lines emit: allow mpy-cross to exclude source lines' data Apr 9, 2026
romanz added a commit to trezor/trezor-firmware that referenced this pull request Apr 9, 2026
@romanz romanz self-assigned this Apr 9, 2026
@romanz romanz requested review from M1nd3r, cepetr and mmilata April 9, 2026 11:58
@romanz romanz added this to Firmware Apr 9, 2026
@github-project-automation github-project-automation Bot moved this to 🔎 Needs review in Firmware Apr 9, 2026
@romanz romanz force-pushed the romanz/no-source-lines branch from e745949 to 7f2b41a Compare April 9, 2026 13:20
romanz added a commit to trezor/trezor-firmware that referenced this pull request Apr 9, 2026
@romanz
Copy link
Copy Markdown
Author

romanz commented Apr 9, 2026

Renamed the flag to -X source-lines -X include-source-lines (will be enabled by default on build_unix).

romanz added a commit to trezor/trezor-firmware that referenced this pull request Apr 9, 2026
Copy link
Copy Markdown
Member

@mmilata mmilata left a comment

Choose a reason for hiding this comment

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

LGTM, does it make sense to submit upstream?

Comment thread mpy-cross/main.c
@romanz romanz force-pushed the romanz/no-source-lines branch from 7f2b41a to 8c12312 Compare April 13, 2026 06:57
@romanz
Copy link
Copy Markdown
Author

romanz commented Apr 13, 2026

Upstream PR: micropython#19080

This would allow building debug FW without source line data.

Signed-off-by: Roman Zeyde <me@romanzey.de>
@romanz romanz force-pushed the romanz/no-source-lines branch from 8c12312 to e8d89a0 Compare April 13, 2026 12:47
@romanz romanz requested review from cepetr and mmilata April 13, 2026 12:49
@romanz romanz merged commit e8d89a0 into trezor-v1.19.1 Apr 13, 2026
15 of 74 checks passed
@github-project-automation github-project-automation Bot moved this from 🔎 Needs review to 🤝 Needs QA in Firmware Apr 13, 2026
@romanz romanz deleted the romanz/no-source-lines branch April 13, 2026 14:00
romanz added a commit to trezor/trezor-firmware that referenced this pull request Apr 13, 2026
romanz added a commit to trezor/trezor-firmware that referenced this pull request Apr 13, 2026
@romanz romanz moved this from 🤝 Needs QA to ✅ Done (no QA) in Firmware Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done (no QA)

Development

Successfully merging this pull request may close these issues.

mpy-cross is not rebuilt when MICROPY_ENABLE_SOURCE_LINE is modified

3 participants