B = "${WORKDIR}/build"
export GOPATH = "${B}"
+GO_TMPDIR ?= "${WORKDIR}/go-tmp"
+GO_TMPDIR[vardepvalue] = ""
python go_do_unpack() {
src_uri = (d.getVar('SRC_URI') or "").split()
}
go_do_compile() {
+ export TMPDIR="${GO_TMPDIR}"
${GO} env
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} `go_list_packages`
fi
}
+do_compile[dirs] =+ "${GO_TMPDIR}"
do_compile[cleandirs] = "${B}/bin ${B}/pkg"
do_compile_ptest() {
+ export TMPDIR="${GO_TMPDIR}"
rm -f ${B}/.go_compiled_tests.list
go_list_package_tests | while read pkg; do
cd ${B}/src/$pkg
sed -e's,/\./,/,'>> ${B}/.go_compiled_tests.list
done
}
+do_compile_ptest_base[dirs] =+ "${GO_TMPDIR}"
go_do_install() {
install -d ${D}${libdir}/go/src/${GO_IMPORT}