From 0e66b2f0c6126abea2e689156a6a7cbe7c3e66b0 Mon Sep 17 00:00:00 2001 From: Joshua Kinard Date: Sat, 11 Apr 2009 08:17:15 +0000 Subject: Update to 2.6.29.1, and add in patches to address a problem on o32 binaries with the llseek() system call. (Portage version: 2.1.6.11/cvs/Linux mips64) --- sys-kernel/mips-sources/ChangeLog | 13 +- .../mips-sources/mips-sources-2.6.27.21-r1.ebuild | 162 +++++++++++++++++++++ .../mips-sources/mips-sources-2.6.27.21.ebuild | 160 -------------------- .../mips-sources/mips-sources-2.6.28.9-r1.ebuild | 162 +++++++++++++++++++++ .../mips-sources/mips-sources-2.6.28.9.ebuild | 160 -------------------- .../mips-sources/mips-sources-2.6.29-r1.ebuild | 160 -------------------- .../mips-sources/mips-sources-2.6.29.1.ebuild | 162 +++++++++++++++++++++ 7 files changed, 498 insertions(+), 481 deletions(-) create mode 100644 sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild delete mode 100644 sys-kernel/mips-sources/mips-sources-2.6.27.21.ebuild create mode 100644 sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild delete mode 100644 sys-kernel/mips-sources/mips-sources-2.6.28.9.ebuild delete mode 100644 sys-kernel/mips-sources/mips-sources-2.6.29-r1.ebuild create mode 100644 sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild diff --git a/sys-kernel/mips-sources/ChangeLog b/sys-kernel/mips-sources/ChangeLog index c7bbb31e89c6..09d3da0e0f6a 100644 --- a/sys-kernel/mips-sources/ChangeLog +++ b/sys-kernel/mips-sources/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for sys-kernel/mips-sources # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.128 2009/03/25 05:18:07 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.129 2009/04/11 08:17:15 kumba Exp $ + +*mips-sources-2.6.29.1 (11 Apr 2009) +*mips-sources-2.6.28.9-r1 (11 Apr 2009) +*mips-sources-2.6.27.21-r1 (11 Apr 2009) + + 11 Apr 2009; Joshua Kinard + -mips-sources-2.6.27.21.ebuild, +mips-sources-2.6.27.21-r1.ebuild, + -mips-sources-2.6.28.9.ebuild, +mips-sources-2.6.28.9-r1.ebuild, + -mips-sources-2.6.29-r1.ebuild, +mips-sources-2.6.29.1.ebuild: + Update to 2.6.29.1, and add in patches to address a problem on o32 + binaries with the llseek() system call. *mips-sources-2.6.29-r1 (25 Mar 2009) diff --git a/sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild new file mode 100644 index 000000000000..e21a75a9d61d --- /dev/null +++ b/sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild,v 1.1 2009/04/11 08:17:15 kumba Exp $ + +# INCLUDED: +# 1) linux sources from kernel.org +# 2) linux-mips.org GIT snapshot diff +# 3) Generic Fixes +# 4) Patch for the IOC3 Metadriver (IP27, IP30) +# 5) Patch for IP30 Support +# 6) Patch for IP28 Graphics Support (SolidImpact) +# 7) Experimental patches (if needed) + +#//------------------------------------------------------------------------------ + +# Version Data +OKV=${PV/_/-} +GITDATE="20090315" # Date of diff between kernel.org and lmo GIT +GENPATCHREV="3" # Tarball revision for patches + +# Directories +S="${WORKDIR}/linux-${OKV}-${GITDATE}" +MIPS_PATCHES="${WORKDIR}/mips-patches" + +# Kernel-2 Vars +K_SECURITY_UNSUPPORTED="1" +K_NOUSENAME="0" +K_NOUSEPR="0" +K_USEPV="0" +ETYPE="sources" + +# Inherit Eclasses +inherit kernel-2 eutils +detect_version + +# Version Data +F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" +[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" + +# Portage Vars +HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" +SLOT="${OKV}" +PROVIDE="virtual/linux-sources virtual/alsa" +KEYWORDS="-* ~mips" +IUSE="cobalt ip27 ip28 ip30 ip32r10k" +DEPEND=">=sys-devel/gcc-4.1.1" +RDEPEND="" + +# Machine Support Control Variables +DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) +DO_IP27="yes" # IP27 support (SGI Origin) +DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) +DO_IP30="yes" # IP30 support (SGI Octane) +DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) +DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) + +# Machine Stable Version Variables +SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version +SV_IP27="" # DO_IP27 == "no", IP27 +SV_IP28="" # DO_IP28 == "no", IP28 +SV_IP30="" # DO_IP30 == "no", IP30 +SV_IP32="" # DO_IP32 == "no", IP32 +SV_CBLT="" # DO_CBLT == "no", Cobalt + + +DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" +SRC_URI="${KERNEL_URI} + mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 + mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" + + +UNIPATCH_STRICTORDER="1" +UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" + +#//------------------------------------------------------------------------------ + +# Eblit Handling Functions +# +# They'll likely be superseded someday by better ideas, possibly elibs. + +# eblit-core +# Usage: [version] +# Main eblit engine +eblit-core() { + local e v func=$1 ver=$2 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Runs the pkg_* functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core pkg_$1 $2 +} + +#//------------------------------------------------------------------------------ + +# All are in ${FILESDIR}/eblits +# If a message for a given machine needs to change, +# then we create a new eblit and increment the +# version and reference it here. +eblit-include err_disabled_mach v1 +eblit-include err_only_one_mach_allowed v1 +eblit-include show_ip22_info v1 +eblit-include show_ip27_info v1 +eblit-include show_ip28_info v1 +eblit-include show_ip30_info v1 +eblit-include show_ip32_info v1 +eblit-include show_cobalt_info v1 + +# This makes sure pkg_setup & pkg_postinst gets into any binpkg. +# Neccessary because we can't guarantee FILESDIR is around for binpkgs. +eblit-pkg setup v1 +eblit-pkg postinst v1 + +src_unpack() { eblit-run src_unpack v1 ; } + +#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-2.6.27.21.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.27.21.ebuild deleted file mode 100644 index d1275978f1c0..000000000000 --- a/sys-kernel/mips-sources/mips-sources-2.6.27.21.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.27.21.ebuild,v 1.2 2009/04/10 15:53:05 mr_bones_ Exp $ - -# INCLUDED: -# 1) linux sources from kernel.org -# 2) linux-mips.org GIT snapshot diff -# 3) Generic Fixes -# 4) Patch for the IOC3 Metadriver (IP27, IP30) -# 5) Patch for IP30 Support -# 6) Patch for IP28 Graphics Support (SolidImpact) -# 7) Experimental patches (if needed) - -#//------------------------------------------------------------------------------ - -# Version Data -OKV=${PV/_/-} -GITDATE="20090315" # Date of diff between kernel.org and lmo GIT -GENPATCHREV="2" # Tarball revision for patches - -# Directories -S="${WORKDIR}/linux-${OKV}-${GITDATE}" -MIPS_PATCHES="${WORKDIR}/mips-patches" - -# Kernel-2 Vars -K_SECURITY_UNSUPPORTED="1" -K_NOUSENAME="0" -K_NOUSEPR="0" -K_USEPV="0" -ETYPE="sources" - -# Inherit Eclasses -inherit kernel-2 eutils -detect_version - -# Version Data -F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" -[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" - -# Portage Vars -HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" -SLOT="${OKV}" -PROVIDE="virtual/linux-sources virtual/alsa" -KEYWORDS="-* ~mips" -IUSE="cobalt ip27 ip28 ip30 ip32r10k" -DEPEND=">=sys-devel/gcc-4.1.1" -RDEPEND="" - -# Machine Support Control Variables -DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) -DO_IP27="yes" # IP27 support (SGI Origin) -DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) -DO_IP30="yes" # IP30 support (SGI Octane) -DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) -DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) - -# Machine Stable Version Variables -SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version -SV_IP27="" # DO_IP27 == "no", IP27 -SV_IP28="" # DO_IP28 == "no", IP28 -SV_IP30="" # DO_IP30 == "no", IP30 -SV_IP32="" # DO_IP32 == "no", IP32 -SV_CBLT="" # DO_CBLT == "no", Cobalt - -DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" -SRC_URI="${KERNEL_URI} - mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 - mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" - -UNIPATCH_STRICTORDER="1" -UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" - -#//------------------------------------------------------------------------------ - -# Eblit Handling Functions -# -# They'll likely be superseded someday by better ideas, possibly elibs. - -# eblit-core -# Usage: [version] -# Main eblit engine -eblit-core() { - local e v func=$1 ver=$2 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" - return 0 - fi - done - return 1 -} - -# eblit-include -# Usage: [--skip] [version] -# Includes an "eblit" -- a chunk of common code among ebuilds in a given -# package so that its functions can be sourced and utilized within the -# ebuild. -eblit-include() { - local skipable=false r=0 - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - [[ -z $1 ]] && die "Usage: eblit-include [version]" - eblit-core $1 $2 - r="$?" - ${skipable} && return 0 - [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe -# Usage: -# Runs a function if it is defined in an eblit -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} - -# eblit-run -# Usage: [version] -# Runs a function defined in an eblit -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post -} - -# eblit-pkg -# Usage: [version] -# Runs the pkg_* functions AND evals them so they're included in the binpkgs -eblit-pkg() { - [[ -z $1 ]] && die "Usage: eblit-pkg [version]" - eblit-core pkg_$1 $2 -} - -#//------------------------------------------------------------------------------ - -# All are in ${FILESDIR}/eblits -# If a message for a given machine needs to change, -# then we create a new eblit and increment the -# version and reference it here. -eblit-include err_disabled_mach v1 -eblit-include err_only_one_mach_allowed v1 -eblit-include show_ip22_info v1 -eblit-include show_ip27_info v1 -eblit-include show_ip28_info v1 -eblit-include show_ip30_info v1 -eblit-include show_ip32_info v1 -eblit-include show_cobalt_info v1 - -# This makes sure pkg_setup & pkg_postinst gets into any binpkg. -# Neccessary because we can't guarantee FILESDIR is around for binpkgs. -eblit-pkg setup v1 -eblit-pkg postinst v1 - -src_unpack() { eblit-run src_unpack v1 ; } - -#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild new file mode 100644 index 000000000000..647bd59f552f --- /dev/null +++ b/sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild,v 1.1 2009/04/11 08:17:15 kumba Exp $ + +# INCLUDED: +# 1) linux sources from kernel.org +# 2) linux-mips.org GIT snapshot diff +# 3) Generic Fixes +# 4) Patch for the IOC3 Metadriver (IP27, IP30) +# 5) Patch for IP30 Support +# 6) Patch for IP28 Graphics Support (SolidImpact) +# 7) Experimental patches (if needed) + +#//------------------------------------------------------------------------------ + +# Version Data +OKV=${PV/_/-} +GITDATE="20090315" # Date of diff between kernel.org and lmo GIT +GENPATCHREV="3" # Tarball revision for patches + +# Directories +S="${WORKDIR}/linux-${OKV}-${GITDATE}" +MIPS_PATCHES="${WORKDIR}/mips-patches" + +# Kernel-2 Vars +K_SECURITY_UNSUPPORTED="1" +K_NOUSENAME="0" +K_NOUSEPR="0" +K_USEPV="0" +ETYPE="sources" + +# Inherit Eclasses +inherit kernel-2 eutils +detect_version + +# Version Data +F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" +[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" + +# Portage Vars +HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" +SLOT="${OKV}" +PROVIDE="virtual/linux-sources virtual/alsa" +KEYWORDS="-* ~mips" +IUSE="cobalt ip27 ip28 ip30 ip32r10k" +DEPEND=">=sys-devel/gcc-4.1.1" +RDEPEND="" + +# Machine Support Control Variables +DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) +DO_IP27="yes" # IP27 support (SGI Origin) +DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) +DO_IP30="yes" # IP30 support (SGI Octane) +DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) +DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) + +# Machine Stable Version Variables +SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version +SV_IP27="" # DO_IP27 == "no", IP27 +SV_IP28="" # DO_IP28 == "no", IP28 +SV_IP30="" # DO_IP30 == "no", IP30 +SV_IP32="" # DO_IP32 == "no", IP32 +SV_CBLT="" # DO_CBLT == "no", Cobalt + + +DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" +SRC_URI="${KERNEL_URI} + mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 + mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" + + +UNIPATCH_STRICTORDER="1" +UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" + +#//------------------------------------------------------------------------------ + +# Eblit Handling Functions +# +# They'll likely be superseded someday by better ideas, possibly elibs. + +# eblit-core +# Usage: [version] +# Main eblit engine +eblit-core() { + local e v func=$1 ver=$2 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Runs the pkg_* functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core pkg_$1 $2 +} + +#//------------------------------------------------------------------------------ + +# All are in ${FILESDIR}/eblits +# If a message for a given machine needs to change, +# then we create a new eblit and increment the +# version and reference it here. +eblit-include err_disabled_mach v1 +eblit-include err_only_one_mach_allowed v1 +eblit-include show_ip22_info v1 +eblit-include show_ip27_info v1 +eblit-include show_ip28_info v1 +eblit-include show_ip30_info v1 +eblit-include show_ip32_info v1 +eblit-include show_cobalt_info v1 + +# This makes sure pkg_setup & pkg_postinst gets into any binpkg. +# Neccessary because we can't guarantee FILESDIR is around for binpkgs. +eblit-pkg setup v1 +eblit-pkg postinst v1 + +src_unpack() { eblit-run src_unpack v1 ; } + +#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-2.6.28.9.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.28.9.ebuild deleted file mode 100644 index eed7d2138f0c..000000000000 --- a/sys-kernel/mips-sources/mips-sources-2.6.28.9.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.28.9.ebuild,v 1.2 2009/04/10 15:53:05 mr_bones_ Exp $ - -# INCLUDED: -# 1) linux sources from kernel.org -# 2) linux-mips.org GIT snapshot diff -# 3) Generic Fixes -# 4) Patch for the IOC3 Metadriver (IP27, IP30) -# 5) Patch for IP30 Support -# 6) Patch for IP28 Graphics Support (SolidImpact) -# 7) Experimental patches (if needed) - -#//------------------------------------------------------------------------------ - -# Version Data -OKV=${PV/_/-} -GITDATE="20090315" # Date of diff between kernel.org and lmo GIT -GENPATCHREV="2" # Tarball revision for patches - -# Directories -S="${WORKDIR}/linux-${OKV}-${GITDATE}" -MIPS_PATCHES="${WORKDIR}/mips-patches" - -# Kernel-2 Vars -K_SECURITY_UNSUPPORTED="1" -K_NOUSENAME="0" -K_NOUSEPR="0" -K_USEPV="0" -ETYPE="sources" - -# Inherit Eclasses -inherit kernel-2 eutils -detect_version - -# Version Data -F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" -[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" - -# Portage Vars -HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" -SLOT="${OKV}" -PROVIDE="virtual/linux-sources virtual/alsa" -KEYWORDS="-* ~mips" -IUSE="cobalt ip27 ip28 ip30 ip32r10k" -DEPEND=">=sys-devel/gcc-4.1.1" -RDEPEND="" - -# Machine Support Control Variables -DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) -DO_IP27="yes" # IP27 support (SGI Origin) -DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) -DO_IP30="yes" # IP30 support (SGI Octane) -DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) -DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) - -# Machine Stable Version Variables -SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version -SV_IP27="" # DO_IP27 == "no", IP27 -SV_IP28="" # DO_IP28 == "no", IP28 -SV_IP30="" # DO_IP30 == "no", IP30 -SV_IP32="" # DO_IP32 == "no", IP32 -SV_CBLT="" # DO_CBLT == "no", Cobalt - -DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" -SRC_URI="${KERNEL_URI} - mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 - mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" - -UNIPATCH_STRICTORDER="1" -UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" - -#//------------------------------------------------------------------------------ - -# Eblit Handling Functions -# -# They'll likely be superseded someday by better ideas, possibly elibs. - -# eblit-core -# Usage: [version] -# Main eblit engine -eblit-core() { - local e v func=$1 ver=$2 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" - return 0 - fi - done - return 1 -} - -# eblit-include -# Usage: [--skip] [version] -# Includes an "eblit" -- a chunk of common code among ebuilds in a given -# package so that its functions can be sourced and utilized within the -# ebuild. -eblit-include() { - local skipable=false r=0 - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - [[ -z $1 ]] && die "Usage: eblit-include [version]" - eblit-core $1 $2 - r="$?" - ${skipable} && return 0 - [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe -# Usage: -# Runs a function if it is defined in an eblit -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} - -# eblit-run -# Usage: [version] -# Runs a function defined in an eblit -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post -} - -# eblit-pkg -# Usage: [version] -# Runs the pkg_* functions AND evals them so they're included in the binpkgs -eblit-pkg() { - [[ -z $1 ]] && die "Usage: eblit-pkg [version]" - eblit-core pkg_$1 $2 -} - -#//------------------------------------------------------------------------------ - -# All are in ${FILESDIR}/eblits -# If a message for a given machine needs to change, -# then we create a new eblit and increment the -# version and reference it here. -eblit-include err_disabled_mach v1 -eblit-include err_only_one_mach_allowed v1 -eblit-include show_ip22_info v1 -eblit-include show_ip27_info v1 -eblit-include show_ip28_info v1 -eblit-include show_ip30_info v1 -eblit-include show_ip32_info v1 -eblit-include show_cobalt_info v1 - -# This makes sure pkg_setup & pkg_postinst gets into any binpkg. -# Neccessary because we can't guarantee FILESDIR is around for binpkgs. -eblit-pkg setup v1 -eblit-pkg postinst v1 - -src_unpack() { eblit-run src_unpack v1 ; } - -#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-2.6.29-r1.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.29-r1.ebuild deleted file mode 100644 index 2ff0194a7c41..000000000000 --- a/sys-kernel/mips-sources/mips-sources-2.6.29-r1.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.29-r1.ebuild,v 1.2 2009/04/10 15:53:05 mr_bones_ Exp $ - -# INCLUDED: -# 1) linux sources from kernel.org -# 2) linux-mips.org GIT snapshot diff -# 3) Generic Fixes -# 4) Patch for the IOC3 Metadriver (IP27, IP30) -# 5) Patch for IP30 Support -# 6) Patch for IP28 Graphics Support (SolidImpact) -# 7) Experimental patches (if needed) - -#//------------------------------------------------------------------------------ - -# Version Data -OKV=${PV/_/-} -GITDATE="20090324" # Date of diff between kernel.org and lmo GIT -GENPATCHREV="1" # Tarball revision for patches - -# Directories -S="${WORKDIR}/linux-${OKV}-${GITDATE}" -MIPS_PATCHES="${WORKDIR}/mips-patches" - -# Kernel-2 Vars -K_SECURITY_UNSUPPORTED="1" -K_NOUSENAME="0" -K_NOUSEPR="0" -K_USEPV="0" -ETYPE="sources" - -# Inherit Eclasses -inherit kernel-2 eutils -detect_version - -# Version Data -F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" -[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" - -# Portage Vars -HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" -SLOT="${OKV}" -PROVIDE="virtual/linux-sources virtual/alsa" -KEYWORDS="-* ~mips" -IUSE="cobalt ip27 ip28 ip30 ip32r10k impactdebug" -DEPEND=">=sys-devel/gcc-4.1.1" -RDEPEND="" - -# Machine Support Control Variables -DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) -DO_IP27="yes" # IP27 support (SGI Origin) -DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) -DO_IP30="yes" # IP30 support (SGI Octane) -DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) -DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) - -# Machine Stable Version Variables -SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version -SV_IP27="" # DO_IP27 == "no", IP27 -SV_IP28="" # DO_IP28 == "no", IP28 -SV_IP30="" # DO_IP30 == "no", IP30 -SV_IP32="" # DO_IP32 == "no", IP32 -SV_CBLT="" # DO_CBLT == "no", Cobalt - -DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" -SRC_URI="${KERNEL_URI} - mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 - mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" - -UNIPATCH_STRICTORDER="1" -UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" - -#//------------------------------------------------------------------------------ - -# Eblit Handling Functions -# -# They'll likely be superseded someday by better ideas, possibly elibs. - -# eblit-core -# Usage: [version] -# Main eblit engine -eblit-core() { - local e v func=$1 ver=$2 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do - e="${FILESDIR}/eblits/${func}${v}.eblit" - if [[ -e ${e} ]] ; then - . "${e}" - [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" - return 0 - fi - done - return 1 -} - -# eblit-include -# Usage: [--skip] [version] -# Includes an "eblit" -- a chunk of common code among ebuilds in a given -# package so that its functions can be sourced and utilized within the -# ebuild. -eblit-include() { - local skipable=false r=0 - [[ $1 == "--skip" ]] && skipable=true && shift - [[ $1 == pkg_* ]] && skipable=true - - [[ -z $1 ]] && die "Usage: eblit-include [version]" - eblit-core $1 $2 - r="$?" - ${skipable} && return 0 - [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" -} - -# eblit-run-maybe -# Usage: -# Runs a function if it is defined in an eblit -eblit-run-maybe() { - [[ $(type -t "$@") == "function" ]] && "$@" -} - -# eblit-run -# Usage: [version] -# Runs a function defined in an eblit -eblit-run() { - eblit-include --skip common "${*:2}" - eblit-include "$@" - eblit-run-maybe eblit-$1-pre - eblit-${PN}-$1 - eblit-run-maybe eblit-$1-post -} - -# eblit-pkg -# Usage: [version] -# Runs the pkg_* functions AND evals them so they're included in the binpkgs -eblit-pkg() { - [[ -z $1 ]] && die "Usage: eblit-pkg [version]" - eblit-core pkg_$1 $2 -} - -#//------------------------------------------------------------------------------ - -# All are in ${FILESDIR}/eblits -# If a message for a given machine needs to change, -# then we create a new eblit and increment the -# version and reference it here. -eblit-include err_disabled_mach v1 -eblit-include err_only_one_mach_allowed v1 -eblit-include show_ip22_info v1 -eblit-include show_ip27_info v1 -eblit-include show_ip28_info v1 -eblit-include show_ip30_info v1 -eblit-include show_ip32_info v1 -eblit-include show_cobalt_info v1 - -# This makes sure pkg_setup & pkg_postinst gets into any binpkg. -# Neccessary because we can't guarantee FILESDIR is around for binpkgs. -eblit-pkg setup v1 -eblit-pkg postinst v1 - -src_unpack() { eblit-run src_unpack v2 ; } - -#//------------------------------------------------------------------------------ diff --git a/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild new file mode 100644 index 000000000000..5f395c5c9cee --- /dev/null +++ b/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild,v 1.1 2009/04/11 08:17:15 kumba Exp $ + +# INCLUDED: +# 1) linux sources from kernel.org +# 2) linux-mips.org GIT snapshot diff +# 3) Generic Fixes +# 4) Patch for the IOC3 Metadriver (IP27, IP30) +# 5) Patch for IP30 Support +# 6) Patch for IP28 Graphics Support (SolidImpact) +# 7) Experimental patches (if needed) + +#//------------------------------------------------------------------------------ + +# Version Data +OKV=${PV/_/-} +GITDATE="20090324" # Date of diff between kernel.org and lmo GIT +GENPATCHREV="3" # Tarball revision for patches + +# Directories +S="${WORKDIR}/linux-${OKV}-${GITDATE}" +MIPS_PATCHES="${WORKDIR}/mips-patches" + +# Kernel-2 Vars +K_SECURITY_UNSUPPORTED="1" +K_NOUSENAME="0" +K_NOUSEPR="0" +K_USEPV="0" +ETYPE="sources" + +# Inherit Eclasses +inherit kernel-2 eutils +detect_version + +# Version Data +F_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" +[[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}" + +# Portage Vars +HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" +SLOT="${OKV}" +PROVIDE="virtual/linux-sources virtual/alsa" +KEYWORDS="-* ~mips" +IUSE="cobalt ip27 ip28 ip30 ip32r10k impactdebug" +DEPEND=">=sys-devel/gcc-4.1.1" +RDEPEND="" + +# Machine Support Control Variables +DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) +DO_IP27="yes" # IP27 support (SGI Origin) +DO_IP28="yes" # IP28 support (SGI Indigo2 Impact R10000) +DO_IP30="yes" # IP30 support (SGI Octane) +DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) +DO_CBLT="yes" # Cobalt Support (Cobalt Microsystems) + +# Machine Stable Version Variables +SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version +SV_IP27="" # DO_IP27 == "no", IP27 +SV_IP28="" # DO_IP28 == "no", IP28 +SV_IP30="" # DO_IP30 == "no", IP30 +SV_IP32="" # DO_IP32 == "no", IP32 +SV_CBLT="" # DO_CBLT == "no", Cobalt + + +DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" +SRC_URI="${KERNEL_URI} + mirror://gentoo/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2 + mirror://gentoo/${PN}-${F_KV}-patches-v${GENPATCHREV}.tar.bz2" + + +UNIPATCH_STRICTORDER="1" +UNIPATCH_LIST="${DISTDIR}/mipsgit-${F_KV}${KVE}-${GITDATE}.diff.bz2" + +#//------------------------------------------------------------------------------ + +# Eblit Handling Functions +# +# They'll likely be superseded someday by better ideas, possibly elibs. + +# eblit-core +# Usage: [version] +# Main eblit engine +eblit-core() { + local e v func=$1 ver=$2 + for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do + e="${FILESDIR}/eblits/${func}${v}.eblit" + if [[ -e ${e} ]] ; then + . "${e}" + [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }" + return 0 + fi + done + return 1 +} + +# eblit-include +# Usage: [--skip] [version] +# Includes an "eblit" -- a chunk of common code among ebuilds in a given +# package so that its functions can be sourced and utilized within the +# ebuild. +eblit-include() { + local skipable=false r=0 + [[ $1 == "--skip" ]] && skipable=true && shift + [[ $1 == pkg_* ]] && skipable=true + + [[ -z $1 ]] && die "Usage: eblit-include [version]" + eblit-core $1 $2 + r="$?" + ${skipable} && return 0 + [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/" +} + +# eblit-run-maybe +# Usage: +# Runs a function if it is defined in an eblit +eblit-run-maybe() { + [[ $(type -t "$@") == "function" ]] && "$@" +} + +# eblit-run +# Usage: [version] +# Runs a function defined in an eblit +eblit-run() { + eblit-include --skip common "${*:2}" + eblit-include "$@" + eblit-run-maybe eblit-$1-pre + eblit-${PN}-$1 + eblit-run-maybe eblit-$1-post +} + +# eblit-pkg +# Usage: [version] +# Runs the pkg_* functions AND evals them so they're included in the binpkgs +eblit-pkg() { + [[ -z $1 ]] && die "Usage: eblit-pkg [version]" + eblit-core pkg_$1 $2 +} + +#//------------------------------------------------------------------------------ + +# All are in ${FILESDIR}/eblits +# If a message for a given machine needs to change, +# then we create a new eblit and increment the +# version and reference it here. +eblit-include err_disabled_mach v1 +eblit-include err_only_one_mach_allowed v1 +eblit-include show_ip22_info v1 +eblit-include show_ip27_info v1 +eblit-include show_ip28_info v1 +eblit-include show_ip30_info v1 +eblit-include show_ip32_info v1 +eblit-include show_cobalt_info v1 + +# This makes sure pkg_setup & pkg_postinst gets into any binpkg. +# Neccessary because we can't guarantee FILESDIR is around for binpkgs. +eblit-pkg setup v1 +eblit-pkg postinst v1 + +src_unpack() { eblit-run src_unpack v2 ; } + +#//------------------------------------------------------------------------------ -- cgit v1.2.3-65-gdbad