mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
95d2587116
commit
c85bca39db
@@ -35,6 +35,10 @@ export CCACHE_CONFIGPATH ?= "${COREBASE}/meta/conf/ccache.conf"
|
||||
|
||||
export CCACHE_DIR ?= "${CCACHE_TOP_DIR}/${MULTIMACH_TARGET_SYS}/${PN}"
|
||||
|
||||
# Fixed errors:
|
||||
# ccache: error: Failed to create directory /run/user/0/ccache-tmp: Permission denied
|
||||
export CCACHE_TEMPDIR ?= "${CCACHE_DIR}/tmp"
|
||||
|
||||
# We need to stop ccache considering the current directory or the
|
||||
# debug-prefix-map target directory to be significant when calculating
|
||||
# its hash. Without this the cache would be invalidated every time
|
||||
|
||||
Reference in New Issue
Block a user