]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross: Ensure do_gcc_stash_builddir happens before do_build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jan 2017 10:13:58 +0000 (10:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Jan 2017 10:20:50 +0000 (10:20 +0000)
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 <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-cross.inc

index f3ae4fe6b1bccf2751acd390f23f4c81a55c49cf..fa5cfbd5d12c2c10a59659e654a345fc39c74245 100644 (file)
@@ -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}"