blob: c2cffc829abf867aae57aa8f2b67f33e9f3f45fc (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mm-sources/mm-sources-2.6.5-r1.ebuild,v 1.5 2004/04/27 22:02:27 agriffis Exp $
UNIPATCH_LIST="${DISTDIR}/${KV}.bz2"
K_PREPATCHED="yes"
UNIPATCH_STRICTORDER="yes"
ETYPE="sources"
inherit kernel-2 eutils
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Andrew Morton's kernel, mostly fixes for 2.6 vanilla, some vm stuff too"
SRC_URI="${KERNEL_URI} mirror://gentoo.org/${KV}-gentoo1.bz2"
KEYWORDS="x86 ~amd64 ~ia64 -*"
K_EXTRAEINFO="If there are issues with this kernel, search http://bugs.gentoo.org/ for an
existing bug. Only create a new bug if you have not found one that matches
your issue. It is best to do an advanced search as the initial search has a
very low yield. Please assign your bugs to x86-kernel@gentoo.org.
Please read the ChangeLog and associated docs for more information."
src_unpack() {
cd ${WORKDIR}
unpack linux-${OKV}.tar.bz2
mv linux-${OKV} linux-${KV}
cd ${S}
epatch ${DISTDIR}/${KV}-gentoo1.bz2
find . -iname "*~" | xargs rm 2> /dev/null
cd ${S}
mv Makefile Makefile.orig
sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
Makefile.orig >Makefile || die # test, remove me if Makefile ok
rm Makefile.orig
cd ${S}/Documentation/DocBook
sed -e "s:db2:docbook2:g" Makefile > Makefile.new \
&& mv Makefile.new Makefile
cd ${S}
#This is needed on > 2.5
MY_ARCH=${ARCH}
unset ARCH
#sometimes we have icky kernel symbols; this seems to get rid of them
make mrproper || die "make mrproper died"
ARCH=${MY_ARCH}
}
pkg_postinst() {
ewarn "If you use the nvidia-kernel binary module, then be sure to verify that"
ewarn "Kernel Hacking --> Use 4Kb for kernel stacks instead of 8Kb is not"
ewarn "selected. It causes the lockups and will not work with it enabled."
}
|