blob: 49e6827c1fcb90020545830a854f18e657567447 [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
17# Actual upstream version is 2.32 (without the .0), so we have to set
18# UPSTREAM_VERSION_UNKNOWN to avoid the version check failure. The line can
19# be removed when a new version of binutils is released (if the PV is then
20# correctly set to match the upstream version tag).
21UPSTREAM_VERSION_UNKNOWN = "1"
22PV = "2.32.0"
23CVE_VERSION = "2.32"
24BINUPV = "${@binutils_branch_version(d)}"
25#BRANCH = "binutils-${BINUPV}-branch"
26BRANCH ?= "binutils-2_32-branch"
27
28UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
29
30SRCREV ?= "b8c1f608db9ef3edd483d21a921d1fbedc71df6f"
31BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${BRANCH};protocol=git"
32SRC_URI = "\
33 ${BINUTILS_GIT_URI} \
34 file://0003-configure-widen-the-regexp-for-SH-architectures.patch \
35 file://0004-Point-scripts-location-to-libdir.patch \
36 file://0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
37 file://0006-Use-libtool-2.4.patch \
38 file://0007-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
39 file://0008-warn-for-uses-of-system-directories-when-cross-linki.patch \
40 file://0009-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
41 file://0010-Change-default-emulation-for-mips64-linux.patch \
42 file://0011-Add-support-for-Netlogic-XLP.patch \
43 file://0012-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
44 file://0013-Detect-64-bit-MIPS-targets.patch \
45 file://0014-sync-with-OE-libtool-changes.patch \
46 file://0015-binutils-enable-x86_64-pep-for-producing-EFI-binarie.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040047 file://CVE-2019-9074.patch \
48 file://CVE-2019-9075.patch \
49 file://CVE-2019-9076.patch \
50 file://CVE-2019-9077.patch \
Brad Bishop19323692019-04-05 15:28:33 -040051"
52S = "${WORKDIR}/git"
53
54do_configure_prepend () {
55 rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim
56}