/[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.7 Revision 1.8
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.7 2004/12/05 12:46:58 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.8 2004/12/06 18:33:10 johnm Exp $
4# 4#
5# This eclass provides functions for querying the installed kernel 5# This eclass provides functions for querying the installed kernel
6# source version, selected kernel options etc. 6# source version, selected kernel options etc.
7# 7#
8 8
9ECLASS=linux-info 9ECLASS=linux-info
10INHERITED="$INHERITED $ECLASS" 10INHERITED="$INHERITED $ECLASS"
11EXPORT_FUNCTIONS pkg_setup
11 12
12# Overwritable environment Var's 13# Overwritable environment Var's
13# --------------------------------------- 14# ---------------------------------------
14KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}" 15KERNEL_DIR="${KERNEL_DIR:-/usr/src/linux}"
15 16
378 eerror "Please remember to recompile and install your kernel, and reboot" 379 eerror "Please remember to recompile and install your kernel, and reboot"
379 eerror "into your new kernel before attempting to load this kernel module." 380 eerror "into your new kernel before attempting to load this kernel module."
380 381
381 die "Kernel doesn't include zlib support" 382 die "Kernel doesn't include zlib support"
382} 383}
384
385################################
386# Default pkg_setup
387# Also used when inheriting linux-mod to force a get_version call
388
389linux-info_pkg_setup() {
390 get_version;
391}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20