summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-09-25 23:30:15 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-09-26 00:18:00 +0100
commitcf3086b3e4f3fc319336a66abc7c8f63fdad41c5 (patch)
tree7c685b9b33e46426f07ff86241987e36be1993f4 /eclass/toolchain-binutils.eclass
parentx11-drivers/nvidia-drivers: Raise kernel sources version. (diff)
downloadgentoo-cf3086b3e4f3fc319336a66abc7c8f63fdad41c5.tar.gz
gentoo-cf3086b3e4f3fc319336a66abc7c8f63fdad41c5.tar.bz2
gentoo-cf3086b3e4f3fc319336a66abc7c8f63fdad41c5.zip
toolchain-binutils.eclass: add PATCH_BINUTILS_VER handling
PATCH_BINUTILS_VER is handy when one wants to apply patchset from a different binutils version. For example to apply a 2.29 patchset on top of 2.29.1 version ebuild will refer to it as: PATCH_BINUTILS_VER="2.29" Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r--eclass/toolchain-binutils.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 8c366aa4a6b1..3fbbc57e638e 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -78,8 +78,9 @@ add_src_uri() {
set -- mirror://gentoo https://dev.gentoo.org/~vapier/dist https://dev.gentoo.org/~tamiko/distfiles
SRC_URI="${SRC_URI} ${@/%//${a}}"
}
-add_src_uri binutils-${BVER}-patches-${PATCHVER}.tar ${PATCHVER}
-add_src_uri binutils-${BVER}-uclibc-patches-${UCLIBC_PATCHVER}.tar ${UCLIBC_PATCHVER}
+PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${BVER}}
+add_src_uri binutils-${PATCH_BINUTILS_VER}-patches-${PATCHVER}.tar ${PATCHVER}
+add_src_uri binutils-${PATCH_BINUTILS_VER}-uclibc-patches-${UCLIBC_PATCHVER}.tar ${UCLIBC_PATCHVER}
add_src_uri elf2flt-${ELF2FLT_VER}.tar ${ELF2FLT_VER}
if version_is_at_least 2.18 ; then