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

Improve compilation speed for android build #179

Open
wants to merge 2 commits into
base: celadon/s/mr0/apollo
Choose a base branch
from

Conversation

GangSecurity
Copy link
Contributor

Currently FFTF python script is used for creating flashfiles.zip. It uses ZipWrite python api which is time consuming and adds overhead to build time. Say, flash.json generation, unpacking of target files, installer.cmd generation, etc.

This fix helps to optimize build time and involves below changes:

  • Use tar + pigz combo for faster flashfiles generation.
  • Make FFTF a bash script as python doesn't directly support tar + pigz
  • Add use_tar=true flag to "make flashfiles" to enable it. e,g, "make flashfiles -j use_tar=true"
  • The new script still supports all old functionalities, say, generation of installer.cmd, flash.json, repacking of bootloader.img, etc.

Tracked-On: OAM-112083

sgnanase and others added 2 commits January 17, 2024 22:50
Currently FFTF python script is used for creating flashfiles.zip.
It uses ZipWrite python api which is time consuming and adds
overhead to build time. Say, flash.json generation, unpacking of
target files, installer.cmd generation, etc.

This fix helps to optimize build time and involves below changes:
- Use tar + pigz combo for faster flashfiles generation.
- Make FFTF a bash script as python doesn't directly support
  tar + pigz
- Add use_tar=true flag to "make flashfiles" to enable it.
  e,g, "make flashfiles -j<N> use_tar=true"
- The new script still supports all old functionalities, say,
  generation of installer.cmd, flash.json, repacking of
  bootloader.img, etc.

Tracked-On: OAM-112083
Signed-off-by: sgnanase <[email protected]>
Signed-off-by: Chen, Gang G <[email protected]>
directory is not required in final release packages

Test done:
	make flashfiles use_tar=true
	uzip flashfile.tar.gz and iso.tar.gz, no
	directory in extracted files

Tracked-On: OAM-115260
Signed-off-by: Chen, Gang G <[email protected]>
@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Stale label for inactive open prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants