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

kas/common/base.yml: enable use of ccache for the builds #417

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

baprusty
Copy link
Contributor

  • Enable Compiler cache for the builds
  • It reduces build time during recompilation by caching previous compilations, and detecting when same compilation is being done again
  • Tested nanopi neo image build time got reduced by 5 minutes

Build tests:

Without ccache:
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################################################| Time: 0:00:00
Parsing of 76 .bb files complete (0 cached, 76 parsed). 128 targets, 15 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 20 Local 0 Mirrors 0 Missed 20 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 216 tasks of which 0 didn't need to be rerun and all succeeded.

real    17m0.770s
user    0m0.180s
sys     0m0.132s


# with cache
Parsing recipes: 100% |######################################################################################################################################################################################################| Time: 0:00:00
Parsing of 76 .bb files complete (0 cached, 76 parsed). 128 targets, 15 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 20 Local 0 Mirrors 0 Missed 20 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 216 tasks of which 0 didn't need to be rerun and all succeeded.

real    12m23.131s
user    0m0.089s
sys     0m0.158s

- Enable Compiler cache for the builds
- It reduces build time during recompilation by caching previous compilations,
    and detecting when same compilation is being done again
- Tested nanopi neo image build time got reduced by 5 minutes

Signed-off-by: Badrikesh Prusty <[email protected]>
@chombourger chombourger merged commit af3e770 into siemens:master Apr 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants