Skip to content

bootutil: swap-scratch: Fix conflicts after support of device without erase #2255

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

Conversation

taltenbach
Copy link
Contributor

Before the PR #2206 fixing issues in the swap-scratch logic when the trailer is larger than the last sector was merged, the PR #2114 was reverted (see #2211). This changes made by #2211 were then reapplied (see #2216) after #2206 was merged, leading to some conflicts: a call to swap_erase_trailer_sectors was moved by #2206 but the old call to that function was added back by #2216 and a new call to swap_erase_trailer_sectors was added by #2206 but not converted to a call to swap_scramble_trailer_sectors by #2216.

@taltenbach taltenbach requested a review from davidvincze as a code owner April 8, 2025 11:46
Before the PR mcu-tools#2206 fixing issues in the swap-scratch logic when the
trailer is larger than the last sector was merged, the PR mcu-tools#2114 was
reverted (see mcu-tools#2211). This changes made by mcu-tools#2211 were then reapplied
(see mcu-tools#2216) after mcu-tools#2206 was merged, leading to some conflicts: a call to
swap_erase_trailer_sectors was moved by mcu-tools#2206 but the old call to that
function was added back by mcu-tools#2216 and a new call to
swap_erase_trailer_sectors was added by mcu-tools#2206 but not converted to a
call to swap_scramble_trailer_sectors by mcu-tools#2216.

Signed-off-by: Thomas Altenbach <[email protected]>
@taltenbach taltenbach force-pushed the fix/swap-scratch-device-wo-erase-merge-conflict branch from f803fe6 to 5fe92ec Compare April 8, 2025 11:46
@nordicjm nordicjm requested a review from de-nordic April 8, 2025 12:01
@nordicjm nordicjm merged commit 454c033 into mcu-tools:main Apr 9, 2025
64 of 94 checks passed
@taltenbach taltenbach deleted the fix/swap-scratch-device-wo-erase-merge-conflict branch April 9, 2025 08:43
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