Skip to content

feat: image format --bypass -> --format option#94

Merged
JPHutchins merged 1 commit intomainfrom
feature/various-bootloader-image-formats
Apr 14, 2026
Merged

feat: image format --bypass -> --format option#94
JPHutchins merged 1 commit intomainfrom
feature/various-bootloader-image-formats

Conversation

@JPHutchins
Copy link
Copy Markdown
Collaborator

FYI @axelnxp

More flexibility for zephyrproject-rtos/zephyr#103999 and zephyrproject-rtos/zephyr#104691

Image inspection and parsing will be added after some breaking changes and reworks. E.g. smpmgr image <my_file.bin> can parse and display information about an image file.

Users wanting inspection of mcuboot images can use the mcuimg app included with smpclient.

We're dropping python 3.10 but I don't consider it breaking since this is an app, not a lib. 3.10 is EOL in 6 months anyway.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces the former --bypass-inspect flag with a more flexible --format option (mcuboot vs any) for firmware uploads/upgrades, while also updating the supported Python/runtime/dependency baseline to align with newer smpclient/typer releases.

Changes:

  • Introduces --format {mcuboot,any} and updates upgrade/image upload flows to either locally inspect MCUboot images or skip inspection.
  • Updates dependency requirements (notably smpclient v7 and typer v0.24) and bumps the minimum Python version to 3.11.
  • Removes Python 3.10 from CI matrices.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
smpmgr/main.py Switches upgrade from --bypass-inspect to --format, using local MCUboot TLV parsing only when applicable.
smpmgr/image_management.py Adds ImageFormat/ImageFormatOption and updates image upload to honor --format for local inspection behavior.
pyproject.toml Bumps Python requirement to >=3.11 and updates smpclient/typer dependency constraints.
poetry.lock Refreshes the lockfile to reflect updated dependency versions and extras.
.github/workflows/test.yaml Removes Python 3.10 from the test matrix.
.github/workflows/lint.yaml Removes Python 3.10 from the lint matrix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JPHutchins JPHutchins force-pushed the feature/various-bootloader-image-formats branch from b8ceef1 to 50133f6 Compare April 14, 2026 16:50
@JPHutchins JPHutchins requested a review from Copilot April 14, 2026 16:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JPHutchins JPHutchins merged commit 3487612 into main Apr 14, 2026
17 checks passed
@JPHutchins JPHutchins deleted the feature/various-bootloader-image-formats branch April 14, 2026 17:02
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.

2 participants