summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-27 01:23:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-30 16:39:06 +0100
commit2b851b99f5f2092b3db0f0743e44733b356514d0 (patch)
tree433ed82df75cb533100c9b4da33ec1183a9c37e1 /meta
parente078edbf99f733c04ec8ca50ff10d2200b6d14d4 (diff)
downloadpoky-2b851b99f5f2092b3db0f0743e44733b356514d0.tar.gz
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. (From OE-Core rev: 19448a50c106684ee7e3862f759418c982363a29) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 3412aa89a8..3df21737e6 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -102,8 +102,16 @@ FILES_${PN}-doc = "\
102 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ 102 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
103" 103"
104 104
105do_compile () {
106 oe_runmake all-host
107}
108
105do_install () { 109do_install () {
106 oe_runmake 'DESTDIR=${D}' install-host 110 oe_runmake 'DESTDIR=${D}' install-host
111
112 # Add unwind.h, it comes from libgcc which we don't want to build again
113 install ${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/gcc/${TARGET_SYS}/${BINV}/include/unwind.h ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/
114
107 # Info dir listing isn't interesting at this point so remove it if it exists. 115 # Info dir listing isn't interesting at this point so remove it if it exists.
108 if [ -e "${D}${infodir}/dir" ]; then 116 if [ -e "${D}${infodir}/dir" ]; then
109 rm -f ${D}${infodir}/dir 117 rm -f ${D}${infodir}/dir