Skip to content

ccache.bbclass: Refactor it to make it more reliable

Robert Yang openembedded-core 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 7 repliesIn review
  2. v26 patches 3 repliesSuperseded
  3. v14 patches 15 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11ccache-native: Remove dependenciesmeta/recipes-devtools/ccache/ccache.inc meta/recipes-devtools/ccache/ccache_3.4.2.bb+14 -30 replies
2/11ccache: 3.4.2 -> 3.5meta/recipes-devtools/ccache/ccache_3.4.2.bb meta/recipes-devtools/ccache/ccache_3.5.bb+11 -110 replies
3/11ccache.bbclass: Refactor it to make it more reliablemeta/classes/ccache.bbclass meta/conf/bitbake.conf meta/conf/layer.conf +1 more+26 -94 replies
4/11ccache.bbclass: Make it can be shared between different buildsmeta/classes/ccache.bbclass+21 -10 replies
5/11ccache.bbclass: Add task do_cleanccachemeta/classes/ccache.bbclass+14 -00 replies
6/11ccache.bbclass: Set CCACHE_CONFIGPATH to fix race issuesmeta/classes/ccache.bbclass meta/conf/ccache.conf+4 -00 replies
7/11bitbake.conf: Enable -fdebug-prefix-map for nativesdkmeta/conf/bitbake.conf+1 -10 replies
8/11goarch.bbclass: Set CCACHE_DISABLEmeta/classes/goarch.bbclass+4 -00 replies
9/11cmake.bbclass: Make it work with ccachemeta/classes/cmake.bbclass meta/recipes-graphics/piglit/piglit_git.bb meta/recipes-graphics/vulkan/vulkan_1.1.73.0.bb +1 more+24 -60 replies
10/11apr/openssl10: Enable ccache for themmeta/recipes-connectivity/openssl/openssl10_1.0.2q.bb meta/recipes-support/apr/apr_1.6.5.bb+0 -80 replies
11/11oeqa/selftest/cases: Update test_ccache_toolmeta/lib/oeqa/selftest/cases/buildoptions.py+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 00/11] ccache.bbclass: Refactor it to make it more reliable

* V3
- Make cache files can be shared between different build dirs
- Add task do_cleanccache
- Make cmake work with ccache
- Upgrade ccache to 3.5, this version has a debug mode, which is useful for figuring out why a cache file is not used.

* V2
- Fix comments from Martin Jansa and Martin Hundebøll.
- Fix RP's comments:
1) Add comments for ccache related code in base.bbclass
2) Remove all ccache-native's dependencies so that all recipes can depend on and use it.
- Update test_ccache_tool in oeqa

* V1
Initial version

The following changes since commit 20aea61385e1a53ac245353899277ba20104ed2f:

gcc: Drop 7.3 since 8.2 is working fine for us (2018-12-15 17:10:44 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/ccache
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/ccache

Robert Yang (11):
ccache-native: Remove dependencies
ccache: 3.4.2 -> 3.5
ccache.bbclass: Refactor it to make it more reliable ccache.bbclass: Make it can be shared between different builds ccache.bbclass: Add task do_cleanccache ccache.bbclass: Set CCACHE_CONFIGPATH to fix race issues bitbake.conf: Enable -fdebug-prefix-map for nativesdk goarch.bbclass: Set CCACHE_DISABLE
cmake.bbclass: Make it work with ccache apr/openssl10: Enable ccache for them oeqa/selftest/cases: Update test_ccache_tool

 meta/classes/ccache.bbclass                        | 63 ++++++++++++++++++++--
 meta/classes/cmake.bbclass                         | 21 +++++---
 meta/classes/goarch.bbclass                        |  4 ++
 meta/conf/bitbake.conf                             |  8 +--
 meta/conf/ccache.conf                              |  2 +
 meta/conf/layer.conf                               |  1 -
 meta/lib/oe/utils.py                               |  3 ++
 meta/lib/oeqa/selftest/cases/buildoptions.py       | 10 ++--
 .../openssl/openssl10_1.0.2q.bb                    |  3 --
 meta/recipes-devtools/ccache/ccache.inc            | 13 ++++-
 meta/recipes-devtools/ccache/ccache_3.4.2.bb       | 11 ----
 meta/recipes-devtools/ccache/ccache_3.5.bb         | 11 ++++
 meta/recipes-graphics/piglit/piglit_git.bb         |  3 ++
 meta/recipes-graphics/vulkan/vulkan_1.1.73.0.bb    |  3 ++
 meta/recipes-sato/webkit/webkitgtk_2.22.4.bb       |  3 ++
 meta/recipes-support/apr/apr_1.6.5.bb              |  5 --
 16 files changed, 122 insertions(+), 42 deletions(-)
 create mode 100644 meta/conf/ccache.conf
 delete mode 100644 meta/recipes-devtools/ccache/ccache_3.4.2.bb
 create mode 100644 meta/recipes-devtools/ccache/ccache_3.5.bb
Signature · 1 line
2.7.4