From 25a867fe9ba46bbc091205f5cdd38744d68edc3e Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Thu, 14 Oct 2004 03:27:38 +0000 Subject: Add set_arch_to_kernel() and set_arch_to_portage() so portage's ARCH variable doesn't screw up the kernel module build. --- eclass/matrox.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'eclass/matrox.eclass') 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 # @@ -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() { -- cgit v1.2.3-65-gdbad