summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2004-02-16 00:40:41 +0000
committerJohn Mylchreest <johnm@gentoo.org>2004-02-16 00:40:41 +0000
commitf0e9f9cc57c2af8219d44e114cb44a26c0c0aa33 (patch)
treef676e139591b8dee613351f69e01965246ef2819 /eclass
parentAdded ~sparc keyword to fix broken dependencies of app-sci/octave. (Manifest ... (diff)
downloadgentoo-2-f0e9f9cc57c2af8219d44e114cb44a26c0c0aa33.tar.gz
gentoo-2-f0e9f9cc57c2af8219d44e114cb44a26c0c0aa33.tar.bz2
gentoo-2-f0e9f9cc57c2af8219d44e114cb44a26c0c0aa33.zip
adding support for ARCH_URI and ARCH_PATCH
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass18
1 files changed, 17 insertions, 1 deletions
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() {