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

FBT: Optimize icons blob -4KB DFU, scrub unused icons #291

Merged
merged 17 commits into from
Nov 5, 2024

Conversation

Willy-JL
Copy link
Member

@Willy-JL Willy-JL commented Nov 4, 2024

What's new

  • removing unused icons from firmware blob
  • excluding some firmware-only icons from asset packs
  • cleaning up assets cooker script
  • added free flash info to gh pr comment
  • added script to check unused icons
  • split assets lib to avoid wasted space in dfu and allow apps to use fap_libs=["assets"]

For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@Willy-JL Willy-JL added the bugfix Something isn't working label Nov 4, 2024
@Willy-JL Willy-JL self-assigned this Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

Compiled f7 firmware for commit 3c61a9aa:

now there is "assets" and "fwassets"

firmware links with fwassets and includes all icons
however not all of them are exposed to api

if an app needs a firmware icon not in api, it can use fap_libs=["assets"]
this will link against this dummy assets lib
it only contains the icons that arent exposed to api

this way, an app using assets lib will still benefit from asset packs
but at same time, we can remove pointless icons from dfu blob
@Willy-JL Willy-JL marked this pull request as ready for review November 5, 2024 07:12
@Willy-JL Willy-JL changed the title Icons: Optimize and scrub unused icons FBT: Optimize icons blob -4KB DFU, scrub unused icons Nov 5, 2024
@Willy-JL Willy-JL merged commit 3ef2838 into dev Nov 5, 2024
5 checks passed
@Willy-JL Willy-JL deleted the fix/optimize-icons branch November 5, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant