summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-10-03 12:55:18 +0000
committerChristian Heim <phreak@gentoo.org>2007-10-03 12:55:18 +0000
commitb7a6d6b90c0b2f9feca88e36ab9be3ea2ca46ca7 (patch)
treeef3f399ba196d97490b4a245addc6e00fc241a61
parentkernel related eclasses are maintained by kernel-misc@gentoo.org. (diff)
downloadgentoo-2-b7a6d6b90c0b2f9feca88e36ab9be3ea2ca46ca7.tar.gz
gentoo-2-b7a6d6b90c0b2f9feca88e36ab9be3ea2ca46ca7.tar.bz2
gentoo-2-b7a6d6b90c0b2f9feca88e36ab9be3ea2ca46ca7.zip
Change to ${S} before starting the module build (see #192549 with thanks to Elias Probst <mail at eliasprobst.eu>).
-rw-r--r--eclass/linux-mod.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 5d459313271d..27ec2eab8130 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.75 2007/10/03 12:53:10 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.76 2007/10/03 12:55:18 phreak Exp $
# Description: This eclass is used to interface with linux-info in such a way
# to provide the functionality required and initial functions
@@ -491,6 +491,7 @@ linux-mod_src_compile() {
BUILD_TARGETS=${BUILD_TARGETS:-clean module}
strip_modulenames;
+ cd "${S}"
for i in ${MODULE_NAMES}
do
unset libdir srcdir objdir