summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-06-01 06:51:30 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2011-06-01 06:51:30 +0000
commit80f144b8638a6bb4b4cf132fa15eb04b27035318 (patch)
tree35e01e7f7349ae6a28dd06d34d0e4779d87bbb64 /eclass/linux-mod.eclass
parentVersion Bump (diff)
downloadgentoo-2-80f144b8638a6bb4b4cf132fa15eb04b27035318.tar.gz
gentoo-2-80f144b8638a6bb4b4cf132fa15eb04b27035318.tar.bz2
gentoo-2-80f144b8638a6bb4b4cf132fa15eb04b27035318.zip
Update linux-mod.eclass for building modules on Linux 3.0* kernels.
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r--eclass/linux-mod.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 435fad36599d..a0ee26d651de 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.101 2011/05/27 09:46:14 ferringb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.102 2011/06/01 06:51:30 robbat2 Exp $
# Author(s): John Mylchreest <johnm@gentoo.org>,
# Stefan Schweizer <genstef@gentoo.org>
@@ -195,6 +195,7 @@ use_m() {
# if the kernel version is greater than 2.6.6 then we should use
# M= instead of SUBDIRS=
+ [ ${KV_MAJOR} -eq 3 ] && return 0
[ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \
return 0 || return 1
}
@@ -328,7 +329,7 @@ remove_moduledb() {
set_kvobj() {
debug-print-function ${FUNCNAME} $*
- if kernel_is 2 6
+ if kernel_is ge 2 6
then
KV_OBJ="ko"
else