blob: 349c3e1154d348d7a35cedbca670c125ebe1d163 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001LIC_FILES_CHKSUM="\
2 file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
3 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\
4 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\
5 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6\
6 file://gas/COPYING;md5=d32239bcb673463ab874e80d47fae504\
7 file://include/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\
8 file://include/COPYING3;md5=d32239bcb673463ab874e80d47fae504\
9 file://libiberty/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7\
10 file://bfd/COPYING;md5=d32239bcb673463ab874e80d47fae504\
11 "
12
13def binutils_branch_version(d):
14 pvsplit = d.getVar('PV').split('.')
15 return pvsplit[0] + "_" + pvsplit[1]
16
Brad Bishop00e122a2019-10-05 11:10:57 -040017# When upgrading to 2.33, please make sure there is no trailing .0, so
18# that upstream version check can work correctly.
Brad Bishop19323692019-04-05 15:28:33 -040019PV = "2.32.0"
20CVE_VERSION = "2.32"
21BINUPV = "${@binutils_branch_version(d)}"
22#BRANCH = "binutils-${BINUPV}-branch"
23BRANCH ?= "binutils-2_32-branch"
24
25UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
26
27SRCREV ?= "b8c1f608db9ef3edd483d21a921d1fbedc71df6f"
28BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${BRANCH};protocol=git"
29SRC_URI = "\
30 ${BINUTILS_GIT_URI} \
31 file://0003-configure-widen-the-regexp-for-SH-architectures.patch \
32 file://0004-Point-scripts-location-to-libdir.patch \
33 file://0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
34 file://0006-Use-libtool-2.4.patch \
35 file://0007-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
36 file://0008-warn-for-uses-of-system-directories-when-cross-linki.patch \
37 file://0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
38 file://0010-Change-default-emulation-for-mips64-linux.patch \
39 file://0011-Add-support-for-Netlogic-XLP.patch \
40 file://0012-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
41 file://0013-Detect-64-bit-MIPS-targets.patch \
42 file://0014-sync-with-OE-libtool-changes.patch \
43 file://0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040044 file://CVE-2019-9074.patch \
45 file://CVE-2019-9075.patch \
46 file://CVE-2019-9076.patch \
47 file://CVE-2019-9077.patch \
Brad Bishop96ff1982019-08-19 13:50:42 -040048 file://CVE-2019-9071.patch \
49 file://CVE-2019-12972.patch \
Brad Bishopc68388fc2019-08-26 01:33:31 -040050 file://CVE-2019-14250.patch \
51 file://CVE-2019-14444.patch \
Brad Bishop64c979e2019-11-04 13:55:29 -050052 file://CVE-2019-17450.patch \
53 file://CVE-2019-17451.patch \
Brad Bishop19323692019-04-05 15:28:33 -040054"
55S = "${WORKDIR}/git"
56
57do_configure_prepend () {
58 rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim
59}