conmon: avoid host contamination by GOCACHE

By default GOCACHE is set to $HOME/.cache.

Fix:
make[1]: Entering directory '/mnt/tmp-glibc/work/core2-64-wrs-linux/conmon/2.1.3+gitAUTOINC+19110c9746-r0/git/tools'
| failed to initialize build cache at /home/build/.cache/go-build: mkdir /home/build: permission denied

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Changqing Li 2022-12-01 16:40:41 +08:00 committed by Bruce Ashfield
parent 3626f2c9cc
commit b2ab6a11a4

View File

@ -20,6 +20,8 @@ S = "${WORKDIR}/git"
inherit pkgconfig
export GOCACHE = "${B}/.cache"
EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"