/[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.54 Revision 1.57
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.54 2005/10/22 17:35:39 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.57 2006/02/08 12:49:29 brix Exp $
4 4
5# Description: This eclass is used to interface with linux-info in such a way 5# Description: This eclass is used to interface with linux-info in such a way
6# to provide the functionality required and initial functions 6# to provide the functionality required and initial functions
7# required to install external modules against a kernel source 7# required to install external modules against a kernel source
8# tree. 8# tree.
461linux-mod_pkg_setup() { 461linux-mod_pkg_setup() {
462 linux-info_pkg_setup; 462 linux-info_pkg_setup;
463 check_kernel_built; 463 check_kernel_built;
464 check_modules_supported; 464 check_modules_supported;
465 set_kvobj; 465 set_kvobj;
466 # Commented out with permission from johnm until a fixed version for arches
467 # who intentionally use different kernel and userland compilers can be
468 # introduced - Jason Wever <weeve@gentoo.org>, 23 Oct 2005
466 check_vermagic; 469 #check_vermagic;
467} 470}
468 471
469linux-mod_src_compile() { 472linux-mod_src_compile() {
470 local modulename libdir srcdir objdir i n myARCH="${ARCH}" 473 local modulename libdir srcdir objdir i n myARCH="${ARCH}"
471 ARCH="$(tc-arch-kernel)" 474 ARCH="$(tc-arch-kernel)"
527 libdir=${libdir:-misc} 530 libdir=${libdir:-misc}
528 srcdir=${srcdir:-${S}} 531 srcdir=${srcdir:-${S}}
529 objdir=${objdir:-${srcdir}} 532 objdir=${objdir:-${srcdir}}
530 533
531 einfo "Installing ${modulename} module" 534 einfo "Installing ${modulename} module"
532 cd ${objdir} 535 cd ${objdir} || die "${objdir} does not exist"
533 insinto ${ROOT}lib/modules/${KV_FULL}/${libdir} 536 insinto /lib/modules/${KV_FULL}/${libdir}
534 doins ${modulename}.${KV_OBJ} 537 doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} failed"
535 cd ${OLDPWD} 538 cd ${OLDPWD}
536 539
537 generate_modulesd ${objdir}/${modulename} 540 generate_modulesd ${objdir}/${modulename}
538 done 541 done
539} 542}

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.57

  ViewVC Help
Powered by ViewVC 1.1.20