-
Notifications
You must be signed in to change notification settings - Fork 799
bootutil: Move primary/secondary slot definition to bootutil_public - enum #2431
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
base: main
Are you sure you want to change the base?
Conversation
#define BOOT_PRIMARY_SLOT 0 | ||
#define BOOT_SECONDARY_SLOT 1 | ||
#define BOOT_SLOT_COUNT 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to be an enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, added the enum, this resulted in a lot of changes needed changing uint32_t
-> enum boot_slot
c551e45
to
91cefd3
Compare
91cefd3
to
6e7c4eb
Compare
0776cbf
to
30c27c5
Compare
The slots definitions (BOOT_PRIMARY_SLOT, BOOT_SECONDARY_SLOT) were defined in bootutil_priv.h, which made them unusable for bootloader requests. This commit moves them to bootutil_public.h Signed-off-by: Artur Hadasz <[email protected]>
30c27c5
to
0d6ba96
Compare
- `CONFIG_MCUBOOT_PRIMARY_SLOT_PATH`: MTD partition for the application firmware image PRIMARY slot; | ||
- `CONFIG_MCUBOOT_SECONDARY_SLOT_PATH`: MTD partition for the application firmware image SECONDARY slot; | ||
- `CONFIG_MCUBOOT_SLOT_PRIMARY_PATH`: MTD partition for the application firmware image PRIMARY slot; | ||
- `CONFIG_MCUBOOT_SLOT_SECONDARY_PATH`: MTD partition for the application firmware image SECONDARY slot; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be a breaking change so next release would need major version increment @d3zd3z
The slots definitions (BOOT_PRIMARY_SLOT, BOOT_SECONDARY_SLOT) were defined in bootutil_priv.h, which made them unusable for bootloader requests. This commit moves them to bootutil_public.h