blob: 386ad365ec5ec7614ab41dcc40357b0e92a90e45 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc-sources/ppc-sources-2.4.23.ebuild,v 1.2 2004/01/08 06:22:58 iggy Exp $
# Whats in this kernel?
#
# Includes
#
# In addition to the standard feature set of kernel.org's 2.4.23, this
# tree includes fixes/updates that didn't make it into 2.4.23, including all
# of what was present as of 2.4.22-ben2. Some of the major additions are:
#
# - G5 support (though 2.6 is recommended on G5s anyway)
# - Laptop mode patch (Jens Axboe). See Documentation/laptop_mode.sh script
# - Andrea Arcangeli's silent-stack-overflow patch
# - CPU Frequency switching support on some laptops
# - Support for UniNorth AGP in the agpgart driver
# - Support for blinking the laptop LED on internal HD activity
# - Improved support for lba48 capable disks (Jens Axboe)
# - Updated rivafb with support for more cards & eMac
# - Updated sungem driver, supports more chips & recent PHYs
# - Updated dmasound driver to support tumbler & snapper
# - Add reporting of OF device path of IDE interfaces in /proc/ide
# - Fixes for CompactFlash cards
# - Fixes to vmlinux.coff oldworld wrapper
# - Better TB sync code for 2 CPU machines from Samuel Rydth
# - Hardware TB sync on core99 (dual G4s)
# - Initial support for iBook G4
# - Fix for Promise IDE controller on Xserve's
IUSE=""
ETYPE="sources"
inherit kernel
# OKV=original kernel version, KV=patched kernel version. They can be the same.
OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
EXTRAVERSION="-${PN/-*/}"
[ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR/3/2}"
KV="${OKV}${EXTRAVERSION}"
S=${WORKDIR}/linux-${KV}
MY_R=`echo $PR | sed "s:r:benh:g"`
DESCRIPTION="PowerPC kernel tree based on benh's patches, -r corresponds to ben{r} versioning"
SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2
http://www.kernel.org/pub/linux/kernel/people/benh/patch-${OKV}-${MY_R/3/2}.bz2"
HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/benh/"
KEYWORDS="-x86 ~ppc -sparc -alpha"
PROVIDE="virtual/linux-sources"
LICENSE="GPL-2"
SLOT="${KV}"
DEPEND=">=sys-devel/binutils-2.11.90.0.31"
RDEPEND=">=sys-libs/ncurses-5.2 dev-lang/perl virtual/modutils sys-devel/make"
src_unpack() {
unpack ${A}
mv linux-${OKV} ${PF} || die
cd ${PF}
patch -p1 < ${WORKDIR}/patch-${OKV}-${MY_R/3/2} || die "patch failed"
epatch ${FILESDIR}/do_brk_fix.patch || die "failed to patch for do_brk vuln"
use xfs && ( ewarn "XFS is no longer included!" )
}
src_install() {
dodir /usr/src
cd ${S}
rm ${WORKDIR}/patch-${OKV}-${MY_R}
echo ">>> Copying sources..."
mv ${WORKDIR}/* ${D}/usr/src
}
|