diff options
-rw-r--r-- | meta/packages/gcc/gcc-cross-initial_csl-arm-2008q1.bb | 12 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-cross_csl-arm-2008q1.bb | 26 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-csl-arm-2008q1.inc | 50 | ||||
-rw-r--r-- | meta/packages/gcc/gcc_csl-arm-2008q1.bb | 5 |
4 files changed, 93 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-cross-initial_csl-arm-2008q1.bb b/meta/packages/gcc/gcc-cross-initial_csl-arm-2008q1.bb new file mode 100644 index 0000000000..99656dbe83 --- /dev/null +++ b/meta/packages/gcc/gcc-cross-initial_csl-arm-2008q1.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require gcc-cross_${PV}.bb | ||
2 | require gcc-cross-initial.inc | ||
3 | |||
4 | S = "${WORKDIR}/gcc-4.2" | ||
5 | |||
6 | EXTRA_OECONF += "--disable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap " | ||
7 | |||
8 | # Hack till we fix *libc properly | ||
9 | do_stage_append() { | ||
10 | ln -sf ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/include-fixed/* ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/include/ | ||
11 | } | ||
12 | |||
diff --git a/meta/packages/gcc/gcc-cross_csl-arm-2008q1.bb b/meta/packages/gcc/gcc-cross_csl-arm-2008q1.bb new file mode 100644 index 0000000000..01b5bdacc4 --- /dev/null +++ b/meta/packages/gcc/gcc-cross_csl-arm-2008q1.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | PR = "r2" | ||
2 | |||
3 | require gcc-csl-arm-2008q1.inc | ||
4 | require gcc-cross4.inc | ||
5 | require gcc-configure-cross.inc | ||
6 | require gcc-package-cross.inc | ||
7 | |||
8 | SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 " | ||
9 | |||
10 | EXTRA_OECONF += "--disable-multilib --disable-libunwind-exceptions --with-mpfr=${STAGING_DIR_NATIVE}${layout_exec_prefix}" | ||
11 | |||
12 | #We don't want i686 linux ending up in the CFLAGS_FOR_TARGET like this: -isystem/OE/angstrom-tmp/staging/i686-linux/usr/include | ||
13 | CFLAGS = "" | ||
14 | CXXFLAGS = "" | ||
15 | LDFLAGS = "" | ||
16 | |||
17 | # staging-linkage and cross-linkage recipes don't work anymore, so do it by hand for this backwards CSL toolchain | ||
18 | do_compile_prepend() { | ||
19 | ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/crt*.o ${CROSS_DIR}/${TARGET_SYS}/lib/ | ||
20 | ln -sf ${STAGING_DIR_TARGET}${layout_libdir}/ld-* ${CROSS_DIR}/${TARGET_SYS}/lib/ | ||
21 | ln -sf ${STAGING_DIR_TARGET}/lib/libc* ${CROSS_DIR}/${TARGET_SYS}/lib/ | ||
22 | sed -i -e 's:gcc_no_link=yes:gcc_no_link=no:' ${S}/libstdc++-v3/configure | ||
23 | |||
24 | } | ||
25 | |||
26 | ARCH_FLAGS_FOR_TARGET += " -L${STAGING_DIR_TARGET}${layout_libdir} -isystem${STAGING_DIR_TARGET}${layout_includedir}" | ||
diff --git a/meta/packages/gcc/gcc-csl-arm-2008q1.inc b/meta/packages/gcc/gcc-csl-arm-2008q1.inc new file mode 100644 index 0000000000..d4f6ef1e37 --- /dev/null +++ b/meta/packages/gcc/gcc-csl-arm-2008q1.inc | |||
@@ -0,0 +1,50 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | BINV = "4.2.3" | ||
4 | PV = "4.2.3+csl-arm-2008q1-126" | ||
5 | |||
6 | FILESDIR = "${FILE_DIRNAME}/gcc-csl-arm" | ||
7 | |||
8 | SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-eabi/arm-2008q1-126-arm-none-eabi.src.tar.bz2 \ | ||
9 | # file://100-uclibc-conf.patch;patch=1 \ | ||
10 | # file://103-uclibc-conf-noupstream.patch;patch=1 \ | ||
11 | # file://200-uclibc-locale.patch;patch=1 \ | ||
12 | # file://203-uclibc-locale-no__x.patch;patch=1 \ | ||
13 | # file://204-uclibc-locale-wchar_fix.patch;patch=1 \ | ||
14 | # file://205-uclibc-locale-update.patch;patch=1 \ | ||
15 | # file://300-libstdc++-pic.patch;patch=1 \ | ||
16 | # file://302-c99-snprintf.patch;patch=1 \ | ||
17 | # file://303-c99-complex-ugly-hack.patch;patch=1 \ | ||
18 | # file://304-index_macro.patch;patch=1 \ | ||
19 | # file://305-libmudflap-susv3-legacy.patch;patch=1 \ | ||
20 | # file://306-libstdc++-namespace.patch;patch=1 \ | ||
21 | # file://307-locale_facets.patch;patch=1 \ | ||
22 | # file://402-libbackend_dep_gcov-iov.h.patch;patch=1 \ | ||
23 | # file://602-sdk-libstdc++-includes.patch;patch=1 \ | ||
24 | file://gcc41-configure.in.patch;patch=1 \ | ||
25 | file://arm-nolibfloat.patch;patch=1 \ | ||
26 | file://arm-softfloat.patch;patch=1 \ | ||
27 | file://zecke-xgcc-cpp.patch;patch=1 \ | ||
28 | # file://gfortran.patch;patch=1 \ | ||
29 | # file://fortran-static-linking.patch;patch=1 \ | ||
30 | # file://gcc-configure-no-fortran.patch;patch=1;pnum=1 \ | ||
31 | # file://gcc-new-makeinfo.patch;patch=1 \ | ||
32 | " | ||
33 | |||
34 | |||
35 | S = "${WORKDIR}/gcc-4.2" | ||
36 | |||
37 | do_unpack2() { | ||
38 | cd ${WORKDIR} | ||
39 | tar -xvjf ./arm-2008q1-126-arm-none-eabi/gcc-2008q1-126.tar.bz2 | ||
40 | } | ||
41 | |||
42 | # Language Overrides | ||
43 | FORTRAN = "" | ||
44 | #FORTRAN_linux-gnueabi = ",fortran" | ||
45 | #JAVA = ",java" | ||
46 | |||
47 | EXTRA_OECONF_BASE = "--enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap" | ||
48 | ARM_INSTRUCTION_SET = "arm" | ||
49 | |||
50 | addtask unpack2 after do_unpack before do_patch | ||
diff --git a/meta/packages/gcc/gcc_csl-arm-2008q1.bb b/meta/packages/gcc/gcc_csl-arm-2008q1.bb new file mode 100644 index 0000000000..832167ca4e --- /dev/null +++ b/meta/packages/gcc/gcc_csl-arm-2008q1.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | PR = "r1" | ||
2 | |||
3 | require gcc-${PV}.inc | ||
4 | require gcc-configure-target.inc | ||
5 | require gcc-package-target.inc | ||