summaryrefslogtreecommitdiff
path: root/eclass
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
commit3f1c4fc147adca8fedc58c39ada5afec8afbfb78 (patch)
tree1999335537d81fb32c0542f59de3c0bc4a842fbd /eclass
parentVersion Bump (diff)
downloadhistorical-3f1c4fc147adca8fedc58c39ada5afec8afbfb78.tar.gz
historical-3f1c4fc147adca8fedc58c39ada5afec8afbfb78.tar.bz2
historical-3f1c4fc147adca8fedc58c39ada5afec8afbfb78.zip
Update linux-mod.eclass for building modules on Linux 3.0* kernels.
Diffstat (limited to '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