blob: 66142e2e61889da13b1a236ce88a9a25c6a33ce1 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xen-sources/xen-sources-2.6.11.12.ebuild,v 1.1 2005/09/22 22:32:34 chrb Exp $
ETYPE="sources"
inherit kernel-2 eutils
detect_arch
detect_version
EXTRAVERSION=".${KV_EXTRA}-xen"
DESCRIPTION="Full sources for a Linux kernel to run as dom0/domU under the Xen hypervisor"
HOMEPAGE="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html"
SRC_URI="${KERNEL_URI}"
KEYWORDS="~x86"
DEPEND="=app-emulation/xen-2.0.7"
src_unpack() {
# unpack kernel
kernel-2_src_unpack
# apply required xen patches for this kernel
if [ -e /usr/share/xen/patches/linux-${OKV}.tar.bz2 ]; then
XEN_PATCHES=/usr/share/xen/patches/linux-${OKV}.tar.bz2
einfo "Extracting patches from ${XEN_PATCHES} ..."
tar -jxf ${XEN_PATCHES}
for p in linux-${OKV}/*.patch; do
epatch ${p}
done
else
einfo "Xen has no patches for kernel ${OKV}"
fi
x=/usr/share/xen/linux-${KV_MAJOR}.${KV_MINOR}-xen-sparse.tar.bz2
einfo "Copying the sparse Xen tree from ${x}"
cd ${S}
tar -jxf ${x}
einfo "Setting ARCH to Xen."
echo ARCH=xen | cat - ${S}/Makefile >${S}/Makefile.0
mv ${S}/Makefile.0 ${S}/Makefile
}
|