summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-07-21 11:33:21 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-07-21 11:33:21 +0000
commit6808cd7ebf268326281ddc86a855948e8a29037f (patch)
treeca8a8db95019c4d8e9e06e74c21b408eb16d2470 /sys-kernel
parentCompiler, first commit (diff)
downloadlu_zero-6808cd7ebf268326281ddc86a855948e8a29037f.tar.gz
lu_zero-6808cd7ebf268326281ddc86a855948e8a29037f.tar.bz2
lu_zero-6808cd7ebf268326281ddc86a855948e8a29037f.zip
system headers with a spu workaround
svn path=/; revision=19
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.6.16-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/linux-headers-2.6.16-r1.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.16-r1.ebuild
new file mode 100644
index 0000000..5e08648
--- /dev/null
+++ b/sys-kernel/linux-headers/linux-headers-2.6.16-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.16.ebuild,v 1.6 2006/07/02 06:34:09 vapier Exp $
+
+ETYPE="headers"
+H_SUPPORTEDARCH="alpha amd64 arm hppa m68k ia64 ppc ppc64 s390 sh sparc x86"
+inherit eutils multilib kernel-2
+detect_version
+
+PATCHES_V='3'
+
+SRC_URI="${KERNEL_URI} mirror://gentoo/linux-2.6.11-m68k-headers.patch.bz2
+ http://dev.gentoo.org/~plasmaroo/patches/kernel/gentoo-headers/gentoo-headers-${PV}-${PATCHES_V}.tar.bz2"
+KEYWORDS="-* ~amd64 ~ppc64"
+
+DEPEND="ppc? ( gcc64? ( sys-devel/gcc-powerpc64 ) )
+ sparc? ( gcc64? ( sys-devel/gcc-sparc64 ) )"
+
+UNIPATCH_LIST="${DISTDIR}/gentoo-headers-${PV}-${PATCHES_V}.tar.bz2"
+
+wrap_headers_fix() {
+ for i in $*
+ do
+ echo -n " $1/"
+ cd ${S}/include/$1
+ headers___fix $(find . -type f -print)
+ shift
+ done
+ echo
+}
+
+src_unpack() {
+ ABI=${KERNEL_ABI}
+
+ kernel-2_src_unpack
+
+ # This should always be used but it has a bunch of hunks which
+ # apply to include/linux/ which i'm unsure of so only use with
+ # m68k for now (dont want to break other arches)
+ [[ $(tc-arch) == "m68k" ]] && epatch "${DISTDIR}"/linux-2.6.11-m68k-headers.patch.bz2
+
+ # Get headers to bootstrap on PPC
+ if use ppc; then
+ cp arch/powerpc/configs/pmac32_defconfig arch/powerpc/configs/ppc_defconfig
+ fi
+
+ # Fixes ... all the wrapper magic is to keep sed from dumping
+ # ugly warnings about how it can't work on a directory.
+ cd "${S}"/include
+ einfo "Applying automated fixes:"
+ wrap_headers_fix asm-* linux
+ einfo "... done"
+}
+
+src_compile() {
+
+ [[ ${CTARGET} == spu* ]] \
+ && CTARGET=powerpc64-unknown-linux-gnu
+ kernel-2_src_compile
+}