Skip to content

smpclient: mcuboot: treat all files as binary except for .hex#74

Merged
JPHutchins merged 2 commits intointercreate:mainfrom
llisauskas:main
Aug 25, 2025
Merged

smpclient: mcuboot: treat all files as binary except for .hex#74
JPHutchins merged 2 commits intointercreate:mainfrom
llisauskas:main

Conversation

@llisauskas
Copy link
Contributor

@llisauskas llisauskas commented Aug 11, 2025

Remove limitations on file extensions and treat all of them as binary except for .hex.

This type of self-imposed limitation IMHO belongs in end-user tools where it might have some sort of use (e.g. platform-specific binaries generated by other tools), but not in a generic library like this.

Copy link
Contributor

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 removes file extension restrictions in the MCUBoot image loading functionality, treating all files as binary except for .hex files. This makes the library more generic by removing artificial limitations on supported file extensions.

  • Removes the validation that only accepts .bin and .hex file extensions
  • Changes the logic to treat all files except .hex as binary files
  • Simplifies the file loading logic by removing unnecessary restrictions

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@llisauskas llisauskas requested a review from Copilot August 13, 2025 08:31
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Collaborator

@JPHutchins JPHutchins left a comment

Choose a reason for hiding this comment

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

Thank you!

@JPHutchins JPHutchins merged commit 85c23f3 into intercreate:main Aug 25, 2025
21 checks passed
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