From 2acf8da4f13c175ea818b9514677b7059de1e3e2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 29 May 2012 13:29:44 +0100 Subject: 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. Signed-off-by: Richard Purdie --- meta/classes/ccache.bbclass | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 meta/classes/ccache.bbclass (limited to 'meta/classes/ccache.bbclass') diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass new file mode 100644 index 0000000000..10f9b9f9aa --- /dev/null +++ b/meta/classes/ccache.bbclass @@ -0,0 +1,5 @@ +CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}" +export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" + +do_configure[dirs] =+ "${CCACHE_DIR}" +do_kernel_configme[dirs] =+ "${CCACHE_DIR}" -- cgit v1.2.3