summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gall <tgall@gentoo.org>2004-03-31 04:32:28 +0000
committerTom Gall <tgall@gentoo.org>2004-03-31 04:32:28 +0000
commitc287e103de30b65999861a5c4c6996446a67e3e3 (patch)
treee954f3278b1e4df9e28774e50bb8a731557b8c0b /sys-kernel
parentupdated virtuals so kaffe provides jre/jdk voodoo (diff)
downloadgentoo-2-c287e103de30b65999861a5c4c6996446a67e3e3.tar.gz
gentoo-2-c287e103de30b65999861a5c4c6996446a67e3e3.tar.bz2
gentoo-2-c287e103de30b65999861a5c4c6996446a67e3e3.zip
initial import for ppc64
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/ppc64-sources/ChangeLog10
-rw-r--r--sys-kernel/ppc64-sources/Manifest5
-rw-r--r--sys-kernel/ppc64-sources/files/digest-ppc64-sources-2.6.43
-rw-r--r--sys-kernel/ppc64-sources/metadata.xml18
-rw-r--r--sys-kernel/ppc64-sources/ppc64-sources-2.6.4.ebuild106
5 files changed, 142 insertions, 0 deletions
diff --git a/sys-kernel/ppc64-sources/ChangeLog b/sys-kernel/ppc64-sources/ChangeLog
new file mode 100644
index 000000000000..aa5bf7af5822
--- /dev/null
+++ b/sys-kernel/ppc64-sources/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-kernel/ppc-development-sources
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc64-sources/ChangeLog,v 1.1 2004/03/31 04:32:27 tgall Exp $
+
+*ppc64-sources-2.6.4 (30 Mar 2004)
+
+ 30 Mar 2004; Tom Gall <tgall@gentoo.org>
+ ppc64-sources-2.6.4.ebuild:
+ Initial import...
+
diff --git a/sys-kernel/ppc64-sources/Manifest b/sys-kernel/ppc64-sources/Manifest
new file mode 100644
index 000000000000..a4a2ec46dec9
--- /dev/null
+++ b/sys-kernel/ppc64-sources/Manifest
@@ -0,0 +1,5 @@
+MD5 2b971674a61f59d9b6a86f92ca072ed4 ChangeLog 273
+MD5 28d3906c49ca260f1bc0b39170d02ed0 metadata.xml 405
+MD5 6526a85f0ec673bfb0877f115764e9c6 ppc64-sources-2.6.4.ebuild 2997
+MD5 37846cc823c056554078424877d57ec4 files/digest-ppc64-sources-2.6.4 198
+MD5 e77a93fdf26f06cf3ea5080b27211725 files/ppc-development-sources.CAN-2003-0985.patch 414
diff --git a/sys-kernel/ppc64-sources/files/digest-ppc64-sources-2.6.4 b/sys-kernel/ppc64-sources/files/digest-ppc64-sources-2.6.4
new file mode 100644
index 000000000000..9a1cbf61362b
--- /dev/null
+++ b/sys-kernel/ppc64-sources/files/digest-ppc64-sources-2.6.4
@@ -0,0 +1,3 @@
+MD5 335f06eba1e5372ba38a0d2b253629bd linux-2.6.4.tar.bz2 34386912
+MD5 a03b1dec0f64b066ee458d00b29e90f2 ppc64-ames264.patch.gz 353568
+MD5 9fa5a03209115ec970f0bb47cd3a376f ppc64-Makefilefix.patch 426
diff --git a/sys-kernel/ppc64-sources/metadata.xml b/sys-kernel/ppc64-sources/metadata.xml
new file mode 100644
index 000000000000..210183ddfdd8
--- /dev/null
+++ b/sys-kernel/ppc64-sources/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+<herd>ppc64-kernel</herd>
+
+<maintainer>
+ <email>tgall@gentoo.org</email>
+ <name>Tom Gall</name>
+</maintainer>
+
+<longdescription>
+This kernel is built from the 2.6 ameslab tree, aka bk.linuxppc64.org
+which tends to be 2.6 k.o + ppc64 features.
+</longdescription>
+
+</pkgmetadata>
+
diff --git a/sys-kernel/ppc64-sources/ppc64-sources-2.6.4.ebuild b/sys-kernel/ppc64-sources/ppc64-sources-2.6.4.ebuild
new file mode 100644
index 000000000000..0c4061084258
--- /dev/null
+++ b/sys-kernel/ppc64-sources/ppc64-sources-2.6.4.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc64-sources/ppc64-sources-2.6.4.ebuild,v 1.1 2004/03/31 04:32:28 tgall Exp $
+#OKV=original kernel version, KV=patched kernel version. They can be the same.
+
+ETYPE="sources"
+inherit kernel
+
+OKV="2.6.4"
+
+######## last BK changeset in this patch: 1.1390
+
+EXTRAVERSION="`echo ${PV}-${PR/r/ames} | \
+ sed -e 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)/\1/'`"
+
+KV=${PV}-${PR/r/ames}
+
+S=${WORKDIR}/linux-${OKV}
+
+inherit eutils
+
+IUSE="extlib"
+
+# What's in this kernel?
+
+# INCLUDED: 2.6 ames snapshot
+
+DESCRIPTION="Full sources for the linux kernel 2.6 with ames's patchset"
+SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2
+ mirror://kernel/ppc64-ames264.patch.gz
+ ftp://ftp.linuxppc64.org/pub/people/tgall/ppc64-Makefilefix.patch"
+# mirror://gentoo/patches-${OKV}.bz2"
+KEYWORDS="-ppc ppc64"
+DEPEND=" extlib? ( dev-libs/ucl )"
+RDEPEND="sys-apps/module-init-tools"
+SLOT=${KV}
+PROVIDE="virtual/linux-sources
+ virtual/alsa"
+
+
+src_unpack() {
+ cd ${WORKDIR}
+ unpack linux-${OKV}.tar.bz2
+
+ mv linux-${OKV} ${PF}
+ cd ${PF}
+
+ epatch ${DISTDIR}/ppc64-Makefilefix.patch
+ cp ${DISTDIR}/ppc64-ames264.patch.gz ${WORKDIR}
+ gunzip ${WORKDIR}/ppc64-ames264.patch.gz
+ epatch ${WORKDIR}/ppc64-ames264.patch
+
+ # Gentoo Linux uses /boot, so fix 'make install' to work properly
+ # also fix the EXTRAVERSION
+ mv Makefile Makefile.orig
+ sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
+ -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" \
+ Makefile.orig >Makefile || die # test, remove me if Makefile ok
+ rm Makefile.orig
+
+ cd Documentation/DocBook
+ sed -e "s:db2:docbook2:g" Makefile > Makefile.new \
+ && mv Makefile.new Makefile
+
+ cd ${WORKDIR}/${PF}
+ #This is needed on > 2.5
+ MY_ARCH=${ARCH}
+ unset ARCH
+ #sometimes we have icky kernel symbols; this seems to get rid of them
+ make mrproper || die "make mrproper died"
+ ARCH=${MY_ARCH}
+
+}
+
+src_install() {
+ dodir /usr/src
+ echo ">>> Copying sources..."
+ mv ${WORKDIR}/* ${D}/usr/src
+}
+pkg_postinst() {
+ if [ ! -e ${ROOT}usr/src/linux ]
+ then
+ ln -sf ${PF} ${ROOT}/usr/src/linux
+ fi
+
+ ewarn "Please note that ptyfs support has been removed from devfs"
+ ewarn "in the later 2.6 kernels, and you have to compile it in now,"
+ ewarn "or else you will get errors when trying to open a pty."
+ ewarn "The option is File systems->Pseudo filesystems->/dev/pts"
+ ewarn "filesystem."
+ echo
+ ewarn "Also, note that you must compile in support for"
+ ewarn "input devices (Input device support->Input devices),"
+ ewarn "the virtual terminal (Character Devices->Virtual terminal),"
+ ewarn "and the vt_console (Character Devices->Support for console...)."
+ ewarn "Otherwise, you will get the dreaded \"Uncompressing the Kernel\""
+ ewarn "error."
+ echo
+ ewarn "DONT enable preempt as it's very broken on ppc currently, also"
+ ewarn "rivafb and the mac floppy drivers are both broken. NVidia"
+ ewarn "users should use the openfirmware framebuffer for now."
+ echo
+ einfo "Consult http://www.linux.org.uk/~davej/docs/post-halloween-2.6.txt"
+ einfo "for more info about the 2.6 series."
+ echo
+}