Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: linux-mod.eclass
Date: Wed, 01 Jun 2011 06:51:41
Message-Id: 20110601065131.0251D20054@flycatcher.gentoo.org
1 robbat2 11/06/01 06:51:30
2
3 Modified: linux-mod.eclass
4 Log:
5 Update linux-mod.eclass for building modules on Linux 3.0* kernels.
6
7 Revision Changes Path
8 1.102 eclass/linux-mod.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-mod.eclass?rev=1.102&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-mod.eclass?rev=1.102&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-mod.eclass?r1=1.101&r2=1.102
13
14 Index: linux-mod.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v
17 retrieving revision 1.101
18 retrieving revision 1.102
19 diff -p -w -b -B -u -u -r1.101 -r1.102
20 --- linux-mod.eclass 27 May 2011 09:46:14 -0000 1.101
21 +++ linux-mod.eclass 1 Jun 2011 06:51:30 -0000 1.102
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.101 2011/05/27 09:46:14 ferringb Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.102 2011/06/01 06:51:30 robbat2 Exp $
27
28 # Author(s): John Mylchreest <johnm@g.o>,
29 # Stefan Schweizer <genstef@g.o>
30 @@ -195,6 +195,7 @@ use_m() {
31
32 # if the kernel version is greater than 2.6.6 then we should use
33 # M= instead of SUBDIRS=
34 + [ ${KV_MAJOR} -eq 3 ] && return 0
35 [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \
36 return 0 || return 1
37 }
38 @@ -328,7 +329,7 @@ remove_moduledb() {
39 set_kvobj() {
40 debug-print-function ${FUNCNAME} $*
41
42 - if kernel_is 2 6
43 + if kernel_is ge 2 6
44 then
45 KV_OBJ="ko"
46 else