summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2004-10-14 03:27:38 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2004-10-14 03:27:38 +0000
commitc592ec702818dd6f4fbb874d99df91cd0736afed (patch)
treed4b6fa624948f088be9c52aaa10908f184614220 /eclass
parentEndianess bug fixed (diff)
downloadhistorical-c592ec702818dd6f4fbb874d99df91cd0736afed.tar.gz
historical-c592ec702818dd6f4fbb874d99df91cd0736afed.tar.bz2
historical-c592ec702818dd6f4fbb874d99df91cd0736afed.zip
Add set_arch_to_kernel() and set_arch_to_portage() so portage's ARCH variable doesn't screw up the kernel module build.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/matrox.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/matrox.eclass b/eclass/matrox.eclass
index 5899744cf793..1357bdab6f2b 100644
--- a/eclass/matrox.eclass
+++ b/eclass/matrox.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/matrox.eclass,v 1.9 2004/10/09 00:58:42 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/matrox.eclass,v 1.10 2004/10/14 03:27:38 spyderous Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -68,6 +68,8 @@ matrox_pkg_setup() {
}
matrox_src_compile() {
+ # 2.6 builds use the ARCH variable
+ set_arch_to_kernel
export PARHELIUX="${PWD}/src"
cd ${S}/src/kernel/parhelia
ln -sf ../../../kernel/mtx_parhelia.o .
@@ -75,6 +77,7 @@ matrox_src_compile() {
# Can't use emake here
make clean
make || die "make failed"
+ set_arch_to_portage
}
matrox_base_src_install() {