From: Richard Purdie Date: Sat, 28 Jan 2017 10:13:58 +0000 (+0000) Subject: gcc-cross: Ensure do_gcc_stash_builddir happens before do_build X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~22774 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bfea0e6a5aee9ce15bf20bcb2781329e6281284c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gcc-cross: Ensure do_gcc_stash_builddir happens before do_build If we don't do this, things break with rm_work which removes things before the task completes causing task failures. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index f3ae4fe6b1b..fa5cfbd5d12 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc @@ -200,7 +200,7 @@ do_gcc_stash_builddir () { dest=${BUILDDIRSTASH} hardlinkdir . $dest } -addtask do_gcc_stash_builddir after do_compile +addtask do_gcc_stash_builddir after do_compile before do_build SSTATETASKS += "do_gcc_stash_builddir" do_gcc_stash_builddir[sstate-inputdirs] = "${BUILDDIRSTASH}" do_gcc_stash_builddir[sstate-outputdirs] = "${STAGING_DIR}-components/${BUILD_ARCH}/gcc-stashed-builddir${COMPILERINITIAL}-${TARGET_SYS}"