blob: 8eba9599c447d0a4a3b6d08a76bd0f33eec48907 [file] [log] [blame]
Patrick Williams2194f502022-10-16 14:26:09 -05001require recipes-devtools/gcc/gcc-common.inc
2
3# Third digit in PV should be incremented after a minor release
4ARM_GCC_VERSION = "11.3"
5ARM_GCC_SUB_VERSION = "rel1"
6PV = "arm-${ARM_GCC_VERSION}"
7CVE_VERSION = "11.3"
8
9# BINV should be incremented to a revision after a minor gcc release
10
11BINV = "11.3.1"
12
13MMYY = "22.08"
14RELEASE = "20${MMYY}"
15PR = "r${RELEASE}"
16
17FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc-arm-${ARM_GCC_VERSION}:${FILE_DIRNAME}/gcc-arm-${ARM_GCC_VERSION}/backport:"
18
19DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
20NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
21
22LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
23
24LIC_FILES_CHKSUM = "\
25 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
26 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
27 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6 \
28 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
29 file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8 \
30"
31
32BASEURI ?= "https://developer.arm.com/-/media/Files/downloads/gnu/${ARM_GCC_VERSION}.${ARM_GCC_SUB_VERSION}/srcrel/arm-gnu-toolchain-src-snapshot-${ARM_GCC_VERSION}.${ARM_GCC_SUB_VERSION}.tar.xz"
33SRC_URI = "\
34 ${BASEURI} \
35 file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
36 file://0002-gcc-poison-system-directories.patch \
37 file://0003-64-bit-multilib-hack.patch \
38 file://0004-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \
39 file://0005-cpp-honor-sysroot.patch \
40 file://0006-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \
41 file://0007-gcc-Fix-argument-list-too-long-error.patch \
42 file://0008-libtool.patch \
43 file://0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \
44 file://0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch \
45 file://0011-Avoid-using-libdir-from-.la-which-usually-points-to-.patch \
46 file://0012-Ensure-target-gcc-headers-can-be-included.patch \
47 file://0013-Don-t-search-host-directory-during-relink-if-inst_pr.patch \
48 file://0014-libcc1-fix-libcc1-s-install-path-and-rpath.patch \
49 file://0015-Makefile.in-Ensure-build-CPP-CPPFLAGS-is-used-for-bu.patch \
50 file://0016-If-CXXFLAGS-contains-something-unsupported-by-the-bu.patch \
51 file://0017-handle-sysroot-support-for-nativesdk-gcc.patch \
52 file://0018-Search-target-sysroot-gcc-version-specific-dirs-with.patch \
53 file://0019-nios2-Define-MUSL_DYNAMIC_LINKER.patch \
54 file://0020-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \
55 file://0021-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \
56 file://0022-sync-gcc-stddef.h-with-musl.patch \
57 file://0023-Re-introduce-spe-commandline-options.patch \
58 file://0024-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \
59 file://0025-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch \
60 file://0026-mingw32-Enable-operation_not_supported.patch \
61 file://0027-libatomic-Do-not-enforce-march-on-aarch64.patch \
62 file://0028-debug-101473-apply-debug-prefix-maps-before-checksum.patch \
63 file://0029-Fix-install-path-of-linux64.h.patch \
64 file://0030-rust-recursion-limit.patch \
65 file://0001-CVE-2021-42574.patch \
66 file://0002-CVE-2021-42574.patch \
67 file://0003-CVE-2021-42574.patch \
68 file://0004-CVE-2021-42574.patch \
69 file://0001-CVE-2021-46195.patch \
70"
71SRC_URI[sha256sum] = "4fb9a3c58c94deb91bd75bc503962fae347f05d4d47a0e079141350f08919fb5"
72
73S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/arm-gnu-toolchain-src-snapshot-${ARM_GCC_VERSION}.${ARM_GCC_SUB_VERSION}"
74
75# For dev release snapshotting
76#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
77#B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
78
79# Language Overrides
80FORTRAN = ""
81JAVA = ""
82
83SSP ?= "--disable-libssp"
84SSP:mingw32 = "--enable-libssp"
85
86EXTRA_OECONF_BASE = "\
87 ${SSP} \
88 --enable-libitm \
89 --enable-lto \
90 --disable-bootstrap \
91 --with-system-zlib \
92 ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \
93 --enable-linker-build-id \
94 --with-ppl=no \
95 --with-cloog=no \
96 --enable-checking=release \
97 --enable-cheaders=c_global \
98 --without-isl \
99"
100
101EXTRA_OECONF_INITIAL = "\
102 --disable-libgomp \
103 --disable-libitm \
104 --disable-libquadmath \
105 --with-system-zlib \
106 --disable-lto \
107 --disable-plugin \
108 --enable-linker-build-id \
109 --enable-decimal-float=no \
110 --without-isl \
111 --disable-libssp \
112"
113
114EXTRA_OECONF:append_aarchilp32 = " --with-abi=ilp32"
115
116EXTRA_OECONF_PATHS = "\
117 --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
118 --with-sysroot=/not/exist \
119 --with-build-sysroot=${STAGING_DIR_TARGET} \
120"
121
122# Is a binutils 2.26 issue, not gcc
123CVE_CHECK_IGNORE += "CVE-2021-37322"