diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 148 |
1 files changed, 148 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..d99e268819 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc | |||
@@ -0,0 +1,148 @@ | |||
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.1" | ||
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.1" | ||
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://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
34 | file://0002-uclibc-conf.patch \ | ||
35 | file://0003-gcc-uclibc-locale-ctype_touplow_t.patch \ | ||
36 | file://0004-uclibc-locale.patch \ | ||
37 | file://0005-uclibc-locale-no__x.patch \ | ||
38 | file://0006-uclibc-locale-wchar_fix.patch \ | ||
39 | file://0007-uclibc-locale-update.patch \ | ||
40 | file://0008-missing-execinfo_h.patch \ | ||
41 | file://0009-c99-snprintf.patch \ | ||
42 | file://0010-c99-complex-ugly-hack.patch \ | ||
43 | file://0011-index_macro.patch \ | ||
44 | file://0012-libmudflap-susv3-legacy.patch \ | ||
45 | file://0013-libstdc-namespace.patch \ | ||
46 | file://0014-sh-pr24836.patch \ | ||
47 | file://0015-arm-Use-TARGET_ENDIAN_OPTION-for-determining-MULTILI.patch \ | ||
48 | file://0016-gcc-poison-system-directories.patch \ | ||
49 | file://0017-gcc-poison-dir-extend.patch \ | ||
50 | file://0018-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ | ||
51 | file://0019-64-bit-multilib-hack.patch \ | ||
52 | file://0020-optional-libstdc.patch \ | ||
53 | file://0021-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ | ||
54 | file://0022-COLLECT_GCC_OPTIONS.patch \ | ||
55 | file://0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | ||
56 | file://0024-PR-target-32219.patch \ | ||
57 | file://0025-fortran-cross-compile-hack.patch \ | ||
58 | file://0026-libgcc-sjlj-check.patch \ | ||
59 | file://0027-cpp-honor-sysroot.patch \ | ||
60 | file://0028-MIPS64-Default-to-N64-ABI.patch \ | ||
61 | file://0029-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | ||
62 | file://0030-gcc-Fix-argument-list-too-long-error.patch \ | ||
63 | file://0031-Disable-sdt.patch \ | ||
64 | file://0032-libtool.patch \ | ||
65 | file://0033-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | ||
66 | file://0034-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | ||
67 | file://0035-wcast-qual-PR-55383.patch \ | ||
68 | file://0036-PR-target-56102.patch \ | ||
69 | file://0037-gcc-4.8-PR56797.patch \ | ||
70 | file://0038-gcc-4.8-build-args.patch \ | ||
71 | file://0039-gcc-4.8-PR57717.patch \ | ||
72 | file://0040-fix-g++-sysroot.patch \ | ||
73 | file://0041-libtool-avoid-libdir.patch \ | ||
74 | file://0042-pr57748.patch \ | ||
75 | file://0043-cpp.patch \ | ||
76 | file://0044-gengtypes.patch \ | ||
77 | file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \ | ||
78 | file://add-install-ptest-to-Makefile.patch \ | ||
79 | file://run-ptest \ | ||
80 | file://0046-libatomic-deptracking.patch \ | ||
81 | file://0047-repomembug.patch \ | ||
82 | " | ||
83 | SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304" | ||
84 | SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813" | ||
85 | |||
86 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | ||
87 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
88 | |||
89 | # Language Overrides | ||
90 | FORTRAN = "" | ||
91 | JAVA = "" | ||
92 | |||
93 | LTO = "--enable-lto" | ||
94 | |||
95 | EXTRA_OECONF_BASE = " ${LTO} \ | ||
96 | --enable-libssp \ | ||
97 | --disable-bootstrap \ | ||
98 | --disable-libmudflap \ | ||
99 | --with-system-zlib \ | ||
100 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ | ||
101 | --enable-linker-build-id \ | ||
102 | --with-ppl=no \ | ||
103 | --with-cloog=no \ | ||
104 | --enable-checking=release \ | ||
105 | --enable-cheaders=c_global " | ||
106 | |||
107 | EXTRA_OECONF_INITIAL = "--disable-libmudflap \ | ||
108 | --disable-libgomp \ | ||
109 | --disable-libssp \ | ||
110 | --disable-libquadmath \ | ||
111 | --with-system-zlib \ | ||
112 | --disable-lto \ | ||
113 | --disable-plugin \ | ||
114 | --enable-decimal-float=no" | ||
115 | |||
116 | EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \ | ||
117 | --disable-libgomp \ | ||
118 | --disable-libquadmath \ | ||
119 | --with-system-zlib \ | ||
120 | --disable-lto \ | ||
121 | --disable-plugin \ | ||
122 | --disable-libssp" | ||
123 | |||
124 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " | ||
125 | |||
126 | EXTRA_OECONF_PATHS = " \ | ||
127 | --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \ | ||
128 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
129 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
130 | |||
131 | do_configure_prepend () { | ||
132 | # teach gcc to find correct target includedir when checking libc ssp support | ||
133 | mkdir -p ${B}/gcc | ||
134 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | ||
135 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new | ||
136 | cat >>${B}/gcc/defaults.h.new <<_EOF | ||
137 | #ifndef STANDARD_STARTFILE_PREFIX_1 | ||
138 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" | ||
139 | #endif | ||
140 | #ifndef STANDARD_STARTFILE_PREFIX_2 | ||
141 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" | ||
142 | #endif | ||
143 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" | ||
144 | #endif /* ! GCC_DEFAULTS_H */ | ||
145 | _EOF | ||
146 | mv ${B}/gcc/defaults.h.new ${B}/gcc/defaults.h | ||
147 | } | ||
148 | |||