/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.230 Revision 1.231
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.230 2010/04/26 07:26:06 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.231 2010/04/26 08:05:10 robbat2 Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Original author: John Mylchreest <johnm@gentoo.org> 8# Original author: John Mylchreest <johnm@gentoo.org>
82 82
83HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}" 83HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ ${HOMEPAGE}"
84[[ -z ${LICENSE} ]] && \ 84[[ -z ${LICENSE} ]] && \
85 LICENSE="GPL-2" 85 LICENSE="GPL-2"
86 86
87# This is the latest KV_PATCH of the deblob tool available from the
88# libre-sources upstream.
89[[ -z ${DEBLOB_MAX_VERSION} ]] && DEBLOB_MAX_VERSION=33
90
87# No need to run scanelf/strip on kernel sources/headers (bug #134453). 91# No need to run scanelf/strip on kernel sources/headers (bug #134453).
88RESTRICT="binchecks strip" 92RESTRICT="binchecks strip"
89 93
90# set LINUX_HOSTCFLAGS if not already set 94# set LINUX_HOSTCFLAGS if not already set
91[[ -z ${LINUX_HOSTCFLAGS} ]] && \ 95[[ -z ${LINUX_HOSTCFLAGS} ]] && \
307 DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel" 311 DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel"
308 IUSE="symlink build" 312 IUSE="symlink build"
309 313
310 # Bug #266157, deblob for libre support 314 # Bug #266157, deblob for libre support
311 if [[ -z ${K_PREDEBLOBBED} ]] ; then 315 if [[ -z ${K_PREDEBLOBBED} ]] ; then
312 if kernel_is ge 2 6 27 && [[ -z ${K_DEBLOB_AVAILABLE} ]] ; then 316 if [[ -z ${K_DEBLOB_AVAILABLE} ]] ; then
317 kernel_is ge 2 6 27 && \
318 kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \
319 K_DEBLOB_AVAILABLE=1
320 fi
321 if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then
313 IUSE="${IUSE} deblob" 322 IUSE="${IUSE} deblob"
314 # Reflect that kernels contain firmware blobs unless otherwise 323 # Reflect that kernels contain firmware blobs unless otherwise
315 # stripped 324 # stripped
316 LICENSE="${LICENSE} !deblob? ( freedist )" 325 LICENSE="${LICENSE} !deblob? ( freedist )"
317
318 # This to to avoid us triggering some QA warnings
319 K_DEBLOB_AVAILABLE=1
320 326
321 DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" 327 DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
322 DEBLOB_A="deblob-${DEBLOB_PV}" 328 DEBLOB_A="deblob-${DEBLOB_PV}"
323 DEBLOB_HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" 329 DEBLOB_HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
324 HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}" 330 HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}"

Legend:
Removed from v.1.230  
changed lines
  Added in v.1.231

  ViewVC Help
Powered by ViewVC 1.1.20