From 756250a3b143945815be2938eb3a6e200fa7621d Mon Sep 17 00:00:00 2001 From: John Mylchreest Date: Mon, 16 Feb 2004 00:40:41 +0000 Subject: adding support for ARCH_URI and ARCH_PATCH --- eclass/kernel-2.eclass | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index acf7f02c6d22..65f8b59175db 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.27 2004/02/15 20:11:00 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.28 2004/02/16 00:40:41 johnm Exp $ # kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel # with back-compatibility for 2.4 @@ -504,6 +504,22 @@ detect_version() { } +detect_arch() { + # This function sets ARCH_URI and ARCH_PATCH + # with the neccessary info for the arch sepecific compatibility + # patchsets. + + local LOCAL_ARCH + local COMPAT_URI + + LOCAL_ARCH="$(echo ${ARCH} | tr [a-z] [A-Z])" + COMPAT_URI="${LOCAL_ARCH}_URI" + + ARCH_URI="${!COMPAT_URI}" + ARCH_PATCH="${DISTDIR}/${ARCH_URI/*\//}" +} + + # common functions #============================================================== src_unpack() { -- cgit v1.2.3-65-gdbad