diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-12.0.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-12.0.inc | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-12.0.inc b/meta/recipes-devtools/gcc/gcc-12.0.inc new file mode 100644 index 0000000000..3b7adf5cb7 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-12.0.inc | |||
@@ -0,0 +1,110 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | # Third digit in PV should be incremented after a minor release | ||
4 | |||
5 | PV = "12.0.1" | ||
6 | |||
7 | # BINV should be incremented to a revision after a minor gcc release | ||
8 | |||
9 | BINV = "12.0.1" | ||
10 | |||
11 | MAJOR = "12" | ||
12 | SNAPSHOT = "20220313" | ||
13 | |||
14 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:" | ||
15 | |||
16 | DEPENDS =+ "mpfr gmp libmpc zlib flex-native" | ||
17 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native" | ||
18 | |||
19 | LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only" | ||
20 | |||
21 | LIC_FILES_CHKSUM = "\ | ||
22 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
23 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
24 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
25 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
26 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ | ||
27 | " | ||
28 | |||
29 | #RELEASE ?= "5b2ac9b40c325e9209c0bd55955db84aad4a0cc5" | ||
30 | #BASEURI ?= "https://github.com/gcc-mirror/gcc/archive/${RELEASE}.zip;downloadfilename=gcc-${PV}-${RELEASE}.zip" | ||
31 | |||
32 | BASEURI ?= "https://mirror.koddos.net/gcc/snapshots/${MAJOR}-${SNAPSHOT}/gcc-${MAJOR}-${SNAPSHOT}.tar.xz \ | ||
33 | " | ||
34 | SRC_URI = "\ | ||
35 | ${BASEURI} \ | ||
36 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
37 | file://0002-gcc-poison-system-directories.patch \ | ||
38 | file://0004-64-bit-multilib-hack.patch \ | ||
39 | file://0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | ||
40 | file://0009-cpp-honor-sysroot.patch \ | ||
41 | file://0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | ||
42 | file://0014-libtool.patch \ | ||
43 | file://0015-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | ||
44 | file://0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | ||
45 | file://0017-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ | ||
46 | file://0019-Ensure-target-gcc-headers-can-be-included.patch \ | ||
47 | file://0020-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ | ||
48 | file://0023-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ | ||
49 | file://0024-handle-sysroot-support-for-nativesdk-gcc.patch \ | ||
50 | file://0025-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ | ||
51 | file://0028-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ | ||
52 | file://0033-Re-introduce-spe-commandline-options.patch \ | ||
53 | file://0034-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ | ||
54 | file://0035-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch \ | ||
55 | file://0036-mingw32-Enable-operation_not_supported.patch \ | ||
56 | file://0037-libatomic-Do-not-enforce-march-on-aarch64.patch \ | ||
57 | file://0006-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch \ | ||
58 | file://0001-Fix-install-path-of-linux64.h.patch \ | ||
59 | " | ||
60 | SRC_URI[sha256sum] = "979d8cbe9b2ed2ab4434f52097754e004a207cf6541aea3e167c5d0f74957633" | ||
61 | |||
62 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${MAJOR}-${SNAPSHOT}" | ||
63 | |||
64 | # For dev release snapshotting | ||
65 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}" | ||
66 | #B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
67 | |||
68 | # Language Overrides | ||
69 | FORTRAN = "" | ||
70 | JAVA = "" | ||
71 | |||
72 | SSP ?= "--disable-libssp" | ||
73 | SSP:mingw32 = "--enable-libssp" | ||
74 | |||
75 | EXTRA_OECONF_BASE = "\ | ||
76 | ${SSP} \ | ||
77 | --enable-libitm \ | ||
78 | --enable-lto \ | ||
79 | --disable-bootstrap \ | ||
80 | --with-system-zlib \ | ||
81 | ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ | ||
82 | --enable-linker-build-id \ | ||
83 | --with-ppl=no \ | ||
84 | --with-cloog=no \ | ||
85 | --enable-checking=release \ | ||
86 | --enable-cheaders=c_global \ | ||
87 | --without-isl \ | ||
88 | " | ||
89 | |||
90 | EXTRA_OECONF_INITIAL = "\ | ||
91 | --disable-libgomp \ | ||
92 | --disable-libitm \ | ||
93 | --disable-libquadmath \ | ||
94 | --with-system-zlib \ | ||
95 | --disable-lto \ | ||
96 | --disable-plugin \ | ||
97 | --enable-linker-build-id \ | ||
98 | --enable-decimal-float=no \ | ||
99 | --without-isl \ | ||
100 | --disable-libssp \ | ||
101 | " | ||
102 | |||
103 | EXTRA_OECONF_PATHS = "\ | ||
104 | --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \ | ||
105 | --with-sysroot=/not/exist \ | ||
106 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | ||
107 | " | ||
108 | |||
109 | # Is a binutils 2.26 issue, not gcc | ||
110 | CVE_CHECK_IGNORE += "CVE-2021-37322" | ||