Skip to content

bootutil: Unify app_max_size() implementations #2318

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomchy
Copy link

@tomchy tomchy commented May 23, 2025

Remove redundant application size calculations in favour of a common function, implemented inside bootutil_misc.c.
In this way, slot sizes use the same restrictions as image validation.

This change is a follow-up PR to the discussion in the #2283.

@tomchy tomchy force-pushed the bugfix/swap/Unify_max_app_size_methods branch 2 times, most recently from 0727e9f to 0a7e9a6 Compare May 23, 2025 14:39
Remove redundant application size calculations in favour of
a swap-specific function, implemented inside swap_<type>.c.
In this way, slot sizes use the same restrictions as image validation.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
@tomchy tomchy force-pushed the bugfix/swap/Unify_max_app_size_methods branch from 0a7e9a6 to 84cf14a Compare May 27, 2025 08:35
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.

1 participant