summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass2
-rw-r--r--meta/classes/ccache.bbclass5
-rw-r--r--meta/classes/kernel-yocto.bbclass2
3 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 79685f7e7d..9219170a30 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -271,7 +271,7 @@ python base_eventhandler() {
271} 271}
272 272
273addtask configure after do_patch 273addtask configure after do_patch
274do_configure[dirs] = "${CCACHE_DIR} ${S} ${B}" 274do_configure[dirs] = "${S} ${B}"
275do_configure[deptask] = "do_populate_sysroot" 275do_configure[deptask] = "do_populate_sysroot"
276base_do_configure() { 276base_do_configure() {
277 : 277 :
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 @@
1CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}"
2export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"
3
4do_configure[dirs] =+ "${CCACHE_DIR}"
5do_kernel_configme[dirs] =+ "${CCACHE_DIR}"
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index e931630510..2a3373c63a 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -161,7 +161,7 @@ do_kernel_checkout[dirs] = "${S}"
161 161
162addtask kernel_checkout before do_patch after do_unpack 162addtask kernel_checkout before do_patch after do_unpack
163 163
164do_kernel_configme[dirs] = "${CCACHE_DIR} ${S} ${B}" 164do_kernel_configme[dirs] = "${S} ${B}"
165do_kernel_configme() { 165do_kernel_configme() {
166 echo "[INFO] doing kernel configme" 166 echo "[INFO] doing kernel configme"
167 167