# Copyright 2004 Edgar Hucek # Distributed under the terms of the GNU General Public License v2 IUSE="build crypt" # OKV=original kernel version, KV=patched kernel version. They can be the same. # Kernel ebuilds using the kernel.eclass can remove any patch that you # do not want to apply by simply setting the KERNEL_EXCLUDE shell # variable to the string you want to exclude (for instance # KERNEL_EXCLUDE="evms" would not patch any patches whose names match # *evms*). Kernels are only tested in the default configuration, but # this may be useful if you know that a particular patch is causing a # conflict with a patch you personally want to apply, or some other # similar situation. ETYPE="sources" inherit kernel OKV=2.4.26 EXTRAVERSION=-xbox KV=2.4.26-xbox S=${WORKDIR}/linux-${KV} SRC_URI="mirror://kernel/linux/kernel/v2.4/linux-${OKV}.tar.bz2" HOMEPAGE="http://xbox-linux.sourceforge.net" KEYWORDS="x86 -ppc -sparc -alpha -amd64" SLOT="${KV}" DESCRIPTION="Full sources for the Kernel with fullsupport for the XBOX (tm) gamingsystem." src_unpack() { unpack ${A} mv linux-${OKV} linux-${KV} || die cd linux-${KV} || die epatch ${FILESDIR}/${PN}-${PV}-r1.patch || die "Failed to apply xbox-linux patch!" #bzcat ${DISTDIR}/xbox-sources-2.4.26.patch.bz2 | patch -p1 || die "Failed to patch kernel" # failures, if they aren't there that is a good thing! make mrproper || die "make mrproper failed" make include/linux/version.h || die "make include/linux/version.h failed" kernel_universal_unpack }