Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | LIC_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 | |
| 13 | def 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). |
| 21 | UPSTREAM_VERSION_UNKNOWN = "1" |
| 22 | PV = "2.32.0" |
| 23 | CVE_VERSION = "2.32" |
| 24 | BINUPV = "${@binutils_branch_version(d)}" |
| 25 | #BRANCH = "binutils-${BINUPV}-branch" |
| 26 | BRANCH ?= "binutils-2_32-branch" |
| 27 | |
| 28 | UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)" |
| 29 | |
| 30 | SRCREV ?= "b8c1f608db9ef3edd483d21a921d1fbedc71df6f" |
| 31 | BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=${BRANCH};protocol=git" |
| 32 | SRC_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 \ |
| 47 | " |
| 48 | S = "${WORKDIR}/git" |
| 49 | |
| 50 | do_configure_prepend () { |
| 51 | rm -rf ${S}/gdb ${S}/libdecnumber ${S}/readline ${S}/sim |
| 52 | } |