summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2010-04-26 08:05:10 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2010-04-26 08:05:10 +0000
commit53207ca802ae8ffbe40d5ed8558f1490bfb2ca0c (patch)
tree1218e30af79b3310b45a5bb1af26e6085431cdbb
parentx86 stable wrt bug #314737 (diff)
downloadgentoo-2-53207ca802ae8ffbe40d5ed8558f1490bfb2ca0c.tar.gz
gentoo-2-53207ca802ae8ffbe40d5ed8558f1490bfb2ca0c.tar.bz2
gentoo-2-53207ca802ae8ffbe40d5ed8558f1490bfb2ca0c.zip
Keep a mostly-internal variable of the latest version of the deblob tool releases by the upstream libre-sources guys, this saves us updating K_DEBLOB_AVAILABLE quite so often, but we need to remember to redigest sources ebuilds when we DO change the this variable instead.
-rw-r--r--eclass/kernel-2.eclass16
1 files changed, 11 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 433e3b7c937d..0bf17691f2e7 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.230 2010/04/26 07:26:06 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.231 2010/04/26 08:05:10 robbat2 Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -84,6 +84,10 @@ HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}"
[[ -z ${LICENSE} ]] && \
LICENSE="GPL-2"
+# This is the latest KV_PATCH of the deblob tool available from the
+# libre-sources upstream.
+[[ -z ${DEBLOB_MAX_VERSION} ]] && DEBLOB_MAX_VERSION=33
+
# No need to run scanelf/strip on kernel sources/headers (bug #134453).
RESTRICT="binchecks strip"
@@ -309,14 +313,16 @@ if [[ ${ETYPE} == sources ]]; then
# Bug #266157, deblob for libre support
if [[ -z ${K_PREDEBLOBBED} ]] ; then
- if kernel_is ge 2 6 27 && [[ -z ${K_DEBLOB_AVAILABLE} ]] ; then
+ if [[ -z ${K_DEBLOB_AVAILABLE} ]] ; then
+ kernel_is ge 2 6 27 && \
+ kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \
+ K_DEBLOB_AVAILABLE=1
+ fi
+ if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then
IUSE="${IUSE} deblob"
# Reflect that kernels contain firmware blobs unless otherwise
# stripped
LICENSE="${LICENSE} !deblob? ( freedist )"
-
- # This to to avoid us triggering some QA warnings
- K_DEBLOB_AVAILABLE=1
DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
DEBLOB_A="deblob-${DEBLOB_PV}"