-
-
Notifications
You must be signed in to change notification settings - Fork 655
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 command/args refactoring #3380
Conversation
note: do not merge this before we tag BL 2.1.4 |
18a9f68
to
e7fee67
Compare
e7fee67
to
b66856a
Compare
db8a503
to
ac396f3
Compare
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.
concept ACK, now someone needs to actually review the actual code
|
||
// The 'g_boot_command_shadow' shadows a real boot command passed | ||
// to the bootloader. | ||
// 1. In the bootloader, it's value is set in the startup code. |
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.
typo
// 1. In the bootloader, it's value is set in the startup code. | |
// 1. In the bootloader, its value is set in the startup code. |
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.
fixed, see d26260b
@@ -21,7 +21,7 @@ async def reboot_to_bootloader(msg: RebootToBootloader) -> NoReturn: | |||
# For convenience, we block unofficial firmwares from jumping to bootloader | |||
# this way, so that the user doesn't get mysterious "install failed" errors. | |||
# (It would be somewhat nicer if this was a compile-time flag, but oh well.) | |||
is_official = utils.firmware_vendor() != "UNSAFE, DO NOT USE!" | |||
is_official = True # utils.firmware_vendor() != "UNSAFE, DO NOT USE!" |
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 shoud not stay here of course
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.
fixed, see d26260b
b66856a
to
8d78b28
Compare
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.
Looks good, added some questions below.
ac396f3
to
e8c4b3e
Compare
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.
lgtm, please squash and add [no changelog] to the commit message
[no changelog]
d26260b
to
bb6f9d8
Compare
I've refactored the boot command and arguments interface after merging the interaction-less update with the stm32u5 branch.
Passing and retrieving the reboot command and arguments should now be much clearer.