diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc new file mode 100644 index 0000000000..25b5f2caf7 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc | |||
@@ -0,0 +1,132 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | # Third digit in PV should be incremented after a minor release | ||
4 | # happens from this branch on gcc e.g. currently its 4.7.1 | ||
5 | # when 4.7.2 is releases and we bump SRCREV beyond the release | ||
6 | # on branch then PV should be incremented to 4.7.2+svnr${SRCPV} | ||
7 | # to reflect that change | ||
8 | |||
9 | PV = "4.8.0" | ||
10 | |||
11 | # BINV should be incremented after updating to a revision | ||
12 | # after a minor gcc release (e.g. 4.7.1 or 4.7.2) has been made | ||
13 | # the value will be minor-release+1 e.g. if current minor release was | ||
14 | # 4.7.1 then the value below will have 2 which will mean 4.7.2 | ||
15 | # which will be next minor release and so on. | ||
16 | |||
17 | BINV = "4.8.0" | ||
18 | |||
19 | FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.8' ], d)}" | ||
20 | |||
21 | DEPENDS =+ "mpfr gmp libmpc zlib" | ||
22 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" | ||
23 | |||
24 | LICENSE="GPL-3.0-with-GCC-exception & GPLv3" | ||
25 | |||
26 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
27 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
28 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
29 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
30 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8" | ||
31 | |||
32 | SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | ||
33 | file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
34 | file://100-uclibc-conf.patch \ | ||
35 | file://gcc-uclibc-locale-ctype_touplow_t.patch \ | ||
36 | file://200-uclibc-locale.patch \ | ||
37 | file://203-uclibc-locale-no__x.patch; \ | ||
38 | file://204-uclibc-locale-wchar_fix.patch; \ | ||
39 | file://205-uclibc-locale-update.patch; \ | ||
40 | file://301-missing-execinfo_h.patch \ | ||
41 | file://302-c99-snprintf.patch \ | ||
42 | file://303-c99-complex-ugly-hack.patch \ | ||
43 | file://304-index_macro.patch \ | ||
44 | file://305-libmudflap-susv3-legacy.patch \ | ||
45 | file://306-libstdc++-namespace.patch \ | ||
46 | file://740-sh-pr24836.patch \ | ||
47 | file://800-arm-bigendian.patch \ | ||
48 | file://gcc-poison-system-directories.patch \ | ||
49 | file://gcc-poison-dir-extend.patch \ | ||
50 | file://gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ | ||
51 | file://64bithack.patch \ | ||
52 | file://optional_libstdc.patch \ | ||
53 | file://disable_relax_pic_calls_flag.patch \ | ||
54 | file://COLLECT_GCC_OPTIONS.patch \ | ||
55 | file://use-defaults.h-and-t-oe-in-B.patch \ | ||
56 | file://pr32219.patch \ | ||
57 | file://fortran-cross-compile-hack.patch \ | ||
58 | file://libgcc-sjlj-check.patch \ | ||
59 | file://cpp-honor-sysroot.patch \ | ||
60 | file://mips64-default-n64.patch \ | ||
61 | file://GLIBC_DYNAMIC_LINKER.patch \ | ||
62 | file://gcc-argument-list-too-long.patch \ | ||
63 | file://disablesdt.patch \ | ||
64 | file://libtool.patch \ | ||
65 | file://gcc-armv4-pass-fix-v4bx-to-ld.patch \ | ||
66 | file://use-ml-conf-files-from-B.patch \ | ||
67 | file://wcast-qual-PR55383.patch \ | ||
68 | " | ||
69 | SRC_URI[md5sum] = "e6040024eb9e761c3bea348d1fa5abb0" | ||
70 | SRC_URI[sha256sum] = "b037fe5132b71ecad2ea7141ec92292b5d32427bf90fd90cde432b1d5abacc2c" | ||
71 | |||
72 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | ||
73 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
74 | |||
75 | # Language Overrides | ||
76 | FORTRAN = "" | ||
77 | JAVA = "" | ||
78 | |||
79 | EXTRA_OECONF_BASE = " --enable-lto \ | ||
80 | --enable-libssp \ | ||
81 | --disable-bootstrap \ | ||
82 | --disable-libmudflap \ | ||
83 | --with-system-zlib \ | ||
84 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ | ||
85 | --enable-linker-build-id \ | ||
86 | --with-ppl=no \ | ||
87 | --with-cloog=no \ | ||
88 | --enable-checking=release \ | ||
89 | --enable-cheaders=c_global " | ||
90 | |||
91 | EXTRA_OECONF_INITIAL = "--disable-libmudflap \ | ||
92 | --disable-libgomp \ | ||
93 | --disable-libssp \ | ||
94 | --disable-libquadmath \ | ||
95 | --with-system-zlib \ | ||
96 | --disable-lto \ | ||
97 | --disable-plugin \ | ||
98 | --enable-decimal-float=no" | ||
99 | |||
100 | EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \ | ||
101 | --disable-libgomp \ | ||
102 | --disable-libquadmath \ | ||
103 | --with-system-zlib \ | ||
104 | --disable-lto \ | ||
105 | --disable-plugin \ | ||
106 | --disable-libssp" | ||
107 | |||
108 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " | ||
109 | |||
110 | EXTRA_OECONF_PATHS = " \ | ||
111 | --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \ | ||
112 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
113 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
114 | |||
115 | do_configure_prepend () { | ||
116 | # teach gcc to find correct target includedir when checking libc ssp support | ||
117 | mkdir -p ${B}/gcc | ||
118 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | ||
119 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new | ||
120 | cat >>${B}/gcc/defaults.h.new <<_EOF | ||
121 | #ifndef STANDARD_STARTFILE_PREFIX_1 | ||
122 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" | ||
123 | #endif | ||
124 | #ifndef STANDARD_STARTFILE_PREFIX_2 | ||
125 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" | ||
126 | #endif | ||
127 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" | ||
128 | #endif /* ! GCC_DEFAULTS_H */ | ||
129 | _EOF | ||
130 | mv ${B}/gcc/defaults.h.new ${B}/gcc/defaults.h | ||
131 | } | ||
132 | |||