From 3f1c4fc147adca8fedc58c39ada5afec8afbfb78 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 1 Jun 2011 06:51:30 +0000 Subject: Update linux-mod.eclass for building modules on Linux 3.0* kernels. --- eclass/linux-mod.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'eclass') 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 , # Stefan Schweizer @@ -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 -- cgit v1.2.3-65-gdbad