summaryrefslogtreecommitdiff
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
commit756250a3b143945815be2938eb3a6e200fa7621d (patch)
tree7126011669892d11e4b89e6571383af54abc4aa7 /eclass/kernel-2.eclass
parentAdded ~sparc keyword to fix broken dependencies of app-sci/octave. (diff)
downloadhistorical-756250a3b143945815be2938eb3a6e200fa7621d.tar.gz
historical-756250a3b143945815be2938eb3a6e200fa7621d.tar.bz2
historical-756250a3b143945815be2938eb3a6e200fa7621d.zip
adding support for ARCH_URI and ARCH_PATCH
Diffstat (limited to 'eclass/kernel-2.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() {