Skip to content
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

boot: Refactoring image dependency functions to reduce code size #1911

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

de-nordic
Copy link
Collaborator

There have been duplicate functions:
boot_verify_dependencies
boot_verify_slot_dependencies
boot_verify_slot_dependency
with, very similar internals, scattered around unit. The commit have moved them on top and squashed where possible.

@de-nordic de-nordic requested a review from nvlsianpu March 1, 2024 15:08
@de-nordic de-nordic force-pushed the dependency_code_refactoring branch 3 times, most recently from afc894e to a414922 Compare March 1, 2024 15:34
Copy link
Collaborator

@nvlsianpu nvlsianpu left a comment

Choose a reason for hiding this comment

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

reduction on boot_verify_slot_dependencies() :)
Just one nit.

boot/bootutil/src/loader.c Show resolved Hide resolved
@nvlsianpu nvlsianpu added the area: core Affects core functionality label Mar 7, 2024
There have been duplicate functions:
 boot_verify_dependencies
 boot_verify_slot_dependencies
 boot_verify_slot_dependency
with, very similar internals, scattered around unit.
The commit have moved them on top and squashed where possible.

Signed-off-by: Dominik Ermel <[email protected]>
@de-nordic de-nordic force-pushed the dependency_code_refactoring branch from 34f2a3e to bbe3fcd Compare March 7, 2024 18:05
@nvlsianpu nvlsianpu requested a review from d3zd3z March 7, 2024 19:21
@nvlsianpu
Copy link
Collaborator

@d3zd3z I would merge this - Code is almost the same as it was (no algorithm changes), just cleaned-up a little.

@nvlsianpu nvlsianpu merged commit aafcbad into mcu-tools:main Mar 13, 2024
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Affects core functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants