summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2021-01-06 04:09:52 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-08 10:10:15 +0000
commitc85bca39db3f9a476682df7f75906b3e1badcf35 (patch)
tree236d2b0b486518936b714a42beb2e6c8991082a4 /meta/classes
parent95d2587116405926c28d4a5b64fa7dcab59adeea (diff)
downloadpoky-c85bca39db3f9a476682df7f75906b3e1badcf35.tar.gz
ccache.bbclass: Set CCACHE_TEMPDIR
Fixed when build with buildtools-tarball: $ bitbake linux-libc-headers HOSTCC arch/x86/tools/relocs_common.o ccache: error: Failed to create directory /run/user/0/ccache-tmp: Permission denied (From OE-Core rev: 98f52dba421cc2e14794e0b811ccac38f0683713) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/ccache.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/ccache.bbclass b/meta/classes/ccache.bbclass
index 11a3f1cb52..f00fafc292 100644
--- a/meta/classes/ccache.bbclass
+++ b/meta/classes/ccache.bbclass
@@ -35,6 +35,10 @@ export CCACHE_CONFIGPATH ?= "${COREBASE}/meta/conf/ccache.conf"
35 35
36export CCACHE_DIR ?= "${CCACHE_TOP_DIR}/${MULTIMACH_TARGET_SYS}/${PN}" 36export CCACHE_DIR ?= "${CCACHE_TOP_DIR}/${MULTIMACH_TARGET_SYS}/${PN}"
37 37
38# Fixed errors:
39# ccache: error: Failed to create directory /run/user/0/ccache-tmp: Permission denied
40export CCACHE_TEMPDIR ?= "${CCACHE_DIR}/tmp"
41
38# We need to stop ccache considering the current directory or the 42# We need to stop ccache considering the current directory or the
39# debug-prefix-map target directory to be significant when calculating 43# debug-prefix-map target directory to be significant when calculating
40# its hash. Without this the cache would be invalidated every time 44# its hash. Without this the cache would be invalidated every time