# Copyright 1999-2003 Gentoo Technologies, Inc. # 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.4 2003/09/08 08:00:37 msterret 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="http://www.kernel.org/pub/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 }