blob: f65fdb7328e22e480892c6d40e95301c70e845ce [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001LIC_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# When upgrading to 2.35, please make sure there is no trailing .0, so
18# that upstream version check can work correctly.
19PV = "2.34"
20CVE_VERSION = "2.34"
21BINUPV = "${@binutils_branch_version(d)}"
22#BRANCH = "binutils-${BINUPV}-branch"
23BRANCH ?= "binutils-2_34-branch"
24
25UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
26
27SRCREV ?= "d4b50999b3b287b5f984ade2f8734aa8c9359440"
28BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${BRANCH};protocol=git"
29SRC_URI = "\
30 ${BINUTILS_GIT_URI} \
31 file://0004-configure-widen-the-regexp-for-SH-architectures.patch \
32 file://0005-Point-scripts-location-to-libdir.patch \
33 file://0006-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
34 file://0007-Use-libtool-2.4.patch \
35 file://0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
36 file://0009-warn-for-uses-of-system-directories-when-cross-linki.patch \
37 file://0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
38 file://0011-Change-default-emulation-for-mips64-linux.patch \
39 file://0012-Add-support-for-Netlogic-XLP.patch \
40 file://0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
41 file://0014-Detect-64-bit-MIPS-targets.patch \
42 file://0015-sync-with-OE-libtool-changes.patch \
43 file://0016-Check-for-clang-before-checking-gcc-version.patch \
Andrew Geisslerc182c622020-05-15 14:13:32 -050044 file://0017-binutils-drop-redundant-program_name-definition-fno-.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050045 file://CVE-2020-0551.patch \
46"
47S = "${WORKDIR}/git"