summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2010-02-13 19:07:33 +0000
committerJoshua Kinard <kumba@gentoo.org>2010-02-13 19:07:33 +0000
commitdbd9369b29d13c396fe16a12bfdc34a59715d546 (patch)
tree9c8cf6c9929980efbdb9b00ba034cebe668b4c58 /sys-kernel/mips-sources
parentbitdefender-console, ghamachi and licq-themes was removed from portage. (diff)
downloadhistorical-dbd9369b29d13c396fe16a12bfdc34a59715d546.tar.gz
historical-dbd9369b29d13c396fe16a12bfdc34a59715d546.tar.bz2
historical-dbd9369b29d13c396fe16a12bfdc34a59715d546.zip
Update to 2.6.31.12. Octane support is disabled as of this release, and may not return. Testing on 2.6.32 will determine. Also fixed spacing issues in the ebuilds.
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64
Diffstat (limited to 'sys-kernel/mips-sources')
-rw-r--r--sys-kernel/mips-sources/ChangeLog11
-rw-r--r--sys-kernel/mips-sources/Manifest13
-rw-r--r--sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild50
-rw-r--r--sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild49
-rw-r--r--sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild50
-rw-r--r--sys-kernel/mips-sources/mips-sources-2.6.31.12.ebuild174
6 files changed, 276 insertions, 71 deletions
diff --git a/sys-kernel/mips-sources/ChangeLog b/sys-kernel/mips-sources/ChangeLog
index 88be4999be9c..686732859e46 100644
--- a/sys-kernel/mips-sources/ChangeLog
+++ b/sys-kernel/mips-sources/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-kernel/mips-sources
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.130 2010/01/10 09:48:34 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.131 2010/02/13 19:07:33 kumba Exp $
+
+*mips-sources-2.6.31.12 (13 Feb 2010)
+
+ 13 Feb 2010; Joshua Kinard <kumba@gentoo.org>
+ mips-sources-2.6.27.21-r1.ebuild, mips-sources-2.6.28.9-r1.ebuild,
+ mips-sources-2.6.29.1.ebuild, +mips-sources-2.6.31.12.ebuild:
+ Update to 2.6.31.12. Octane support is disabled as of this release, and
+ may not return. Testing on 2.6.32 will determine. Also fixed spacing
+ issues in the ebuilds.
10 Jan 2010; Tomáš Chvátal <scarabeus@gentoo.org>
mips-sources-2.6.27.21-r1.ebuild, mips-sources-2.6.28.9-r1.ebuild,
diff --git a/sys-kernel/mips-sources/Manifest b/sys-kernel/mips-sources/Manifest
index 905535a02c85..8fc75fe9cfb9 100644
--- a/sys-kernel/mips-sources/Manifest
+++ b/sys-kernel/mips-sources/Manifest
@@ -13,17 +13,22 @@ AUX eblits/src_unpack-v2.eblit 2397 RMD160 efc323e108684ba373d64d842dec569c4dd86
DIST linux-2.6.27.tar.bz2 50355835 RMD160 5be4595ad824a4af67c1ec0c692838ad0c31f0c0 SHA1 8425ec3be2652f9d511911ff4fcf99039d4574be SHA256 0e99bf9e83f4d1ae0c656741a84dfddfa9c4d2469cf35475f5939d02dc3e4393
DIST linux-2.6.28.tar.bz2 52665364 RMD160 47e8925220e29e239f9478228fc53543c1f7b300 SHA1 4f40f8bf3fd110b0cc6e1fea5f539c98f9959e94 SHA256 ae0d97c55efe7fce01273c97f8152af0deff5541e3bbf5b9ad98689112b54380
DIST linux-2.6.29.tar.bz2 56579370 RMD160 e0e8c0635665ed34618b04fe1140015a4b6ff806 SHA1 0640a2f4bea3fc272541f322b74ea365ad7f2349 SHA256 58a5ea16d499fe06f90fcbf1d687d1235d2cb9bc28bf979867bd3faadf38fc3f
+DIST linux-2.6.31.tar.bz2 61494822 RMD160 c0d88e63740abf0d4f9d82557260a31643f5a01b SHA1 c6e0e6b473ba2b80d164e37cfabf294e783c03d9 SHA256 0acd83f7b85db7ee18c2b0b7505e1ba6fd722c36f49a8870a831c851660e3512
DIST mips-sources-2.6.27-patches-v3.tar.bz2 93941 RMD160 63c0a0add60cff440657720472a546a136f236b4 SHA1 24515c829fda82f028014a2f79363e1d9527e829 SHA256 47338dc71eed05920e4c68544586bf887ed36230bc800979c1f0e78560f1b0f1
DIST mips-sources-2.6.28-patches-v3.tar.bz2 96718 RMD160 40462c8c9883675455c3d3ec62b03647e177cd9a SHA1 0fc79f4fa6b50de9376716ed261f460599b8d11d SHA256 0a0cf3a9de5b5e35b3cfec408081957036ebef094888480dc372f51ca8ceb3c4
DIST mips-sources-2.6.29-patches-v3.tar.bz2 74933 RMD160 37c21087351188f0300ff81e778ba86f33b10a3b SHA1 dc35f8d47928f1db450115bea3b6e2ccd18806de SHA256 d3c77c91b810824bcfbe25b96703e0b3a7f6200c71aa550c4abe9d296f5bbbff
+DIST mips-sources-2.6.31-patches-v1.tar.bz2 34379 RMD160 2218958ebd6519c920735e807b63f43044cdf904 SHA1 3e29a3fa966a7453f9d8ea1cda86b0faf9e75fde SHA256 a9d1f62e87badc416834b39e6e0a4796b76a074135ca98904a522815d6101c1f
DIST mipsgit-2.6.27-20090315.diff.bz2 16931 RMD160 dfd8147488b75d03f850f304ceb916500cf55e3e SHA1 7747dd4c23382997e493fcead7f49ebe1fe91019 SHA256 cdde9129b7f1a0c161eeb6501210f398f14c4283848a28d8d37fa75a8913aa02
DIST mipsgit-2.6.28-20090315.diff.bz2 16977 RMD160 cca14bbdf3339eeba20d3c6904048bcfa5e407f0 SHA1 0415252aca5987425ef18b0d0f2a99f6b8d1d7fc SHA256 631761133478e3e0cdab1fd3ae0984959b943e5a6e179d448e07243d70dfa4cd
DIST mipsgit-2.6.29-20090324.diff.bz2 17991 RMD160 fc94317086c27111c2e43cd6c7ff7684e43160f9 SHA1 2f72a7057809d98eb15c08df1527a8147ed3b5eb SHA256 e5867f9e92a83734505d6865640af3e8dd117b448d371d1514cec94c182e4511
+DIST mipsgit-2.6.31-20100213.diff.bz2 18089 RMD160 d0fae0e6767d0d78396a56d127854ffc15d527a1 SHA1 1ff7abab3e8b40a5f1d19c7dbd536be5507707bc SHA256 8df612cc22d9a2b762ef5b9489e6dbdaffb38d8f65d7c6b0a98ac35f02a2e46f
DIST patch-2.6.27.21.bz2 314006 RMD160 9c5a732052d1231311395a1631e00cc253c10280 SHA1 b87855be728142d4cfaae9b25ec79f0aedb8f54f SHA256 ac48615ffab711edb64d88683aa50b839a2d12303abb6a9bfb21421112309c8c
DIST patch-2.6.28.9.bz2 173005 RMD160 226641938d0e9bd137b7388a4a015ebfa5216c55 SHA1 80de4c8dba6122fc8dfa5987b617090acf6842e0 SHA256 2d9342ac09e2c69a98ab000ee1313596e2bb9692cbe52ae52c43f913a7a03682
DIST patch-2.6.29.1.bz2 14395 RMD160 78b2817db8a001750648ee4609a94de26829a4bc SHA1 de0c8efa7927fca5c95dce0e1a47e354527a6c52 SHA256 0c44a41816082602f9d2bd45524d85f6e5fa8e4a6a9a15861048ca2aaf068d8f
-EBUILD mips-sources-2.6.27.21-r1.ebuild 5164 RMD160 3e74b8cb96733565bb54b56a0a209f900b96480e SHA1 1b64cc63acafef8db3f7f147b9b9ccdd0baa8b3d SHA256 e1bb25257ff91cb72b247a9cfef37d9507609ef274f354bf1fc25bcee1d25480
-EBUILD mips-sources-2.6.28.9-r1.ebuild 5163 RMD160 e9c7f5282aadfbc3c0613f7ed52698d2e2f0aa96 SHA1 ace9f1c96c432bd9a845a62d6ba21cbe48e66d67 SHA256 97ce94868597be3ffb0910eab096cee728c35ff90c1791700f0d38e80b465ac1
-EBUILD mips-sources-2.6.29.1.ebuild 5171 RMD160 6a0d2466109effb5eec2e0af7f83ff7044b37bea SHA1 028c84e8b470171fb20fa851d57beb6adbfeb57d SHA256 bc94a2d9feeb30997758219e6939ba9678bb8e050185803bd385caa1c8244108
-MISC ChangeLog 51189 RMD160 54b7ad821ed8314dc7456424f6646f7df867bbe8 SHA1 f1a0c98c98a7c487ccbf3552d497603339a609d9 SHA256 b221f22cb328e69ef41ba384e2134bd695b9284ed89fba376bf35bc1e227be90
+DIST patch-2.6.31.12.bz2 243521 RMD160 955d8963da110d9a97810259758c121a257d3df9 SHA1 cbdba72320a2bfb5c9da3bac89c33945dd9c519e SHA256 7dea28a76ca6362ad949ec1bf45fada4a6fc888b40360d90d2f56f01d18f72ae
+EBUILD mips-sources-2.6.27.21-r1.ebuild 5244 RMD160 151c25dfc3959e6b25220d010c2369f7ed929ab2 SHA1 3176d7bf38a9d09eced8bd7b0dc2f8b31c74fac2 SHA256 585067197d1cde3c2e4adaf7adc668fe5f771f981b5242a4dd4c1ae423b23a77
+EBUILD mips-sources-2.6.28.9-r1.ebuild 5243 RMD160 d08058330f680cb24ee15f60e1ec1bc8f1e944f1 SHA1 1319a5624d4eeedc7393da84bcff817db3393700 SHA256 ce71845597c7415facefa472856894b9c2ccee72b6fbf5d7674a7e1482ffa178
+EBUILD mips-sources-2.6.29.1.ebuild 5252 RMD160 38f155e5f6c447fc5171c28bbcb3fa0373b0c717 SHA1 bbdf6cb24e419bc96a7f881f1430635575a3a5c5 SHA256 213700be16b1868c8f2fd76fc760a86a01be2a4ff07334d56e6bf82820a1eeda
+EBUILD mips-sources-2.6.31.12.ebuild 5259 RMD160 c62103653f5322b0dab63f57f7509166a3bafe22 SHA1 8bf2e312c62cba340d4cd8a070deb864e42d80a5 SHA256 9e10657e24b1eab38f724976f8733c5db42e7c83e9cb30a376aaf12d4fb9f610
+MISC ChangeLog 51576 RMD160 07320c053519de89e091a22743066955a9d3968c SHA1 d80c57ce08d6c3469694c948bb762b02370fe2f2 SHA256 fe29e5d9f0c5517338c10a53ff967dbb0a15805bce812e80375c911504e74cf8
MISC metadata.xml 926 RMD160 ea43e72aa35d2607c34b4fc5dca1465dea9b34fa SHA1 d29050c199533d2ec2d78fb0959af2ff2b5a00e2 SHA256 0053299fd7a1ac41ab528558d7535603938440c058fdf41d102a7b1acece7f87
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
index 7d14a85ae03c..8d0e677f252a 100644
--- 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
@@ -1,6 +1,6 @@
# Copyright 1999-2010 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.3 2010/01/10 09:48:34 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.27.21-r1.ebuild,v 1.4 2010/02/13 19:07:33 kumba Exp $
# INCLUDED:
# 1) linux sources from kernel.org
@@ -138,31 +138,37 @@ eblit-pkg() {
#//------------------------------------------------------------------------------
load_eblit_funcs() {
- # 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.
- [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return;
- 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
- MIPS_SOURCES_EBLITS_LOADED=1
+ # This is a sanity check to avoid QA issues. It prevents
+ # eblits from being referenced during metadata operations.
+ [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
+
+ # 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
+
+ # Eblit load complete
+ MIPS_SOURCES_EBLITS_LOADED=1
}
pkg_setup() {
- load_eblit_funcs
- pkg_setup
+ load_eblit_funcs
+ pkg_setup
}
+
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
index 7eb0847ba77a..46ec43b6e780 100644
--- 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
@@ -1,6 +1,6 @@
# Copyright 1999-2010 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.3 2010/01/10 09:48:34 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.28.9-r1.ebuild,v 1.4 2010/02/13 19:07:33 kumba Exp $
# INCLUDED:
# 1) linux sources from kernel.org
@@ -138,30 +138,35 @@ eblit-pkg() {
#//------------------------------------------------------------------------------
load_eblit_funcs() {
- [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
- # 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
- MIPS_SOURCES_EBLITS_LOADED=1
+ # This is a sanity check to avoid QA issues. It prevents
+ # eblits from being referenced during metadata operations.
+ [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
+
+ # 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
+
+ # Eblit load complete
+ MIPS_SOURCES_EBLITS_LOADED=1
}
pkg_setup() {
- load_eblit_funcs
- pkg_setup
+ load_eblit_funcs
+ pkg_setup
}
src_unpack() { eblit-run src_unpack v1 ; }
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
index 4d3ebfe6aa2e..d7bcc8102ce0 100644
--- a/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild
+++ b/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 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.3 2010/01/10 09:48:34 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.29.1.ebuild,v 1.4 2010/02/13 19:07:33 kumba Exp $
# INCLUDED:
# 1) linux sources from kernel.org
@@ -138,31 +138,37 @@ eblit-pkg() {
#//------------------------------------------------------------------------------
load_eblit_funcs() {
- # 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.
- [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
- 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
- MIPS_SOURCES_EBLITS_LOADED=1
+ # This is a sanity check to avoid QA issues. It prevents
+ # eblits from being referenced during metadata operations.
+ [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
+
+ # 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
+
+ # Eblit load complete
+ MIPS_SOURCES_EBLITS_LOADED=1
}
pkg_setup() {
- load_eblit_funcs
- pkg_setup
+ load_eblit_funcs
+ pkg_setup
}
+
src_unpack() { eblit-run src_unpack v2 ; }
#//------------------------------------------------------------------------------
diff --git a/sys-kernel/mips-sources/mips-sources-2.6.31.12.ebuild b/sys-kernel/mips-sources/mips-sources-2.6.31.12.ebuild
new file mode 100644
index 000000000000..3604b08a5d0d
--- /dev/null
+++ b/sys-kernel/mips-sources/mips-sources-2.6.31.12.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2010 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.31.12.ebuild,v 1.1 2010/02/13 19:07:33 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="20100213" # 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="no" # 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="2.6.29.1" # 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: <function> [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] <function> [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 <function> [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: <function>
+# Runs a function if it is defined in an eblit
+eblit-run-maybe() {
+ [[ $(type -t "$@") == "function" ]] && "$@"
+}
+
+# eblit-run
+# Usage: <function> [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: <phase> [version]
+# Runs the pkg_* functions AND evals them so they're included in the binpkgs
+eblit-pkg() {
+ [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
+ eblit-core pkg_$1 $2
+}
+
+#//------------------------------------------------------------------------------
+
+load_eblit_funcs() {
+ # This is a sanity check to avoid QA issues. It prevents
+ # eblits from being referenced during metadata operations.
+ [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
+
+ # 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
+
+ # Eblit load complete
+ MIPS_SOURCES_EBLITS_LOADED=1
+}
+
+pkg_setup() {
+ load_eblit_funcs
+ pkg_setup
+}
+
+src_unpack() { eblit-run src_unpack v2 ; }
+
+#//------------------------------------------------------------------------------