summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-cross_csl-arm-2008q3.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-09 21:03:30 +0000
committerKoen Kooi <koen@openembedded.org>2008-10-09 21:03:30 +0000
commit0f4e1f9d799ce8eb98b2aed805a361a61012828b (patch)
tree7aa52bdbd9edd0a83928fa4d3769316e8be78916 /packages/gcc/gcc-cross_csl-arm-2008q3.bb
parent05a24bde30b8799ad5431b29ba4f35242b3e97b2 (diff)
gcc cross: add 4.3.2+csl2008q3, the latest csl release
* it builds, but needs Khems sysroot and flags patches to work properly
Diffstat (limited to 'packages/gcc/gcc-cross_csl-arm-2008q3.bb')
-rw-r--r--packages/gcc/gcc-cross_csl-arm-2008q3.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/gcc/gcc-cross_csl-arm-2008q3.bb b/packages/gcc/gcc-cross_csl-arm-2008q3.bb
new file mode 100644
index 0000000000..d2a1102776
--- /dev/null
+++ b/packages/gcc/gcc-cross_csl-arm-2008q3.bb
@@ -0,0 +1,26 @@
+PR = "r0"
+
+require gcc-csl-arm-2008q3.inc
+require gcc-cross4.inc
+require gcc-configure-cross.inc
+require gcc-package-cross.inc
+
+SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "
+
+EXTRA_OECONF += "--disable-multilib --disable-libunwind-exceptions --with-mpfr=${STAGING_DIR_NATIVE}${layout_exec_prefix}"
+
+#We don't want i686 linux ending up in the CFLAGS_FOR_TARGET like this: -isystem/OE/angstrom-tmp/staging/i686-linux/usr/include
+CFLAGS = ""
+CXXFLAGS = ""
+LDFLAGS = ""
+
+# staging-linkage and cross-linkage recipes don't work anymore, so do it by hand for this backwards CSL toolchain
+do_compile_prepend() {
+ ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/crt*.o ${CROSS_DIR}/${TARGET_SYS}/lib/
+ ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/ld-* ${CROSS_DIR}/${TARGET_SYS}/lib/
+ ln -sf ${STAGING_DIR_TARGET}/lib/libc* ${CROSS_DIR}/${TARGET_SYS}/lib/
+ sed -i -e 's:gcc_no_link=yes:gcc_no_link=no:' ${S}/libstdc++-v3/configure
+
+}
+
+ARCH_FLAGS_FOR_TARGET += " -L${STAGING_DIR_TARGET}${layout_libdir} -isystem${STAGING_DIR_TARGET}${layout_includedir}"