/[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.291 Revision 1.292
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.291 2013/11/22 13:35:09 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.292 2014/01/17 18:14:23 mpagano 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>
459 kernel_is ge 2 6 27 && \ 459 kernel_is ge 2 6 27 && \
460 [[ -z "${K_DEBLOB_AVAILABLE}" ]] && \ 460 [[ -z "${K_DEBLOB_AVAILABLE}" ]] && \
461 kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \ 461 kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \
462 K_DEBLOB_AVAILABLE=1 462 K_DEBLOB_AVAILABLE=1
463 if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then 463 if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then
464 IUSE="${IUSE} deblob" 464 IUSE="${IUSE} deblob python"
465 # Reflect that kernels contain firmware blobs unless otherwise 465 # Reflect that kernels contain firmware blobs unless otherwise
466 # stripped 466 # stripped
467 LICENSE="${LICENSE} !deblob? ( freedist )" 467 LICENSE="${LICENSE} !deblob? ( freedist )"
468 468
469 if [[ -n KV_MINOR ]]; then 469 if [[ -n KV_MINOR ]]; then
486 DEBLOB_CHECK_URI="mirror://gentoo/${DEBLOB_CHECK_A}" 486 DEBLOB_CHECK_URI="mirror://gentoo/${DEBLOB_CHECK_A}"
487 fi 487 fi
488 DEBLOB_URI="${DEBLOB_HOMEPAGE}/${DEBLOB_URI_PATH}/${DEBLOB_A}" 488 DEBLOB_URI="${DEBLOB_HOMEPAGE}/${DEBLOB_URI_PATH}/${DEBLOB_A}"
489 HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}" 489 HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}"
490 490
491 DEPEND+=" deblob? ( =dev-lang/python-2* )" 491 #deblob script currently only works with python-2
492 PYTHON_DEPEND="python? 2"
493 PYTHON_USE_WITH_OPT="python"
494 inherit python
495
492 KERNEL_URI="${KERNEL_URI} 496 KERNEL_URI="${KERNEL_URI}
493 deblob? ( 497 deblob? (
494 ${DEBLOB_URI} 498 ${DEBLOB_URI}
495 ${DEBLOB_CHECK_URI} 499 ${DEBLOB_CHECK_URI}
496 )" 500 )"
1223 cd "${S}" 1227 cd "${S}"
1224 [[ ${ETYPE} == headers ]] && compile_headers 1228 [[ ${ETYPE} == headers ]] && compile_headers
1225 1229
1226 if [[ $K_DEBLOB_AVAILABLE == 1 ]] && use deblob ; then 1230 if [[ $K_DEBLOB_AVAILABLE == 1 ]] && use deblob ; then
1227 echo ">>> Running deblob script ..." 1231 echo ">>> Running deblob script ..."
1228 EPYTHON="python2" sh "${T}/${DEBLOB_A}" --force || die "Deblob script failed to run!!!" 1232 sh "${T}/${DEBLOB_A}" --force || die "Deblob script failed to run!!!"
1229 fi 1233 fi
1230} 1234}
1231 1235
1232# if you leave it to the default src_test, it will run make to 1236# if you leave it to the default src_test, it will run make to
1233# find whether test/check targets are present; since "make test" 1237# find whether test/check targets are present; since "make test"

Legend:
Removed from v.1.291  
changed lines
  Added in v.1.292

  ViewVC Help
Powered by ViewVC 1.1.20