diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index ec87b46219..20dbec7248 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -3,7 +3,7 @@ inherit cross-canadian | |||
3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" | 3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" |
4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
5 | 5 | ||
6 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc" | 6 | DEPENDS = "virtual/nativesdk-cross-cc virtual/cross-cc virtual/nativesdk-cross-binutils virtual/nativesdk-libc nativesdk-gettext flex-native virtual/libc" |
7 | 7 | ||
8 | GCCMULTILIB = "--enable-multilib" | 8 | GCCMULTILIB = "--enable-multilib" |
9 | 9 | ||
@@ -12,6 +12,7 @@ require gcc-configure-common.inc | |||
12 | EXTRA_OECONF += "--with-plugin-ld=ld" | 12 | EXTRA_OECONF += "--with-plugin-ld=ld" |
13 | EXTRA_OECONF_PATHS = "\ | 13 | EXTRA_OECONF_PATHS = "\ |
14 | --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \ | 14 | --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \ |
15 | --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \ | ||
15 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ | 16 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ |
16 | --with-sysroot=/not/exist \ | 17 | --with-sysroot=/not/exist \ |
17 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 18 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
@@ -63,6 +64,9 @@ do_configure () { | |||
63 | } | 64 | } |
64 | 65 | ||
65 | do_compile () { | 66 | do_compile () { |
67 | remove_sysroot_paths_from_configargs '/host' | ||
68 | remove_sysroot_paths_from_checksum_options '${STAGING_DIR_HOST}' '/host' | ||
69 | |||
66 | oe_runmake all-host configure-target-libgcc | 70 | oe_runmake all-host configure-target-libgcc |
67 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) | 71 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) |
68 | } | 72 | } |
@@ -128,7 +132,7 @@ do_install () { | |||
128 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ | 132 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ |
129 | install -d $dest | 133 | install -d $dest |
130 | suffix=${EXEEXT} | 134 | suffix=${EXEEXT} |
131 | for t in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | 135 | for t in ar as ld ld.bfd nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do |
132 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then | 136 | if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then |
133 | continue | 137 | continue |
134 | fi | 138 | fi |
@@ -171,6 +175,8 @@ do_install () { | |||
171 | done | 175 | done |
172 | done | 176 | done |
173 | done | 177 | done |
178 | |||
179 | cleanup_installed_include_fixed | ||
174 | } | 180 | } |
175 | 181 | ||
176 | ELFUTILS = "nativesdk-elfutils" | 182 | ELFUTILS = "nativesdk-elfutils" |