diff options
author | Bartosch Pixa <darkspecter@gentoo.org> | 2004-02-20 09:49:15 +0000 |
---|---|---|
committer | Bartosch Pixa <darkspecter@gentoo.org> | 2004-02-20 09:49:15 +0000 |
commit | b8619ffa641ada6cfdf9eda34a3e6cf0e9154046 (patch) | |
tree | bb5d35d1073e5cb23343ddf1c4cff457e7a8f49d /sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild | |
parent | header fix; more error checking (diff) | |
download | historical-b8619ffa641ada6cfdf9eda34a3e6cf0e9154046.tar.gz historical-b8619ffa641ada6cfdf9eda34a3e6cf0e9154046.tar.bz2 historical-b8619ffa641ada6cfdf9eda34a3e6cf0e9154046.zip |
version bump
Diffstat (limited to 'sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild')
-rw-r--r-- | sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild b/sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild new file mode 100644 index 000000000000..25132725368a --- /dev/null +++ b/sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ppc-development-sources/ppc-development-sources-2.6.3-r1.ebuild,v 1.1 2004/02/20 09:49:15 darkspecter Exp $ +#OKV=original kernel version, KV=patched kernel version. They can be the same. + +ETYPE="sources" +inherit kernel + +OKV="2.6.3" + +######## last BK changeset in this patch: 1.1385 + +EXTRAVERSION="`echo ${PV}-${PR/r/benh} | \ + sed -e 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)/\1/'`" + +KV=${PV}-${PR/r/benh} + +S=${WORKDIR}/linux-${KV} + +inherit eutils + +IUSE="extlib" + +# What's in this kernel? + +# INCLUDED: 2.6 vanilla + benh bk snapshot + +DESCRIPTION="Full sources for the linux kernel 2.6 with benh's patchset" +SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2 + mirror://gentoo/patches-${KV}.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} + bzcat ${DISTDIR}/patches-${KV}.bz2 | patch -p1 || die "patch failed" + find . -iname "*~" | xargs rm 2> /dev/null + + # 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 +} |