[oe-commits] Richard Purdie : gcc-target: Limit compile to host targets, don' t build runtimes.

git at git.openembedded.org git at git.openembedded.org
Wed Apr 30 15:39:47 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 19448a50c106684ee7e3862f759418c982363a29
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=19448a50c106684ee7e3862f759418c982363a29

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sun Apr 27 01:23:46 2014 +0100

gcc-target: Limit compile to host targets, don't build runtimes.

Currently the gcc builds are building copies of the target libraries
that we never use (it isn't installed in do_install). This is a rather
pointless waste of cpu time.

Instead just compile the host targets. Comparing the package output of
this compared to a previous build shows that the unwind.h header is
missing since its provided by gcc. Fix this simply by copying it in.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-target.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 3412aa8..3df2173 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -102,8 +102,16 @@ FILES_${PN}-doc = "\
   ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
 "
 
+do_compile () {
+	oe_runmake all-host
+}
+
 do_install () {
 	oe_runmake 'DESTDIR=${D}' install-host
+
+	# Add unwind.h, it comes from libgcc which we don't want to build again
+	install ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/
+
 	# Info dir listing isn't interesting at this point so remove it if it exists.
 	if [ -e "${D}${infodir}/dir" ]; then
 		rm -f ${D}${infodir}/dir



More information about the Openembedded-commits mailing list