diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-15.1.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-15.1.inc | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-15.1.inc b/meta/recipes-devtools/gcc/gcc-15.1.inc new file mode 100644 index 0000000000..af29db8e5b --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-15.1.inc | |||
@@ -0,0 +1,117 @@ | |||
1 | require gcc-common.inc | ||
2 | |||
3 | # Third digit in PV should be incremented after a minor release | ||
4 | |||
5 | PV = "15.1.0" | ||
6 | |||
7 | # BINV should be incremented to a revision after a minor gcc release | ||
8 | |||
9 | BINV = "15.1.0" | ||
10 | |||
11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:" | ||
12 | |||
13 | TOOLCHAIN = "gcc" | ||
14 | |||
15 | DEPENDS =+ "mpfr gmp libmpc zlib zstd flex-native" | ||
16 | NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native" | ||
17 | |||
18 | LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only" | ||
19 | |||
20 | LIC_FILES_CHKSUM = "\ | ||
21 | file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
22 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
23 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
24 | file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
25 | file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \ | ||
26 | " | ||
27 | # snapshot from git | ||
28 | #RELEASE ?= "9b6bf076c11cba0f9ccdace63e8b4044b1a858ea" | ||
29 | #BASEURI ?= "https://git.linaro.org/toolchain/gcc.git/snapshot/gcc-${RELEASE}.tar.gz" | ||
30 | #SOURCEDIR = "gcc-${RELEASE}" | ||
31 | #BASEURI ?= "https://repo.or.cz/official-gcc.git/snapshot/${RELEASE}.tar.gz;downloadfilename=gcc-${PV}-${RELEASE}.tar.gz" | ||
32 | #SOURCEDIR ?= "official-gcc-${@'${RELEASE}'[0:7]}" | ||
33 | #SRC_URI[sha256sum] = "41bf7be5dc029112a9df625266e7de030ffc36ff3638f270b180ae8c91fe6449" | ||
34 | |||
35 | # from snapshot | ||
36 | #RELEASE ?= "15-20250420" | ||
37 | #RELEASE ?= "15.1.0-RC-20250418" | ||
38 | #BASEURI ?= "https://gcc.gnu.org/pub/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz" | ||
39 | #SOURCEDIR ?= "gcc-${RELEASE}" | ||
40 | #SRC_URI[sha256sum] = "fe18624317c6c662977eea8b5a506ec6c132fc11c7a8d53e2f6d21b139b0af3c" | ||
41 | |||
42 | # official release | ||
43 | RELEASE ?= "${PV}" | ||
44 | BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz" | ||
45 | SOURCEDIR ?= "gcc-${PV}" | ||
46 | SRC_URI[sha256sum] = "e2b09ec21660f01fecffb715e0120265216943f038d0e48a9868713e54f06cea" | ||
47 | |||
48 | SRC_URI = "${BASEURI} \ | ||
49 | file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ | ||
50 | file://0002-gcc-poison-system-directories.patch \ | ||
51 | file://0003-64-bit-multilib-hack.patch \ | ||
52 | file://0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch \ | ||
53 | file://0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | ||
54 | file://0006-cpp-honor-sysroot.patch \ | ||
55 | file://0007-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | ||
56 | file://0008-libtool.patch \ | ||
57 | file://0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | ||
58 | file://0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | ||
59 | file://0011-aarch64-Fix-include-paths-when-S-B.patch \ | ||
60 | file://0012-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \ | ||
61 | file://0013-Ensure-target-gcc-headers-can-be-included.patch \ | ||
62 | file://0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ | ||
63 | file://0015-libcc1-fix-libcc1-s-install-path-and-rpath.patch \ | ||
64 | file://0016-handle-sysroot-support-for-nativesdk-gcc.patch \ | ||
65 | file://0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ | ||
66 | file://0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ | ||
67 | file://0019-Re-introduce-spe-commandline-options.patch \ | ||
68 | file://0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ | ||
69 | file://0021-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch \ | ||
70 | file://0022-libatomic-Do-not-enforce-march-on-aarch64.patch \ | ||
71 | file://0023-Fix-install-path-of-linux64.h.patch \ | ||
72 | file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \ | ||
73 | file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ | ||
74 | file://0026-arm-fully-validate-mem_noofs_operand-PR120351.patch \ | ||
75 | file://0026-fix-incorrect-preprocessor-line-numbers.patch \ | ||
76 | " | ||
77 | |||
78 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" | ||
79 | S = "${UNPACKDIR}/${SOURCEDIR}" | ||
80 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | ||
81 | |||
82 | # Language Overrides | ||
83 | FORTRAN ?= "" | ||
84 | |||
85 | SSP ?= "--disable-libssp" | ||
86 | SSP:mingw32 = "--enable-libssp" | ||
87 | |||
88 | EXTRA_OECONF_BASE = "\ | ||
89 | ${SSP} \ | ||
90 | --enable-libitm \ | ||
91 | --enable-lto \ | ||
92 | --disable-bootstrap \ | ||
93 | --with-system-zlib \ | ||
94 | ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ | ||
95 | --enable-linker-build-id \ | ||
96 | --with-ppl=no \ | ||
97 | --with-cloog=no \ | ||
98 | --enable-checking=release \ | ||
99 | --enable-cheaders=c_global \ | ||
100 | --without-isl \ | ||
101 | " | ||
102 | |||
103 | EXTRA_OECONF_INITIAL = "\ | ||
104 | --disable-libgomp \ | ||
105 | --disable-libitm \ | ||
106 | --disable-libquadmath \ | ||
107 | --with-system-zlib \ | ||
108 | --disable-lto \ | ||
109 | --disable-plugin \ | ||
110 | --enable-linker-build-id \ | ||
111 | --enable-decimal-float=no \ | ||
112 | --without-isl \ | ||
113 | --disable-libssp \ | ||
114 | " | ||
115 | |||
116 | CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc" | ||
117 | CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed from version 14.0+" | ||