diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-30 16:50:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-01 22:33:07 +0100 |
commit | 77a8ddd87c20a1736d9777f94f42f349b8a7d7ff (patch) | |
tree | f1cbf8a99cfb365ebbf7a07d00ea5f7469af1209 /meta/recipes-devtools/gcc/gcc-cross.inc | |
parent | 963faf7a7f7260775c31b4d6265d840d910d1f3e (diff) | |
download | poky-77a8ddd87c20a1736d9777f94f42f349b8a7d7ff.tar.gz |
gcc-cross: Clean up fixed-includes
We had interesting failures where building gcc-cross-powerpc with 5.0 kernel
headers, then building eudev after moving to 5.2 headers failed.
gcc-cross doesn't rebuild when linux-libc-headers changes due to its
listing in SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS. This shouldn't matter but
fixincludes as adding asm-generic/socket.h to its filtered list which
was then replacing the real header with an older version. This mismatch
lead to build failures.
We trust the Linux kernel headers to be ANSI safe so lets just clear out
any headers and trust the originals to be correct.
(From OE-Core rev: f0fcaa88b7b2977c2cb35b060747442ee9ff3dcd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index 6222c2e8c9..e417b89873 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc | |||
@@ -196,6 +196,8 @@ do_install () { | |||
196 | # We use libiberty from binutils | 196 | # We use libiberty from binutils |
197 | find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f | 197 | find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f |
198 | find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f | 198 | find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f |
199 | |||
200 | find ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include-fixed -type f -not -name "README" -not -name limits.h -not -name syslimits.h | xargs rm -f | ||
199 | } | 201 | } |
200 | 202 | ||
201 | do_package[noexec] = "1" | 203 | do_package[noexec] = "1" |