path: root/meta/classes/ccache.bbclass
diff options
authorRichard Purdie <>2012-05-29 12:29:44 (GMT)
committerRichard Purdie <>2012-05-30 11:04:49 (GMT)
commit0299499770e33e0214146132799f8779e81e581d (patch)
tree76922ab617e852e82c7636f887d2266dd37582ac /meta/classes/ccache.bbclass
parenta92ff3ad4212f8966bbd3f6defcb112737d81cda (diff)
ccache: Separate out into its own class
Currently, ccache is used if it is present. When building from scratch it gives no performance improvement and creates a ton of empty directories even when its not in use. This change moves ccache support to a bbclass file which the user can choose to enable. This should make builds more determinstic and make it easier/clearer to the end user when its being used and when it is not. (From OE-Core rev: 2acf8da4f13c175ea818b9514677b7059de1e3e2) Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/classes/ccache.bbclass')
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
new file mode 100644
index 0000000..10f9b9f
--- /dev/null
+++ b/meta/classes/ccache.bbclass
@@ -0,0 +1,5 @@
1CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}"
2export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"
4do_configure[dirs] =+ "${CCACHE_DIR}"
5do_kernel_configme[dirs] =+ "${CCACHE_DIR}"