Skip to content
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

Bootloader size optimizations #873

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

hedger
Copy link
Member

@hedger hedger commented Dec 6, 2021

What's new

  • Removed -u _printf_float linker flag for bootloader project - drastically reduces binary size
  • Removed Bluetooth-specific init in BL - also removes snprintf dependency, further reducing binary size. Anyway, furi_hal_version.device_name[0] was zeroed-out after all string formatting shenanigans.
  • Introduced SLIM_BOOTLOADER definition (NOT active by default) - when defined, removes Update & Recovery Mode from bootloader screen, saving ~3kb on font data. That string can be included in splash screen bitmap, storing it much more efficiently.

Verification

  • Build, check basic bootloader functionality and reduced size.

Checklist (do not modify)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@skotopes skotopes merged commit f54ae25 into flipperdevices:dev Dec 7, 2021
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.

None yet

2 participants