summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross-initial.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-initial.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-initial.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
index 81845386f9..3870168863 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc
@@ -38,10 +38,11 @@ do_configure_prepend () {
38} 38}
39 39
40do_compile () { 40do_compile () {
41 oe_runmake all-gcc all-target-libgcc 41 oe_runmake all-gcc configure-target-libgcc
42} 42}
43do_install () { 43do_install () {
44 oe_runmake 'DESTDIR=${D}' install-gcc install-target-libgcc 44 ( cd ${B}/${TARGET_SYS}/libgcc; oe_runmake 'DESTDIR=${D}' install-unwind_h )
45 oe_runmake 'DESTDIR=${D}' install-gcc
45 46
46 # We don't really need this (here shares/ contains man/, info/, locale/). 47 # We don't really need this (here shares/ contains man/, info/, locale/).
47 rm -rf ${D}${datadir}/ 48 rm -rf ${D}${datadir}/
@@ -64,6 +65,14 @@ do_install () {
64 # so we overwirte the generated include-fixed/limits.h for gcc-cross-initial 65 # so we overwirte the generated include-fixed/limits.h for gcc-cross-initial
65 # to get rid references to real limits.h 66 # to get rid references to real limits.h
66 cp gcc/include-fixed/limits.h ${D}${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed/limits.h 67 cp gcc/include-fixed/limits.h ${D}${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed/limits.h
68
69 # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
70 case ${PN} in
71 *gcc-cross-initial|*gcc-crosssdk-initial)
72 dest=${D}/${includedir}/gcc-build-internal-initial-${MULTIMACH_TARGET_SYS}
73 hardlinkdir . $dest
74 ;;
75 esac
67} 76}
68# 77#
69# Override the default sysroot staging copy since this won't look like a target system 78# Override the default sysroot staging copy since this won't look like a target system