/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

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

Revision 1.68 Revision 1.71
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/linux-info.eclass,v 1.68 2009/09/06 23:36:04 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.71 2009/09/08 12:34:21 robbat2 Exp $
4# 4#
5# Original author: John Mylchreest <johnm@gentoo.org> 5# Original author: John Mylchreest <johnm@gentoo.org>
6# Maintainer: kernel-misc@gentoo.org 6# Maintainer: kernel-misc@gentoo.org
7# 7#
8# Please direct your bugs to the current eclass maintainer :) 8# Please direct your bugs to the current eclass maintainer :)
352 352
353# got the jist yet? 353# got the jist yet?
354 354
355kernel_is() { 355kernel_is() {
356 # if we haven't determined the version yet, we need to. 356 # if we haven't determined the version yet, we need to.
357 get_version 357 linux-info_get_any_version
358
358 local operator test value x=0 y=0 z=0 359 local operator test value x=0 y=0 z=0
359 360
360 case ${1} in 361 case ${1} in
361 -lt|lt) operator="-lt"; shift;; 362 -lt|lt) operator="-lt"; shift;;
362 -gt|gt) operator="-gt"; shift;; 363 -gt|gt) operator="-gt"; shift;;
508 fi 509 fi
509 # and if we STILL have not got it, then we better just set it to KV_DIR 510 # and if we STILL have not got it, then we better just set it to KV_DIR
510 KV_OUT_DIR="${KV_OUT_DIR:-${KV_DIR}}" 511 KV_OUT_DIR="${KV_OUT_DIR:-${KV_DIR}}"
511 512
512 KV_LOCAL="${KV_LOCAL}$(get_localversion ${KV_DIR})" 513 KV_LOCAL="${KV_LOCAL}$(get_localversion ${KV_DIR})"
513 if linux_config_exists; then 514 if linux_config_src_exists; then
514 KV_LOCAL="${KV_LOCAL}$(linux_chkconfig_string LOCALVERSION)" 515 KV_LOCAL="${KV_LOCAL}$(linux_chkconfig_string LOCALVERSION)"
515 KV_LOCAL="${KV_LOCAL//\"/}" 516 KV_LOCAL="${KV_LOCAL//\"/}"
516 517
517 # For things like git that can append extra stuff: 518 # For things like git that can append extra stuff:
518 [ -e ${KV_DIR}/scripts/setlocalversion ] && 519 [ -e ${KV_DIR}/scripts/setlocalversion ] &&
623check_extra_config() { 624check_extra_config() {
624 local config negate die error reworkmodulenames 625 local config negate die error reworkmodulenames
625 local soft_errors_count=0 hard_errors_count=0 config_required=0 626 local soft_errors_count=0 hard_errors_count=0 config_required=0
626 627
627 # if we haven't determined the version yet, we need to 628 # if we haven't determined the version yet, we need to
628 get_version 629 linux-info_get_any_version
629 630
630 # Determine if we really need a .config. The only time when we don't need 631 # Determine if we really need a .config. The only time when we don't need
631 # one is when all of the CONFIG_CHECK options are prefixed with "~". 632 # one is when all of the CONFIG_CHECK options are prefixed with "~".
632 for config in ${CONFIG_CHECK} 633 for config in ${CONFIG_CHECK}
633 do 634 do

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20