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