diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-24 13:18:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-26 10:44:27 +0000 |
commit | 42ed1d8ac9799e41544c2da93069ecc6f86cbded (patch) | |
tree | 0a67a6c18c1964c048c8a821fddf7da7de506c95 /meta/recipes-devtools/gcc/gcc-common.inc | |
parent | 1cec0f3bf4fa784e91ee4cdb66376361ecbff18e (diff) | |
download | poky-42ed1d8ac9799e41544c2da93069ecc6f86cbded.tar.gz |
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.
(From OE-Core rev: dcf15ccf3cc9d55e77228ba8d526f967fc9791b4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index d17ba29d1d..44e7c2891c 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -8,6 +8,16 @@ NATIVEDEPS = "" | |||
8 | inherit autotools gettext texinfo | 8 | inherit autotools gettext texinfo |
9 | 9 | ||
10 | BPN = "gcc" | 10 | BPN = "gcc" |
11 | COMPILERINITIAL = "" | ||
12 | COMPILERDEP = "virtual/${MLPREFIX}${TARGET_PREFIX}gcc${COMPILERINITIAL}:do_gcc_stash_builddir" | ||
13 | COMPILERDEP_class-nativesdk = "virtual/${TARGET_PREFIX}gcc${COMPILERINITIAL}-crosssdk:do_gcc_stash_builddir" | ||
14 | |||
15 | python extract_stashed_builddir () { | ||
16 | src = d.expand("${STAGING_DIR}-components/${BUILD_ARCH}/gcc-stashed-builddir${COMPILERINITIAL}-${TARGET_SYS}") | ||
17 | dest = d.getVar("B") | ||
18 | oe.path.copyhardlinktree(src, dest) | ||
19 | staging_processfixme([src + "/fixmepath"], dest, dest, dest, d) | ||
20 | } | ||
11 | 21 | ||
12 | def get_gcc_float_setting(bb, d): | 22 | def get_gcc_float_setting(bb, d): |
13 | if d.getVar('ARMPKGSFX_EABI') == "hf" and d.getVar('TRANSLATED_TARGET_ARCH') == "arm": | 23 | if d.getVar('ARMPKGSFX_EABI') == "hf" and d.getVar('TRANSLATED_TARGET_ARCH') == "arm": |