# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ETYPE="sources" inherit kernel-2 detect_arch detect_version XEN_V="2.0.6" EXTRAVERSION=".${KV_EXTRA}-xen0" DESCRIPTION="Full sources for the Xen Linux (domain 0) kernel" HOMEPAGE="http://www.kernel.org/ http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html" SRC_URI="${KERNEL_URI} ${ARCH_URI} http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-${XEN_V}-src.tgz" UNIPATCH_LIST="${ARCH_PATCH} ${WORKDIR}/xen-2.0/patches/linux-${OKV}/agpgart.patch ${WORKDIR}/xen-2.0/patches/linux-${OKV}/iomap.patch ${WORKDIR}/xen-2.0/patches/linux-${OKV}/nettel.patch" KEYWORDS="~x86" src_unpack() { # Xen release (required for Xen patches) unpack xen-${XEN_V}-src.tgz # Regular kernel unpack kernel-2_src_unpack # Force ARCH to xen, to avoid the problems of people forgetting to do so when running make echo ARCH=xen | cat - ${S}/Makefile >${S}/XenMakefile mv ${S}/XenMakefile ${S}/Makefile # Copy the Xen files into the kernel tree rm ${WORKDIR}/xen-2.0/linux-${OKV}-xen-sparse/mkbuildtree cp -a ${WORKDIR}/xen-2.0/linux-${OKV}-xen-sparse/* ${S} mkdir ${S}/include/asm-xen/xen-public cp -a ${WORKDIR}/xen-2.0/xen/include/public/* ${S}/include/asm-xen/xen-public # Use the default domain 0 config file cp ${S}/arch/xen/configs/xen0_defconfig ${S}/arch/xen/defconfig }