blob: 3a67a3290316bab5988bc8aa7dd609c19583c85f (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-headers/hppa-headers-2.4.20_p32.ebuild,v 1.8 2004/07/15 03:50:45 agriffis Exp $
#OKV=original kernel version, KV=patched kernel version. They can be the same.
IUSE=""
DEPEND=""
ETYPE="headers"
inherit kernel
# What's in this kernel?
# INCLUDED:
# stock 2.4.20 kernel sources
# hppa patches
DESCRIPTION="Full sources for the Linux kernel patched for hppa"
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org/"
KEYWORDS="-* hppa"
# set the kernel version now
OKV=2.4.20
PATCH_LEVEL=${PV/${OKV}_p/}
EXTRAVERSION="-pa${PATCH_LEVEL}"
KV="${OKV}${EXTRAVERSION}"
S=${WORKDIR}/linux-${KV}
SLOT="0"
SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2 \
http://ftp.parisc-linux.org/cvs/patch-${KV}.diff.gz"
src_unpack() {
# base vanilla source
unpack "linux-${OKV}.tar.bz2" || die
[ "${OKV}" != "${KV}" ] && \
mv "${WORKDIR}/linux-${OKV}" "${WORKDIR}/linux-${KV}"
# do the actual patching
cd ${S} || die
einfo "Applying patches for hppa ..."
unpack patch-${KV}.diff.gz
patch -p 1 < ${S}/patch-${KV}.diff
einfo "... Done"
cd ${S}
#make sure our sources are clean
make mrproper
kernel_universal_unpack
}
src_compile() {
yes "" | make oldconfig
echo "Ignore any errors from the yes command above."
make archdep
}
|