/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.30 Revision 1.31
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.30 2004/02/18 20:24:52 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.31 2004/02/18 22:33:29 johnm Exp $
4 4
5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel 5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel
6# with back-compatibility for 2.4 6# with back-compatibility for 2.4
7# 7#
8# Author: John Mylchreest <johnm@gentoo.org> 8# Author: John Mylchreest <johnm@gentoo.org>
524detect_arch() { 524detect_arch() {
525 # This function sets ARCH_URI and ARCH_PATCH 525 # This function sets ARCH_URI and ARCH_PATCH
526 # with the neccessary info for the arch sepecific compatibility 526 # with the neccessary info for the arch sepecific compatibility
527 # patchsets. 527 # patchsets.
528 528
529 local LOCAL_ARCH 529 local ALL_ARCH
530 local LOOP_ARCH
530 local COMPAT_URI 531 local COMPAT_URI
531 532
532 LOCAL_ARCH="$(echo ${ARCH} | tr [a-z] [A-Z])" 533 ALL_ARCH="X86 PPC PCC64 SPARC MIPS ALPHA ARM HPPA AMD64 IA64 X86OBSD"
534 for LOOP_ARCH in ${ALL_ARCH}
535 do
533 COMPAT_URI="${LOCAL_ARCH}_URI" 536 COMPAT_URI="${LOOP_ARCH}_URI"
534
535 ARCH_URI="${!COMPAT_URI}" 537 COMPAT_URI="${!COMPAT_URI}"
536 ARCH_PATCH="${DISTDIR}/${ARCH_URI/*\//}" 538 ARCH_URI="${ARCH_URI} $(echo ${LOOP_ARCH} | tr [A-Z] [a-z])? ( ${COMPAT_URI} )"
539
540 [ "${LOOP_ARCH}" == "$(echo ${ARCH} | tr [a-z] [A-Z])" ] && ARCH_PATCH="${DISTDIR}/${COMPAT_URI/*\//}"
541 done
537} 542}
538 543
539 544
540# common functions 545# common functions
541#============================================================== 546#==============================================================

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20