blob: f8dfd9d928acd50adc38b973e5b3adeb7fba833a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.4.21-r1.ebuild,v 1.2 2003/08/05 02:22:45 kumba Exp $
ETYPE="sources"
inherit kernel
OKV=${PV/_/-}
CVSDATE=20030705
S=${WORKDIR}/linux-${OKV}
PROVIDE="virtual/linux-sources"
EXTRAVERSION=-mipscvs-${CVSDATE}
# What's in this kernel?
# INCLUDED:
# 1) linux-mips.org CVS snapshot from 05 Jul 2003
# 2) patch off linux-mips ML to fix r4k cache handling
# 3) patch to fix arch/mips/Makefile to pass appropriate CFLAGS
DESCRIPTION="Linux-Mips CVS sources for MIPS-based machines"
SRC_URI="mirror://gentoo/linux-mips-${OKV}-${CVSDATE}.tar.bz2
mirror://gentoo/mips-patches-${OKV}-${CVSDATE}.tar.bz2"
HOMEPAGE="http://www.linux-mips.org/"
KEYWORDS="-* mips"
SLOT="${OKV}"
src_unpack() {
unpack ${A}
cd ${S}
# Fix R4K Cache Handling
cat ${WORKDIR}/mips-patches-r4k-cache-fix.patch | patch -p1
# Determine the gcc version and patch arch/mips/Makefile appropriately
GCCVER=$(gcc -dumpversion | cut -d. -f1,2)
case ${GCCVER} in
3.2) cat ${WORKDIR}/mips-patches-gcc32-makefile-fix.patch | patch -p0;;
3.3) cat ${WORKDIR}/mips-patches-gcc33-makefile-fix.patch | patch -p0;;
esac
kernel_universal_unpack
}
|