/[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.71 Revision 1.73
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.71 2009/09/08 12:34:21 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.73 2009/10/11 11:48:33 maekke 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 :)
380 3) for((y=0; y<$((3 - ${#KV_PATCH})); y++)); do test="${test}0"; done; 380 3) for((y=0; y<$((3 - ${#KV_PATCH})); y++)); do test="${test}0"; done;
381 test="${test}${KV_PATCH}";; 381 test="${test}${KV_PATCH}";;
382 *) die "Error in kernel-2_kernel_is(): Too many parameters.";; 382 *) die "Error in kernel-2_kernel_is(): Too many parameters.";;
383 esac 383 esac
384 done 384 done
385 385
386 [ ${test} ${operator} ${value} ] && return 0 || return 1 386 [ ${test} ${operator} ${value} ] && return 0 || return 1
387} 387}
388 388
389get_localversion() { 389get_localversion() {
390 local lv_list i x 390 local lv_list i x
564# @FUNCTION: linux-info_get_any_version 564# @FUNCTION: linux-info_get_any_version
565# @DESCRIPTION: 565# @DESCRIPTION:
566# This attempts to find the version of the sources, and otherwise falls back to 566# This attempts to find the version of the sources, and otherwise falls back to
567# the version of the running kernel. 567# the version of the running kernel.
568linux-info_get_any_version() { 568linux-info_get_any_version() {
569 get_version 569 get_version
570 if [[ $? -ne 0 ]]; then 570 if [[ $? -ne 0 ]]; then
571 ewarn "Unable to calculate Linux Kernel version for build, attempting to use running version" 571 ewarn "Unable to calculate Linux Kernel version for build, attempting to use running version"
572 get_running_version 572 get_running_version
573 fi 573 fi
574} 574}
575 575
576 576
577# ebuild check functions 577# ebuild check functions
636 config_required=1 636 config_required=1
637 break 637 break
638 fi 638 fi
639 done 639 done
640 640
641 # TODO: After we enable the new code for /proc/config.gz, we need to
642 # change this back to linux_config_exists.
641 if [[ ${config_required} == 0 ]]; then 643 if [[ ${config_required} == 0 ]]; then
642 # In the case where we don't require a .config, we can now bail out 644 # In the case where we don't require a .config, we can now bail out
643 # if the user has no .config as there is nothing to do. Otherwise 645 # if the user has no .config as there is nothing to do. Otherwise
644 # code later will cause a failure due to missing .config. 646 # code later will cause a failure due to missing .config.
645 if ! linux_config_exists; then 647 if ! linux_config_src_exists; then
646 ewarn "Unable to check for the following kernel config options due" 648 ewarn "Unable to check for the following kernel config options due"
647 ewarn "to absence of any configured kernel sources or compiled" 649 ewarn "to absence of any configured kernel sources or compiled"
648 ewarn "config:" 650 ewarn "config:"
649 for config in ${CONFIG_CHECK}; do 651 for config in ${CONFIG_CHECK}; do
650 ewarn " - ${config#\~}" 652 ewarn " - ${config#\~}"

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

  ViewVC Help
Powered by ViewVC 1.1.20