summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-04 11:22:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-06 08:24:41 +0100
commit3f8d0969d12f42da636929b8e406b0a227eae0e1 (patch)
treebcd047f511a3cc4c64d1b01bbc7e18a585361c23 /meta/recipes-devtools/gcc
parent646c754b53590018ac86f8dcced60772e2f94c6d (diff)
downloadpoky-3f8d0969d12f42da636929b8e406b0a227eae0e1.tar.gz
gcc-cross: Fix header file corruption problems
gcc's makefile can move files, replacing with the contents "timestamp". This corrupts the headers and breaks things like the gcc testsuite. Add in a fix to ensure the headers are not corrupted through their hardlink copies. (From OE-Core rev: 7e75ed5aec86b94fe7fadbed606619f84a2e58e7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index e417b89873..95af6d89a9 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -212,6 +212,9 @@ do_gcc_stash_builddir[cleandirs] = "${BUILDDIRSTASH}"
212do_gcc_stash_builddir () { 212do_gcc_stash_builddir () {
213 dest=${BUILDDIRSTASH} 213 dest=${BUILDDIRSTASH}
214 hardlinkdir . $dest 214 hardlinkdir . $dest
215 # Makefile does move-if-change which can end up with 'timestamp' as file contents so break links to those files
216 rm $dest/gcc/include/*.h
217 cp gcc/include/*.h $dest/gcc/include/
215} 218}
216addtask do_gcc_stash_builddir after do_compile before do_install 219addtask do_gcc_stash_builddir after do_compile before do_install
217SSTATETASKS += "do_gcc_stash_builddir" 220SSTATETASKS += "do_gcc_stash_builddir"