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

Diff of /eclass/linux-mod.eclass

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

Revision 1.3 Revision 1.6
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-mod.eclass,v 1.3 2004/11/25 22:40:29 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.6 2004/12/06 18:33:11 johnm Exp $
4 4
5# This eclass provides functions for compiling external kernel modules 5# This eclass provides functions for compiling external kernel modules
6# from source. 6# from source.
7 7
8inherit linux-info 8inherit linux-info
46update_depmod() { 46update_depmod() {
47 # if we haven't determined the version yet, we need too. 47 # if we haven't determined the version yet, we need too.
48 get_version; 48 get_version;
49 49
50 ebegin "Updating module dependencies for ${KV_FULL}" 50 ebegin "Updating module dependencies for ${KV_FULL}"
51 if [ -r ${KV_DIR}/System.map ] 51 if [ -r ${KV_OUT_DIR}/System.map ]
52 then 52 then
53 depmod -ae -F ${KV_DIR}/System.map -b ${ROOT} -r ${KV_FULL} 53 depmod -ae -F ${KV_OUT_DIR}/System.map -b ${ROOT} -r ${KV_FULL}
54 else 54 else
55 ewarn 55 ewarn
56 ewarn "${KV_DIR}/System.map not found." 56 ewarn "${KV_OUT_DIR}/System.map not found."
57 ewarn "You must manually update the kernel module dependencies using depmod." 57 ewarn "You must manually update the kernel module dependencies using depmod."
58 ewarn 58 ewarn
59 fi 59 fi
60 eend $? 60 eend $?
61} 61}
106 106
107# default ebuild functions 107# default ebuild functions
108# -------------------------------- 108# --------------------------------
109 109
110linux-mod_pkg_setup() { 110linux-mod_pkg_setup() {
111 get_version; 111 linux-info_pkg_setup;
112 check_kernel_built 112 check_kernel_built;
113 check_modules_supported; 113 check_modules_supported;
114 check_extra_config;
114 set_kvobj; 115 set_kvobj;
115} 116}
116 117
117linux-mod_src_compile() { 118linux-mod_src_compile() {
118 local modulename moduledir sourcedir module_temp xarch i 119 local modulename moduledir sourcedir module_temp xarch i

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20