1 |
kumba 08/05/28 01:08:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mips-sources-2.6.24.7.ebuild |
5 |
Log: |
6 |
Update mips-sources to 2.6.24.7. Tested on IP32 and IP30, but IP22, IP27, and cobalt need testing, and IP28 is not supported in this release. |
7 |
(Portage version: 2.1.5.2) |
8 |
|
9 |
Revision Changes Path |
10 |
1.115 sys-kernel/mips-sources/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/ChangeLog?rev=1.115&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/ChangeLog?rev=1.115&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/ChangeLog?r1=1.114&r2=1.115 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v |
19 |
retrieving revision 1.114 |
20 |
retrieving revision 1.115 |
21 |
diff -u -r1.114 -r1.115 |
22 |
--- ChangeLog 10 Feb 2008 01:42:35 -0000 1.114 |
23 |
+++ ChangeLog 28 May 2008 01:08:12 -0000 1.115 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sys-kernel/mips-sources |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.114 2008/02/10 01:42:35 kumba Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.115 2008/05/28 01:08:12 kumba Exp $ |
29 |
+ |
30 |
+*mips-sources-2.6.24.7 (28 May 2008) |
31 |
+ |
32 |
+ 28 May 2008; Joshua Kinard <kumba@g.o> |
33 |
+ +mips-sources-2.6.24.7.ebuild: |
34 |
+ Update mips-sources to 2.6.24.7. Tested on IP32 and IP30, but IP22, IP27, |
35 |
+ and cobalt need testing, and IP28 is not supported in this release. |
36 |
|
37 |
*mips-sources-2.6.23.14 (10 Feb 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-kernel/mips-sources/mips-sources-2.6.24.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.24.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.24.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mips-sources-2.6.24.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-2.6.24.7.ebuild,v 1.1 2008/05/28 01:08:12 kumba Exp $ |
52 |
|
53 |
|
54 |
# INCLUDED: |
55 |
# 1) linux sources from kernel.org |
56 |
# 2) linux-mips.org GIT snapshot diff from 19 May 2008 |
57 |
# 3) Generic Fixes |
58 |
# 4) Patch for IP30 Support (http://www.linux-mips.org/~skylark/) |
59 |
# 5) Patch for IP28 Support (http://home.alphastar.de/fuerst/download.html) |
60 |
# 6) Patches (hacks) for IP27 support (ftp://ftp.linux-mips.org/pub/linux/mips/people/ralf/ip27/) |
61 |
# 7) Patch for Remaining Cobalt Bits (http://www.colonel-panic.org/cobalt-mips/) |
62 |
# 8) Experimental patches (IP27 hacks, et al) |
63 |
|
64 |
|
65 |
#//------------------------------------------------------------------------------ |
66 |
|
67 |
|
68 |
|
69 |
# Version Data |
70 |
OKV=${PV/_/-} |
71 |
GITDATE="20080519" # Date of diff between kernel.org and lmo GIT |
72 |
GENPATCHVER="1.32" # Tarball version for generic patches |
73 |
EXTRAVERSION="-mipsgit-${GITDATE}" |
74 |
KV="${OKV}${EXTRAVERSION}" |
75 |
F_KV="${OKV}" # Fetch KV, used to know what mipsgit diff to grab. |
76 |
STABLEVER="${F_KV}" # Stable Version (2.6.x) |
77 |
PATCHVER="" |
78 |
|
79 |
# Directories |
80 |
S="${WORKDIR}/linux-${OKV}-${GITDATE}" |
81 |
MIPS_PATCHES="${WORKDIR}/mips-patches" |
82 |
|
83 |
# Inherit Eclasses |
84 |
ETYPE="sources" |
85 |
inherit kernel eutils versionator |
86 |
|
87 |
# Portage Vars |
88 |
HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/" |
89 |
SLOT="${OKV}" |
90 |
PROVIDE="virtual/linux-sources virtual/alsa" |
91 |
KEYWORDS="-* ~mips" |
92 |
IUSE="cobalt ip27 ip28 ip30 ip32r10k" |
93 |
DEPEND=">=sys-devel/gcc-4.1.1" |
94 |
|
95 |
|
96 |
# Version Control Variables |
97 |
USE_RC="no" # If set to "yes", then attempt to use an RC kernel |
98 |
USE_PNT="yes" # If set to "yes", then attempt to use a point-release (2.6.x.y) |
99 |
|
100 |
# Machine Support Control Variables |
101 |
DO_IP22="yes" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00) |
102 |
DO_IP27="no" # IP27 support (SGI Origin) |
103 |
DO_IP28="no" # IP28 support (SGI Indigo2 Impact R10000) |
104 |
DO_IP30="yes" # IP30 support (SGI Octane) |
105 |
DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only) |
106 |
DO_CBLT="test" # Cobalt Support (Cobalt Microsystems) |
107 |
|
108 |
# Machine Stable Version Variables |
109 |
SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version |
110 |
SV_IP27="2.6.20.18" # DO_IP27 == "no", IP27 |
111 |
SV_IP28="2.6.20.18" # DO_IP28 == "no", IP28 |
112 |
SV_IP30="" # DO_IP30 == "no", IP30 |
113 |
SV_IP32="" # DO_IP32 == "no", IP32 |
114 |
SV_CBLT="" # DO_CBLT == "no", Cobalt |
115 |
|
116 |
|
117 |
# If USE_RC == "yes", use a release candidate kernel (2.6.X-rcY) |
118 |
if [ "${USE_RC}" = "yes" ]; then |
119 |
KVXY="$(get_version_component_range 1-2)" # Kernel Major/Minor |
120 |
KVZ="$(get_version_component_range 3)" # Kernel Revision Pt. 1 |
121 |
KVRC="$(get_version_component_range 4)" # Kernel RC |
122 |
F_KV="$(get_version_component_range 1-3)-${KVRC}" |
123 |
STABLEVER="${KVXY}.$((${KVZ} - 1))" # Last stable version (Rev - 1) |
124 |
PATCHVER="mirror://kernel/linux/kernel/v2.6/testing/patch-${OKV}.bz2" |
125 |
EXTRAVERSION="-${KVRC}-mipsgit-${GITDATE}" |
126 |
KV="${OKV}-${EXTRAVERSION}" |
127 |
USE_PNT="no" |
128 |
fi |
129 |
|
130 |
# If USE_PNT == "yes", use a point release kernel (2.6.x.y) |
131 |
if [ "${USE_PNT}" = "yes" ]; then |
132 |
F_KV="$(get_version_component_range 1-3)" # Get Maj/Min/Rev (x.y.z) |
133 |
STABLEVER="${F_KV}" # Last Revision release |
134 |
PATCHVER="mirror://kernel/linux/kernel/v2.6/patch-${OKV}.bz2" # Patch for new point release |
135 |
EXTRAVERSION=".$(get_version_component_range 4)-mipsgit-${GITDATE}" |
136 |
KV="${OKV}${EXTRAVERSION}" |
137 |
USE_RC="no" |
138 |
fi |
139 |
|
140 |
|
141 |
DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}" |
142 |
SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${STABLEVER}.tar.bz2 |
143 |
mirror://gentoo/mipsgit-${F_KV}-${GITDATE}.diff.bz2 |
144 |
mirror://gentoo/${PN}-generic_patches-${GENPATCHVER}.tar.bz2 |
145 |
${PATCHVER}" |
146 |
|
147 |
|
148 |
|
149 |
#//------------------------------------------------------------------------------ |
150 |
|
151 |
|
152 |
|
153 |
# Error/Warning messages |
154 |
err_only_one_mach_allowed() { |
155 |
echo -e "" |
156 |
eerror "A patchset for a specific machine-type has already been selected." |
157 |
eerror "No other patches for machines-types are permitted. You will need a" |
158 |
eerror "separate copy of the kernel sources for each different machine-type" |
159 |
eerror "you want to build a kernel for." |
160 |
die "Only one machine-type patchset allowed" |
161 |
} |
162 |
|
163 |
err_disabled_mach() { |
164 |
# Get args |
165 |
local mach_name="${1}" |
166 |
local mach_abbr="${2}" |
167 |
local mach_use="${3}" |
168 |
local need_test="${4}" |
169 |
|
170 |
# Get stable version, if exists |
171 |
local stable_ver="SV_${mach_abbr}" |
172 |
stable_ver="${!stable_ver}" |
173 |
|
174 |
# See if this machine needs a USE passed or skip dying |
175 |
local has_use |
176 |
[ ! -z "${mach_use}" -a "${mach_use}" != "skip" ] && has_use="USE=\"${mach_use}\" " |
177 |
|
178 |
# Print error && (maybe) die |
179 |
echo -e "" |
180 |
if [ "${need_test}" != "test" ]; then |
181 |
eerror "${mach_name} Support has been disabled in this ebuild" |
182 |
eerror "revision. If you wish to merge ${mach_name} sources, then" |
183 |
eerror "run ${has_use}emerge =mips-sources-${stable_ver}" |
184 |
[ "${mach_use}" != "skip" ] && die "${mach_name} Support disabled." |
185 |
else |
186 |
ewarn "${mach_name} Support has been marked as needing testing in this" |
187 |
ewarn "ebuild revision. This usually means that any patches to support" |
188 |
ewarn "${mach_name} have been forward ported and maybe even compile-tested," |
189 |
ewarn "but not yet booted on real hardware, possibly due to a lack of access" |
190 |
ewarn "to such hardware. If you happen to boot this kernel and have no" |
191 |
ewarn "problems at all, then please inform the maintainer. Otherwise, if" |
192 |
ewarn "experience a bug, an oops/panic, or some other oddity, then please" |
193 |
ewarn "file a bug at bugs.gentoo.org, and assign it to the mips team." |
194 |
fi |
195 |
|
196 |
return 0 |
197 |
} |
198 |
|
199 |
|
200 |
|
201 |
#//------------------------------------------------------------------------------ |
202 |
|
203 |
|
204 |
|
205 |
# Machine Information Messages |
206 |
# |
207 |
# If needing to whitespace for formatting in 'einfo', 'ewarn', or 'eerror', use |
208 |
# \040 for a space instead of the standard space. These functions strip redundant |
209 |
# white space for some unknown reason |
210 |
|
211 |
show_ip22_info() { |
212 |
echo -e "" |
213 |
einfo "IP22 systems with an R5000 processor should work well with this release." |
214 |
einfo "The R4x00 series of processors tend to be rather flaky, especially the" |
215 |
einfo "R4600. If you have to run an R4x00 processor, then try to use an R4400." |
216 |
einfo "" |
217 |
einfo "Some Notes:" |
218 |
einfo "\t- Supported graphics card right now is Newport (XL)." |
219 |
einfo "\t- A driver for Extreme (XZ) supposedly exists, but its author" |
220 |
einfo "\t\040\040has steadfastly refused to release the code for various reasons." |
221 |
einfo "\t\040\040Any questions regarding its status should be directed to "onion" in" |
222 |
einfo "\t\040\040#mipslinux on the Freenode IRC network. Given he is the author, he" |
223 |
einfo "\t\040\040will know the most current status of the driver." |
224 |
echo -e "" |
225 |
} |
226 |
|
227 |
show_ip27_info() { |
228 |
echo -e "" |
229 |
ewarn "IP27 support can be considered a game of Russian Roulette. It'll work" |
230 |
ewarn "great for some but not for others. We don't get a chance to test this" |
231 |
ewarn "machine very often with each new kernel, so your mileage may vary." |
232 |
echo -e "" |
233 |
} |
234 |
|
235 |
show_ip28_info() { |
236 |
echo -e "" |
237 |
einfo "Support for the Indigo2 Impact R10000 is experimental, and will likely remain so." |
238 |
einfo "As such, If you do not have a clue in the world about what an IP28 is, what the" |
239 |
einfo "mips architecture is about, are new to Gentoo, or even Linux in particular, then" |
240 |
einfo "it is highly advised that you steer clear of messing with this machine. Due to" |
241 |
einfo "the experimental nature of this particular class of system, we have to provide" |
242 |
einfo "such warnings, as it is only for use by those who know what they are doing." |
243 |
echo -e "" |
244 |
ewarn "Remember, due to the R10000 Speculative Execution issue that exists with this" |
245 |
ewarn "machine class, _nothing_ is guaranteed to work smoothly. Your mileage may vary." |
246 |
echo -e "" |
247 |
} |
248 |
|
249 |
show_ip30_info() { |
250 |
echo -e "" |
251 |
einfo "Things to keep in mind when building a kernel for an SGI Octane:" |
252 |
einfo "\t- Impact (MGRAS) console and X driver work, please report any bugs." |
253 |
einfo "\t- VPro (Odyssey) console works, but no X driver exists yet." |
254 |
einfo "\t- PCI Card Cages should work for many devices, except certain types like" |
255 |
einfo "\t\040\040PCI-to-PCI bridges (USB hubs, USB flash card readers for example)." |
256 |
einfo "\t- Do not use OHCI-based USB cards in Octane. They're broke on this machine." |
257 |
einfo "\t\040\040Patches are welcome to fix the issue." |
258 |
einfo "\t- Equally, UHCI Cards are showing issues in this release, but should still" |
259 |
einfo "\t\040\040function somewhat. This issue manifests itself when using pl2303 USB->Serial" |
260 |
einfo "\t\040\040adapters." |
261 |
einfo "\t- Other XIO-based devices like MENET and various Impact addons remain" |
262 |
einfo "\t\040\040untested and are not guaranteed to work. This applies to various" |
263 |
einfo "\t\040\040digital video conversion boards as well." |
264 |
echo -e "" |
265 |
} |
266 |
|
267 |
show_ip32_info() { |
268 |
echo -e "" |
269 |
einfo "IP32 systems function well, however there are some notes:" |
270 |
einfo "\t- No driver exists yet for the sound card. There is active work on one," |
271 |
einfo "\t\040\040however. Interested parties are encouraged to browse the Linux/MIPS" |
272 |
einfo "\t\040\040mailing list archives during the first few months of 2007 for more" |
273 |
einfo "\t\040\040information on this driver's status." |
274 |
einfo "\t- Framebuffer console is limited to 4MB. Anything greater" |
275 |
einfo "\t\040\040specified when building the kernel will likely oops or panic" |
276 |
einfo "\t\040\040the kernel." |
277 |
einfo "\t- X support is limited to the generic fbdev driver. No X gbefb" |
278 |
einfo "\t\040\040driver exists for O2 yet. Patches are welcome, however :)" |
279 |
echo -e "" |
280 |
|
281 |
if use ip32r10k; then |
282 |
eerror "R10000/R12000 Support on IP32 is ${HILITE}HIGHLY EXPERIMENTAL!${NORMAL}" |
283 |
eerror "This is intended ONLY for people interested in fixing it up. And" |
284 |
eerror "by that, I mean people willing to SEND IN PATCHES! If you're not" |
285 |
eerror "interested in debugging this issue seriously or just want to run it" |
286 |
eerror "as a user, then DO NOT USE THIS. Really, we mean it." |
287 |
echo -e "" |
288 |
eerror "All that said, initial testing seems to indicate that this system will" |
289 |
eerror "stay online for a reasonable amount of time and will compile packages." |
290 |
eerror "However, the primary console (which is serial, gbefb seems dead for now)" |
291 |
eerror "will fill with CRIME CPU errors every so often. A majority of these" |
292 |
eerror "seem harmless, however a few non-fatal oopses have also been triggered." |
293 |
echo -e "" |
294 |
eerror "We're interesting in finding anyone with knowledge of the R10000" |
295 |
eerror "workaround for speculative execution listed in the R10000 Processor" |
296 |
eerror "manual, or those who are familiar with the IP32 chipset and the feature" |
297 |
eerror "called \"Juice\"." |
298 |
echo -e "" |
299 |
fi |
300 |
|
301 |
eerror "!!! BIG FAT WARNING" |
302 |
eerror "!!! To Build 64bit kernels for SGI O2 (IP32) or SGI Indy/Indigo2 R4x00 (IP22)" |
303 |
eerror "!!! systems, you _need_ to be using a >=gcc-4.1.1 compiler, have CONFIG_BUILD_ELF64" |
304 |
eerror "!!! disabled in your kernel config, and building with the ${HILITE}vmlinux.32${NORMAL} make target." |
305 |
eerror "!!! In prior times, an ugly hack was used to build an ELF64 binary that resembled" |
306 |
eerror "!!! an ELF32 binary in order to make the ARCS PROMs on these systems boot the" |
307 |
eerror "!!! kernel. This hack is no longer in use nor supported in 2.6.17 and beyond. In" |
308 |
eerror "!!! order to achieve the same effect, a new flag available in >=gcc-4.x is used," |
309 |
eerror "!!! and as such, makes >=gcc-4.1.1 the preferred compiler for 2.6.17 and beyond." |
310 |
eerror "" |
311 |
eerror "!!! Remember, build your IP22 and IP32 kernels with the following command:" |
312 |
eerror "!!! following make command: ${GOOD}make vmlinux.32${NORMAL}" |
313 |
eerror "!!! Once done, copy the ${GOOD}vmlinux.32${NORMAL} file and boot that. Do not use the" |
314 |
eerror "!!! ${BAD}vmlinux${NORMAL} file -- this will either not boot on IP22 or result in" |
315 |
eerror "!!! undocumented weirdness on IP32 systems." |
316 |
} |
317 |
|
318 |
show_cobalt_info() { |
319 |
echo -e "" |
320 |
einfo "Please keep in mind that the 2.6 kernel will NOT boot on Cobalt" |
321 |
einfo "systems that are still using the old Cobalt bootloader. In" |
322 |
einfo "order to boot a 2.6 kernel on Cobalt systems, you must be using" |
323 |
einfo "the CoLo bootloader, which does not have the kernel" |
324 |
einfo "size limitation that the older bootloader has. If you want" |
325 |
einfo "to use the newer bootloader, make sure you have sys-boot/colo" |
326 |
einfo "installed and setup." |
327 |
echo -e "" |
328 |
} |
329 |
|
330 |
|
331 |
|
332 |
#//------------------------------------------------------------------------------ |
333 |
|
334 |
|
335 |
|
336 |
# Check our USE flags for machine-specific flags and give appropriate warnings/errors. |
337 |
# Hope the user isn't crazy enough to try using combinations of these flags. |
338 |
# Only use one machine-specific flag at a time for each type of desired machine-support. |
339 |
# |
340 |
# Affected machines: ip27 ip28 ip30 |
341 |
# Not Affected: cobalt ip22 ip32 |
342 |
pkg_setup() { |
343 |
local arch_is_selected="no" |
344 |
local mach_ip |
345 |
local mach_enable |
346 |
local mach_name |
347 |
local x |
348 |
|
349 |
# See if we're on a cobalt system first (must use the cobalt-mips profile) |
350 |
if use cobalt; then |
351 |
arch_is_selected="yes" |
352 |
[ "${DO_CBLT}" = "test" ] \ |
353 |
&& err_disabled_mach "Cobalt Microsystems" "CBLT" "cobalt" "test" |
354 |
[ "${DO_CBLT}" = "no" ] \ |
355 |
&& err_disabled_mach "Cobalt Microsystems" "CBLT" "cobalt" |
356 |
show_cobalt_info |
357 |
fi |
358 |
|
359 |
# Exclusive machine patchsets |
360 |
# These are not allowed to be mixed together, thus only one of them may be applied |
361 |
# to a tree per merge. |
362 |
for x in \ |
363 |
"ip27 SGI Origin 200/2000" \ |
364 |
"ip28 SGI Indigo2 Impact R10000" \ |
365 |
"ip30 SGI Octane" |
366 |
do |
367 |
set -- ${x} # Set positional params |
368 |
mach_ip="${1}" # Grab the first param (HW IP for SGI) |
369 |
shift # Shift the positions |
370 |
mach_name="${*}" # Get the rest (Name) |
371 |
|
372 |
if use ${mach_ip}; then |
373 |
# Fetch the value indiciating if the machine is enabled or not |
374 |
mach_enable="DO_${mach_ip/ip/IP}" |
375 |
mach_enable="${!mach_enable}" |
376 |
|
377 |
# Make sure only one of these exclusive machine patches is selected |
378 |
[ "${arch_is_selected}" = "no" ] \ |
379 |
&& arch_is_selected="yes" \ |
380 |
|| err_only_one_mach_allowed |
381 |
|
382 |
# Is the machine support disabled or marked as needing testing? |
383 |
[ "${mach_enable}" = "test" ] \ |
384 |
&& err_disabled_mach "${mach_name}" "${mach_ip/ip/IP}" "${mach_ip}" "test" |
385 |
[ "${mach_enable}" = "no" ] \ |
386 |
&& err_disabled_mach "${mach_name}" "${mach_ip/ip/IP}" "${mach_ip}" |
387 |
|
388 |
# Show relevant information about the machine |
389 |
show_${mach_ip}_info |
390 |
fi |
391 |
done |
392 |
|
393 |
# All other systems that don't have a USE flag go here |
394 |
# These systems have base-line support included in linux-mips git, so |
395 |
# instead of failing, if disabled, we simply warn the user |
396 |
if [ "${arch_is_selected}" = "no" ]; then |
397 |
[ "${DO_IP22}" = "no" ] \ |
398 |
&& err_disabled_mach "SGI Indy/Indigo2 R4x00" "IP22" "skip" \ |
399 |
|| show_ip22_info |
400 |
[ "${DO_IP32}" = "no" ] \ |
401 |
&& err_disabled_mach "SGI O2" "IP32" "skip" \ |
402 |
|| show_ip32_info |
403 |
|
404 |
fi |
405 |
} |
406 |
|
407 |
|
408 |
|
409 |
#//------------------------------------------------------------------------------ |
410 |
|
411 |
|
412 |
|
413 |
# Generic Patches - Safe to use globally |
414 |
do_generic_patches() { |
415 |
echo -e "" |
416 |
ebegin ">>> Generic Patches" |
417 |
|
418 |
# IP22 Patches |
419 |
epatch ${MIPS_PATCHES}/misc-2.6.16-ip22-vino-64bit-ioctl-fixes.patch |
420 |
|
421 |
# IP32 Patches |
422 |
epatch ${MIPS_PATCHES}/misc-2.6.11-ip32-mace-is-always-eth0.patch |
423 |
|
424 |
# Cobalt Patches |
425 |
epatch ${MIPS_PATCHES}/misc-2.6.23-cobalt-bits.patch |
426 |
|
427 |
# Generic |
428 |
epatch ${MIPS_PATCHES}/misc-2.6.17-ths-mips-tweaks.patch |
429 |
epatch ${MIPS_PATCHES}/misc-2.6.23-seccomp-no-default.patch |
430 |
epatch ${MIPS_PATCHES}/misc-2.6.11-add-byteorder-to-proc.patch |
431 |
epatch ${MIPS_PATCHES}/misc-2.6.24-ip32-rm7k-l3-support.patch |
432 |
epatch ${MIPS_PATCHES}/misc-2.6.24-squashfs-3.2-r2.patch |
433 |
eend |
434 |
} |
435 |
|
436 |
|
437 |
# NOT safe for production systems |
438 |
# Use at own risk, do _not_ file bugs on effects of these patches |
439 |
do_sekrit_patches() { |
440 |
# /* EXPERIMENTAL - DO NOT USE IN PRODUCTION KERNELS */ |
441 |
|
442 |
if use ip32r10k; then |
443 |
# Modified version of the IP28 cache barriers patch for the kernel |
444 |
# that removes all the IP28 specific pieces and leaves behind only |
445 |
# the generic segments. |
446 |
epatch ${MIPS_PATCHES}/misc-2.6.20-ip32-r10k-support.patch |
447 |
fi |
448 |
|
449 |
## # No Sekrit Patches! |
450 |
## sleep 0 |
451 |
|
452 |
# /* EXPERIMENTAL - DO NOT USE IN PRODUCTION KERNELS */ |
453 |
} |
454 |
|
455 |
|
456 |
|
457 |
#//------------------------------------------------------------------------------ |
458 |
|
459 |
|
460 |
|
461 |
# Exclusive Machine Patchsets |
462 |
|
463 |
# SGI Origin (IP27) |
464 |
do_ip27_support() { |
465 |
echo -e "" |
466 |
einfo ">>> Patching kernel for SGI Origin 200/2000 (IP27) support ..." |
467 |
epatch ${MIPS_PATCHES}/misc-2.6.22-ioc3-metadriver-r27.patch |
468 |
epatch ${MIPS_PATCHES}/misc-2.6.17-ip27-horrible-hacks_may-eat-kittens.patch |
469 |
epatch ${MIPS_PATCHES}/misc-2.6.17-ip27-rev-pci-tweak.patch |
470 |
epatch ${MIPS_PATCHES}/misc-2.6.19-ip27-hack-attack.patch |
471 |
epatch ${MIPS_PATCHES}/misc-2.6.22-ioc3-revert_commit_691cd0c.patch |
472 |
} |
473 |
|
474 |
# SGI Indigo2 Impact R10000 (IP28) |
475 |
do_ip28_support() { |
476 |
echo -e "" |
477 |
einfo ">>> Patching kernel for SGI Indigo2 Impact R10000 (IP28) support ..." |
478 |
epatch ${MIPS_PATCHES}/misc-2.6.20-ip28-i2_impact-support-r2.patch |
479 |
} |
480 |
|
481 |
|
482 |
# SGI Octane 'Speedracer' (IP30) |
483 |
do_ip30_support() { |
484 |
echo -e "" |
485 |
einfo ">>> Patching kernel for SGI Octane (IP30) support ..." |
486 |
epatch ${MIPS_PATCHES}/misc-2.6.24-ioc3-metadriver-r27.patch |
487 |
epatch ${MIPS_PATCHES}/misc-2.6.24-ip30-octane-support-r28.patch |
488 |
epatch ${MIPS_PATCHES}/misc-2.6.22-ioc3-revert_commit_691cd0c.patch |
489 |
} |
490 |
|
491 |
|
492 |
|
493 |
#//------------------------------------------------------------------------------ |
494 |
|
495 |
|
496 |
|
497 |
# Renames source trees for the few machines that we have separate patches for |
498 |
rename_source_tree() { |
499 |
if [ ! -z "${1}" ]; then |
500 |
if use ${1}; then |
501 |
mv ${S} ${S}.${1} |
502 |
S="${S}.${1}" |
503 |
fi |
504 |
fi |
505 |
} |
506 |
|
507 |
|
508 |
|
509 |
#//------------------------------------------------------------------------------ |
510 |
|
511 |
|
512 |
|
513 |
src_unpack() { |
514 |
local x |
515 |
|
516 |
unpack ${A} |
517 |
mv ${WORKDIR}/linux-${STABLEVER} ${WORKDIR}/linux-${OKV}-${GITDATE} |
518 |
cd ${S} |
519 |
|
520 |
|
521 |
# If USE_RC == "yes", use a release candidate kernel (2.6.x-rcy) |
522 |
# OR |
523 |
# if USE_PNT == "yes", use a point-release kernel (2.6.x.y) |
524 |
if [ "${USE_RC}" = "yes" -o "${USE_PNT}" = "yes" ]; then |
525 |
echo -e "" |
526 |
einfo ">>> linux-${STABLEVER} --> linux-${OKV} ..." |
527 |
epatch ${WORKDIR}/patch-${OKV} |
528 |
fi |
529 |
|
530 |
|
531 |
# Update the vanilla sources with linux-mips GIT changes |
532 |
echo -e "" |
533 |
einfo ">>> linux-${OKV} --> linux-${OKV}-${GITDATE} patch ..." |
534 |
epatch ${WORKDIR}/mipsgit-${F_KV}-${GITDATE}.diff |
535 |
|
536 |
# Generic patches we always include |
537 |
do_generic_patches |
538 |
|
539 |
# Machine-specific patches |
540 |
for x in {ip27,ip28,ip30}; do |
541 |
use ${x} && do_${x}_support |
542 |
done |
543 |
|
544 |
# Patches for experimental use |
545 |
do_sekrit_patches |
546 |
|
547 |
|
548 |
# All done, resume normal portage work |
549 |
kernel_universal_unpack |
550 |
} |
551 |
|
552 |
|
553 |
src_install() { |
554 |
# Rename the source trees for exclusive machines |
555 |
local x |
556 |
for x in {ip27,ip28,ip30,cobalt}; do |
557 |
use ${x} && rename_source_tree ${x} |
558 |
done |
559 |
|
560 |
kernel_src_install |
561 |
} |
562 |
|
563 |
pkg_postinst() { |
564 |
# Symlink /usr/src/linux as appropriate |
565 |
local my_ksrc="${S##*/}" |
566 |
for x in {ip27,ip28,ip30,cobalt}; do |
567 |
use ${x} && my_ksrc="${my_ksrc}.${x}" |
568 |
done |
569 |
|
570 |
if [ ! -e ${ROOT}usr/src/linux ]; then |
571 |
rm -f ${ROOT}usr/src/linux |
572 |
ln -sf ${my_ksrc} ${ROOT}/usr/src/linux |
573 |
fi |
574 |
} |
575 |
|
576 |
|
577 |
#//------------------------------------------------------------------------------ |
578 |
|
579 |
|
580 |
|
581 |
-- |
582 |
gentoo-commits@l.g.o mailing list |