/[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.63 Revision 1.65
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.63 2009/09/06 23:04:37 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.65 2009/09/06 23:16:37 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 :)
108# And to ensure all the weirdness with crosscompile 108# And to ensure all the weirdness with crosscompile
109inherit toolchain-funcs versionator 109inherit toolchain-funcs versionator
110 110
111EXPORT_FUNCTIONS pkg_setup 111EXPORT_FUNCTIONS pkg_setup
112 112
113DEPEND=""
114RDEPEND=""
115
116[ -z "${I_KNOW_WHAT_I_AM_DOING}" ] && \
113DEPEND="kernel_linux? ( virtual/linux-sources )" 117DEPEND="kernel_linux? ( virtual/linux-sources )"
114RDEPEND=""
115 118
116# Overwritable environment Var's 119# Overwritable environment Var's
117# --------------------------------------- 120# ---------------------------------------
118KERNEL_DIR="${KERNEL_DIR:-${ROOT}usr/src/linux}" 121KERNEL_DIR="${KERNEL_DIR:-${ROOT}usr/src/linux}"
119 122
200 ERROR=0 203 ERROR=0
201 mycat='cat' 204 mycat='cat'
202 205
203 [ -z "${1}" ] && ERROR=1 206 [ -z "${1}" ] && ERROR=1
204 [ ! -f "${2}" ] && ERROR=1 207 [ ! -f "${2}" ] && ERROR=1
205 [ "${2#.gz}" != "${2}" ] && mycat='zcat' 208 [ "${2%.gz}" != "${2}" ] && mycat='zcat'
206 209
207 if [ "${ERROR}" = 1 ] 210 if [ "${ERROR}" = 1 ]
208 then 211 then
209 echo -e "\n" 212 echo -e "\n"
210 eerror "getfilevar_noexec requires 2 variables, with the second a valid file." 213 eerror "getfilevar_noexec requires 2 variables, with the second a valid file."
623 # In the case where we don't require a .config, we can now bail out 626 # In the case where we don't require a .config, we can now bail out
624 # if the user has no .config as there is nothing to do. Otherwise 627 # if the user has no .config as there is nothing to do. Otherwise
625 # code later will cause a failure due to missing .config. 628 # code later will cause a failure due to missing .config.
626 if ! linux_config_exists; then 629 if ! linux_config_exists; then
627 ewarn "Unable to check for the following kernel config options due" 630 ewarn "Unable to check for the following kernel config options due"
628 ewarn "to absence of any configured kernel sources:" 631 ewarn "to absence of any configured kernel sources or compiled"
632 ewarn "config:"
629 for config in ${CONFIG_CHECK}; do 633 for config in ${CONFIG_CHECK}; do
630 ewarn " - ${config#\~}" 634 ewarn " - ${config#\~}"
631 done 635 done
632 ewarn "You're on your own to make sure they are set if needed." 636 ewarn "You're on your own to make sure they are set if needed."
633 return 0 637 return 0
634 fi 638 fi
635 else 639 else
636 require_configured_kernel 640 [ -n "${I_KNOW_WHAT_I_AM_DOING}" ] && require_configured_kernel
637 fi 641 fi
638 642
639 einfo "Checking for suitable kernel configuration options..." 643 einfo "Checking for suitable kernel configuration options..."
640 644
641 for config in ${CONFIG_CHECK} 645 for config in ${CONFIG_CHECK}

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.65

  ViewVC Help
Powered by ViewVC 1.1.20