]> code.ossystems Code Review - openembedded-core.git/commit
gcc: Split builddir saving into its own sstate task
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jan 2017 13:18:12 +0000 (13:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2017 10:41:08 +0000 (10:41 +0000)
commitdcf15ccf3cc9d55e77228ba8d526f967fc9791b4
treefa20c9b2dee61d2f481846c5889eb40b94372374
parent525bbfd08dacba84c92da0ab34310a85369526b7
gcc: Split builddir saving into its own sstate task

When we stashed the gcc build directory for use in generating the various runtimes
we were being lazy and just used the staging directory. With recipe specific
sysroots this means we're copying a large chunk of data around with the cross
compiler which we don't really need in most cases.

Separate out the data into its own task and inject this into the configure
step. We have to do that here since autotools will wipe out ${B} if it thinks
we're rebuilding and we therefore have to time its recreation after that.

This also takes the opportunity to remove some pointless (as far as I can tell)
conditionals from the do_install code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-common.inc
meta/recipes-devtools/gcc/gcc-cross-initial.inc
meta/recipes-devtools/gcc/gcc-cross.inc
meta/recipes-devtools/gcc/gcc-runtime.inc
meta/recipes-devtools/gcc/gcc-sanitizers.inc
meta/recipes-devtools/gcc/libgcc-common.inc
meta/recipes-devtools/gcc/libgcc-initial.inc
meta/recipes-devtools/gcc/libgcc.inc
meta/recipes-devtools/gcc/libgfortran.inc