am-benchmarks: Add support for am387x-evm machine
[openembedded.git] / recipes / gcc / gcc-4.1.2.inc
blob9df67e24e9b1d51bcf373a21b3a0a48ff0983771
1 require gcc-common.inc
3 DEPENDS = "mpfr gmp"
4 NATIVEDEPS = "mpfr-native gmp-native"
6 COMPATIBLE_TARGET_SYS = "."
8 INC_PR = "r28"
10 SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2;name=archive \
11         file://100-uclibc-conf.patch \
12         file://110-arm-eabi.patch \
13         file://200-uclibc-locale.patch \
14         file://300-libstdc++-pic.patch \
15         file://301-missing-execinfo_h.patch \
16         file://302-c99-snprintf.patch \
17         file://303-c99-complex-ugly-hack.patch \
18         file://304-index_macro.patch \
19         file://602-sdk-libstdc++-includes.patch \
20         file://740-sh-pr24836.patch \
21         file://800-arm-bigendian.patch \
22         file://arm-nolibfloat.patch \
23         file://arm-softfloat.patch \
24         file://gcc41-configure.in.patch \
25         file://arm-thumb.patch \
26         file://arm-thumb-cache.patch \
27         file://zecke-xgcc-cpp.patch \
28         file://unbreak-armv4t.patch \
29         file://fix-ICE-in-arm_unwind_emit_set.diff \
30         file://cache-amnesia.patch \
31         file://gfortran.patch \
32         file://gcc-4.0.2-e300c2c3.patch \
33         file://pr34130.patch \
34         file://Makefile.in.patch \
35        "
37 SRC_URI_append_sh3  = " file://sh3-installfix-fixheaders.patch "
39 SRC_URI_append_nios2 = " \
40         file://gcc-nios2.patch \
41         file://gcc-config-nios2.patch \
42         file://nios2-lib-flags.patch \
43         "
45 SRC_URI_avr32 = "http://www.angstrom-distribution.org/unstable/sources/gcc-4.1.2-atmel.1.1.0.tar.gz;name=atmel \
46 #           file://100-uclibc-conf.patch \
47 #           file://200-uclibc-locale.patch \
48 #           file://300-libstdc++-pic.patch \
49            file://301-missing-execinfo_h.patch \
50            file://302-c99-snprintf.patch \
51            file://303-c99-complex-ugly-hack.patch \
52            file://304-index_macro.patch \
53            file://602-sdk-libstdc++-includes.patch \
54            file://gcc41-configure.in.patch \
55            file://zecke-xgcc-cpp.patch \
56            file://cache-amnesia.patch \
57            "
59 do_compile_prepend_avr32() {
60        ln -sf ${S}/libstdc++-v3/config/os/uclibc/ ${S}/libstdc++-v3/config/os/uclibc-linux
63 # with sysroot this change is not needed for gcc 4.3+ but its needed
64 # for older compilers because of bug in libtool as well as this PR
65 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291
66 # we append the .la munging specially for libstdc++ and libsupc++ here
67 # This change if needed for other compilers in use should be put
68 # in there specific inc file.
70 do_install_append () {
71         for d in ${target_libdir} ${target_libdir}/nof; do
72                 sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libsupc++.la || true
73                 sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-lm '|" ${D}$d/libstdc++.la || true
74         done
77 # Language Overrides
78 FORTRAN = ""
79 JAVA = ""
81 EXTRA_OECONF_BASE = "--disable-libssp --disable-libmudflap"
82 EXTRA_OECONF_INITIAL = "--disable-libmudflap --disable-libssp"
83 EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap --disable-libssp"
86 ARM_INSTRUCTION_SET = "arm"
88 SRC_URI[archive.md5sum] = "a4a3eb15c96030906d8494959eeda23c"
89 SRC_URI[archive.sha256sum] = "cfc0efbcc6fcde0d416a32dfb246c9df022515a312683fac412578c4fd09a9bc"
90 SRC_URI[atmel.md5sum] = "4bb4b376f82af84dbd40563112adf471"
91 SRC_URI[atmel.sha256sum] = "a6a9d6a66eac090a823124733759b8f1360c79acc0bd9e1e725e80e8742bad3d"