blob: 5ae9ec4226f110490c9fbf1a282d4cdfb96c8516 [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.
Andrew Geissler635e0e42020-08-21 15:58:33 -050019PV = "2.35"
20CVE_VERSION = "2.35"
Andrew Geissler82c905d2020-04-13 13:39:40 -050021BINUPV = "${@binutils_branch_version(d)}"
22#BRANCH = "binutils-${BINUPV}-branch"
Andrew Geissler635e0e42020-08-21 15:58:33 -050023BRANCH ?= "binutils-2_35-branch"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
25UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
26
Andrew Geissler635e0e42020-08-21 15:58:33 -050027SRCREV ?= "89a9065674a14a8bd94bb326b27d19a2f3583efb"
Andrew Geissler82c905d2020-04-13 13:39:40 -050028BINUTILS_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 \
Andrew Geissler635e0e42020-08-21 15:58:33 -050034 file://0007-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch \
35 file://0008-warn-for-uses-of-system-directories-when-cross-linki.patch \
36 file://0009-Change-default-emulation-for-mips64-linux.patch \
37 file://0010-Add-support-for-Netlogic-XLP.patch \
38 file://0011-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch \
39 file://0012-Detect-64-bit-MIPS-targets.patch \
40 file://0013-Use-libtool-2.4.patch \
41 file://0014-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050042 file://0015-sync-with-OE-libtool-changes.patch \
43 file://0016-Check-for-clang-before-checking-gcc-version.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050044"
45S = "${WORKDIR}/git"