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.inc145
1 files changed, 0 insertions, 145 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
deleted file mode 100644
index fe9fb65b8d..0000000000
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ /dev/null
@@ -1,145 +0,0 @@
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 "
82SRC_URI[md5sum] = "cc308a0891e778cfda7a151ab8a6e762"
83SRC_URI[sha256sum] = "8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084"
84
85S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
86B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
87
88# Language Overrides
89FORTRAN = ""
90JAVA = ""
91
92EXTRA_OECONF_BASE = " --enable-lto \
93 --enable-libssp \
94 --disable-bootstrap \
95 --disable-libmudflap \
96 --with-system-zlib \
97 --with-linker-hash-style=${LINKER_HASH_STYLE} \
98 --enable-linker-build-id \
99 --with-ppl=no \
100 --with-cloog=no \
101 --enable-checking=release \
102 --enable-cheaders=c_global "
103
104EXTRA_OECONF_INITIAL = "--disable-libmudflap \
105 --disable-libgomp \
106 --disable-libssp \
107 --disable-libquadmath \
108 --with-system-zlib \
109 --disable-lto \
110 --disable-plugin \
111 --enable-decimal-float=no"
112
113EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \
114 --disable-libgomp \
115 --disable-libquadmath \
116 --with-system-zlib \
117 --disable-lto \
118 --disable-plugin \
119 --disable-libssp"
120
121EXTRA_OECONF_append_libc-uclibc = " --disable-decimal-float "
122
123EXTRA_OECONF_PATHS = " \
124 --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
125 --with-sysroot=${STAGING_DIR_TARGET} \
126 --with-build-sysroot=${STAGING_DIR_TARGET}"
127
128do_configure_prepend () {
129 # teach gcc to find correct target includedir when checking libc ssp support
130 mkdir -p ${B}/gcc
131 echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe
132 cat ${S}/gcc/defaults.h | grep -v "\#endif.*GCC_DEFAULTS_H" > ${B}/gcc/defaults.h.new
133 cat >>${B}/gcc/defaults.h.new <<_EOF
134#ifndef STANDARD_STARTFILE_PREFIX_1
135#define STANDARD_STARTFILE_PREFIX_1 "${SYSTEMLIBS}"
136#endif
137#ifndef STANDARD_STARTFILE_PREFIX_2
138#define STANDARD_STARTFILE_PREFIX_2 "${SYSTEMLIBS1}"
139#endif
140#define SYSTEMLIBS_DIR "${SYSTEMLIBS}"
141#endif /* ! GCC_DEFAULTS_H */
142_EOF
143 mv ${B}/gcc/defaults.h.new ${B}/gcc/defaults.h
144}
145