Adding new macro for region copy buffer size #1406
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This addresses the issue opened here: #1407
Background:
This PR introduced a change which appeared to be intended to allow the buffer size to be configurable.
That change, however, is frivolous because
MCUBOOT_BOOT_MAX_ALIGNis guaranteed to be between 8 and 32This PR:
This PR adds a new configuration macro to allow the region copy buffer size to be a value other than 1024, which should allow for a more efficient use of block devices when the block size is a different value.
It is backwards compatible with all version, as the default when that macro is unset is still 1024
Signed-off-by: Mikhail Skobov mskobov@lyft.com