diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /meta/recipes-devtools/gcc/gcc-4.8.inc | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 143 |
1 files changed, 143 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..4920342566 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc | |||
@@ -0,0 +1,143 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | # Third digit in PV should be incremented after a minor release | ||
4 | |||
5 | PV = "4.8.2" | ||
6 | |||
7 | # BINV should be incremented to a revision after a minor gcc release | ||
8 | |||
9 | BINV = "4.8.2" | ||
10 | |||
11 | FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.8' ], d)}" | ||
12 | |||
13 | DEPENDS =+ "mpfr gmp libmpc zlib" | ||
14 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" | ||
15 | |||
16 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
19 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
20 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
21 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
22 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8" | ||
23 | |||
24 | SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | ||
25 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
26 | file://0002-uclibc-conf.patch \ | ||
27 | file://0003-gcc-uclibc-locale-ctype_touplow_t.patch \ | ||
28 | file://0004-uclibc-locale.patch \ | ||
29 | file://0005-uclibc-locale-no__x.patch \ | ||
30 | file://0006-uclibc-locale-wchar_fix.patch \ | ||
31 | file://0007-uclibc-locale-update.patch \ | ||
32 | file://0008-missing-execinfo_h.patch \ | ||
33 | file://0009-c99-snprintf.patch \ | ||
34 | file://0010-c99-complex-ugly-hack.patch \ | ||
35 | file://0011-index_macro.patch \ | ||
36 | file://0012-libmudflap-susv3-legacy.patch \ | ||
37 | file://0013-libstdc-namespace.patch \ | ||
38 | file://0014-sh-pr24836.patch \ | ||
39 | file://0015-arm-Use-TARGET_ENDIAN_OPTION-for-determining-MULTILI.patch \ | ||
40 | file://0016-gcc-poison-system-directories.patch \ | ||
41 | file://0017-gcc-poison-dir-extend.patch \ | ||
42 | file://0018-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch \ | ||
43 | file://0019-64-bit-multilib-hack.patch \ | ||
44 | file://0020-optional-libstdc.patch \ | ||
45 | file://0021-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch \ | ||
46 | file://0022-COLLECT_GCC_OPTIONS.patch \ | ||
47 | file://0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | ||
48 | file://0024-PR-target-32219.patch \ | ||
49 | file://0025-fortran-cross-compile-hack.patch \ | ||
50 | file://0026-libgcc-sjlj-check.patch \ | ||
51 | file://0027-cpp-honor-sysroot.patch \ | ||
52 | file://0028-MIPS64-Default-to-N64-ABI.patch \ | ||
53 | file://0029-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | ||
54 | file://0030-gcc-Fix-argument-list-too-long-error.patch \ | ||
55 | file://0031-Disable-sdt.patch \ | ||
56 | file://0032-libtool.patch \ | ||
57 | file://0033-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | ||
58 | file://0034-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | ||
59 | file://0035-wcast-qual-PR-55383.patch \ | ||
60 | file://0037-gcc-4.8-PR56797.patch \ | ||
61 | file://0038-gcc-4.8-build-args.patch \ | ||
62 | file://0039-gcc-4.8-PR57717.patch \ | ||
63 | file://0040-fix-g++-sysroot.patch \ | ||
64 | file://0041-libtool-avoid-libdir.patch \ | ||
65 | file://0042-pr57748.patch \ | ||
66 | file://0043-cpp.patch \ | ||
67 | file://0044-gengtypes.patch \ | ||
68 | file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \ | ||
69 | file://add-install-ptest-to-Makefile.patch \ | ||
70 | file://run-ptest \ | ||
71 | file://0046-libatomic-deptracking.patch \ | ||
72 | file://0047-repomembug.patch \ | ||
73 | file://0048-PR58854_fix_arm_apcs_epilogue.patch \ | ||
74 | file://0049-Enable-SPE-AltiVec-generation-on-powepc-linux-target.patch \ | ||
75 | file://0050-PR-target-58595.patch \ | ||
76 | file://0051-fix-unwind-race.patch \ | ||
77 | " | ||
78 | SRC_URI[md5sum] = "a3d7d63b9cb6b6ea049469a0c4a43c9d" | ||
79 | SRC_URI[sha256sum] = "09dc2276c73424bbbfda1dbddc62bbbf900c9f185acf7f3e1d773ce2d7e3cdc8" | ||
80 | |||
81 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | ||
82 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
83 | |||
84 | # Language Overrides | ||
85 | FORTRAN = "" | ||
86 | JAVA = "" | ||
87 | |||
88 | LTO = "--enable-lto" | ||
89 | |||
90 | EXTRA_OECONF_BASE = " ${LTO} \ | ||
91 | --enable-libssp \ | ||
92 | --disable-bootstrap \ | ||
93 | --disable-libmudflap \ | ||
94 | --with-system-zlib \ | ||
95 | --with-linker-hash-style=${LINKER_HASH_STYLE} \ | ||
96 | --enable-linker-build-id \ | ||
97 | --with-ppl=no \ | ||
98 | --with-cloog=no \ | ||
99 | --enable-checking=release \ | ||
100 | --enable-cheaders=c_global " | ||
101 | |||
102 | EXTRA_OECONF_INITIAL = "--disable-libmudflap \ | ||
103 | --disable-libgomp \ | ||
104 | --disable-libssp \ | ||
105 | --disable-libquadmath \ | ||
106 | --with-system-zlib \ | ||
107 | --disable-lto \ | ||
108 | --disable-plugin \ | ||
109 | --enable-decimal-float=no" | ||
110 | |||
111 | EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \ | ||
112 | --disable-libgomp \ | ||
113 | --disable-libquadmath \ | ||
114 | --with-system-zlib \ | ||
115 | --disable-lto \ | ||
116 | --disable-plugin \ | ||
117 | --disable-libssp" | ||
118 | |||
119 | EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float " | ||
120 | |||
121 | EXTRA_OECONF_PATHS = " \ | ||
122 | --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \ | ||
123 | --with-sysroot=${STAGING_DIR_TARGET} \ | ||
124 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
125 | |||
126 | do_configure_prepend () { | ||
127 | # teach gcc to find correct target includedir when checking libc ssp support | ||
128 | mkdir -p ${B}/gcc | ||
129 | echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe | ||
130 | cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new | ||
131 | cat >>${B}/gcc/defaults.h.new <<_EOF | ||
132 | #ifndef STANDARD_STARTFILE_PREFIX_1 | ||
133 | #define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}" | ||
134 | #endif | ||
135 | #ifndef STANDARD_STARTFILE_PREFIX_2 | ||
136 | #define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}" | ||
137 | #endif | ||
138 | #define SYSTEMLIBS_DIR "${SYSTEMLIBS}" | ||
139 | #endif /* ! GCC_DEFAULTS_H */ | ||
140 | _EOF | ||
141 | mv ${B}/gcc/defaults.h.new ${B}/gcc/defaults.h | ||
142 | } | ||
143 | |||