1 |
vapier 08/10/09 19:55:00 |
2 |
|
3 |
Added: 0002-add-ps2-targets-to-config.sub.patch |
4 |
0001-add-uClibc-guess-support.patch |
5 |
0003-add-more-superh-targets-to-config.sub.patch |
6 |
Removed: config.sub.ps2.patch config.sub.sh.patch |
7 |
config.guess.uclibc.patch |
8 |
Log: |
9 |
Update patches to latest git #240420 by Jan Van Uytven. |
10 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: 0002-add-ps2-targets-to-config.sub.patch |
19 |
=================================================================== |
20 |
From 52054bdf40780dcc9ae252f544a9152c3a32a691 Mon Sep 17 00:00:00 2001 |
21 |
From: Mike Frysinger <vapier@g.o> |
22 |
Date: Thu, 9 Oct 2008 15:51:35 -0400 |
23 |
Subject: [PATCH] add ps2 targets to config.sub |
24 |
|
25 |
--- |
26 |
config.sub | 22 ++++++++++++++++++++-- |
27 |
1 files changed, 20 insertions(+), 2 deletions(-) |
28 |
|
29 |
diff --git a/config.sub b/config.sub |
30 |
index 053e738..a31b87d 100755 |
31 |
--- a/config.sub |
32 |
+++ b/config.sub |
33 |
@@ -244,7 +244,7 @@ case $basic_machine in |
34 |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
35 |
| bfin \ |
36 |
| c4x | clipper \ |
37 |
- | d10v | d30v | dlx | dsp16xx \ |
38 |
+ | d10v | d30v | dlx | dsp16xx | dvp \ |
39 |
| fido | fr30 | frv \ |
40 |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
41 |
| i370 | i860 | i960 | ia64 \ |
42 |
@@ -726,6 +726,24 @@ case $basic_machine in |
43 |
basic_machine=m68k-atari |
44 |
os=-mint |
45 |
;; |
46 |
+ mipsEE* | ee | ps2) |
47 |
+ basic_machine=mips64r5900el-scei |
48 |
+ case $os in |
49 |
+ -linux*) |
50 |
+ ;; |
51 |
+ *) |
52 |
+ os=-elf |
53 |
+ ;; |
54 |
+ esac |
55 |
+ ;; |
56 |
+ iop) |
57 |
+ basic_machine=mipsel-scei |
58 |
+ os=-irx |
59 |
+ ;; |
60 |
+ dvp) |
61 |
+ basic_machine=dvp-scei |
62 |
+ os=-elf |
63 |
+ ;; |
64 |
mips3*-*) |
65 |
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
66 |
;; |
67 |
@@ -1274,7 +1292,7 @@ case $os in |
68 |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
69 |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
70 |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
71 |
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
72 |
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -irx*) |
73 |
# Remember, each alternative MUST END IN *, to match a version number. |
74 |
;; |
75 |
-qnx*) |
76 |
-- |
77 |
1.6.0.1 |
78 |
|
79 |
|
80 |
|
81 |
|
82 |
1.1 sys-devel/gnuconfig/files/99999999/0001-add-uClibc-guess-support.patch |
83 |
|
84 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0001-add-uClibc-guess-support.patch?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0001-add-uClibc-guess-support.patch?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: 0001-add-uClibc-guess-support.patch |
88 |
=================================================================== |
89 |
From eeb92c3a61926ee07325efb48f1d72bad0e9c751 Mon Sep 17 00:00:00 2001 |
90 |
From: Mike Frysinger <vapier@g.o> |
91 |
Date: Thu, 9 Oct 2008 15:51:09 -0400 |
92 |
Subject: [PATCH] add uClibc guess support |
93 |
|
94 |
--- |
95 |
config.guess | 77 ++++++++++++++++++++++++++++++++++++---------------------- |
96 |
1 files changed, 48 insertions(+), 29 deletions(-) |
97 |
|
98 |
diff --git a/config.guess b/config.guess |
99 |
index f0f0d36..202f698 100755 |
100 |
--- a/config.guess |
101 |
+++ b/config.guess |
102 |
@@ -139,6 +139,23 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
103 |
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
104 |
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
105 |
|
106 |
+if [ "${UNAME_SYSTEM}" = "Linux" ] ; then |
107 |
+ eval $set_cc_for_build |
108 |
+ cat << EOF > $dummy.c |
109 |
+ #include <features.h> |
110 |
+ #ifdef __UCLIBC__ |
111 |
+ # ifdef __UCLIBC_CONFIG_VERSION__ |
112 |
+ LIBC=uclibc __UCLIBC_CONFIG_VERSION__ |
113 |
+ # else |
114 |
+ LIBC=uclibc |
115 |
+ # endif |
116 |
+ #else |
117 |
+ LIBC=gnu |
118 |
+ #endif |
119 |
+EOF |
120 |
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` |
121 |
+fi |
122 |
+ |
123 |
# Note: order is significant - the case branches are not exclusive. |
124 |
|
125 |
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
126 |
@@ -840,31 +857,31 @@ EOF |
127 |
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
128 |
| grep -q __ARM_EABI__ |
129 |
then |
130 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
131 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
132 |
else |
133 |
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
134 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
135 |
fi |
136 |
exit ;; |
137 |
avr32*:Linux:*:*) |
138 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
139 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
140 |
exit ;; |
141 |
cris:Linux:*:*) |
142 |
- echo cris-axis-linux-gnu |
143 |
+ echo cris-axis-linux-${LIBC} |
144 |
exit ;; |
145 |
crisv32:Linux:*:*) |
146 |
- echo crisv32-axis-linux-gnu |
147 |
+ echo crisv32-axis-linux-${LIBC} |
148 |
exit ;; |
149 |
frv:Linux:*:*) |
150 |
- echo frv-unknown-linux-gnu |
151 |
+ echo frv-unknown-linux-${LIBC} |
152 |
exit ;; |
153 |
ia64:Linux:*:*) |
154 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
155 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
156 |
exit ;; |
157 |
m32r*:Linux:*:*) |
158 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
159 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
160 |
exit ;; |
161 |
m68*:Linux:*:*) |
162 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
163 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
164 |
exit ;; |
165 |
mips:Linux:*:*) |
166 |
eval $set_cc_for_build |
167 |
@@ -887,7 +904,7 @@ EOF |
168 |
s: ::g |
169 |
p |
170 |
}'`" |
171 |
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
172 |
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
173 |
;; |
174 |
mips64:Linux:*:*) |
175 |
eval $set_cc_for_build |
176 |
@@ -910,16 +927,16 @@ EOF |
177 |
s: ::g |
178 |
p |
179 |
}'`" |
180 |
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
181 |
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
182 |
;; |
183 |
or32:Linux:*:*) |
184 |
- echo or32-unknown-linux-gnu |
185 |
+ echo or32-unknown-linux-${LIBC} |
186 |
exit ;; |
187 |
ppc:Linux:*:*) |
188 |
- echo powerpc-unknown-linux-gnu |
189 |
+ echo powerpc-unknown-linux-${LIBC} |
190 |
exit ;; |
191 |
ppc64:Linux:*:*) |
192 |
- echo powerpc64-unknown-linux-gnu |
193 |
+ echo powerpc64-unknown-linux-${LIBC} |
194 |
exit ;; |
195 |
alpha:Linux:*:*) |
196 |
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
197 |
@@ -932,8 +949,8 @@ EOF |
198 |
EV68*) UNAME_MACHINE=alphaev68 ;; |
199 |
esac |
200 |
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
201 |
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
202 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
203 |
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
204 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
205 |
exit ;; |
206 |
padre:Linux:*:*) |
207 |
echo sparc-unknown-linux-gnu |
208 |
@@ -941,34 +958,34 @@ EOF |
209 |
parisc:Linux:*:* | hppa:Linux:*:*) |
210 |
# Look for CPU level |
211 |
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
212 |
- PA7*) echo hppa1.1-unknown-linux-gnu ;; |
213 |
- PA8*) echo hppa2.0-unknown-linux-gnu ;; |
214 |
- *) echo hppa-unknown-linux-gnu ;; |
215 |
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
216 |
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
217 |
+ *) echo hppa-unknown-linux-${LIBC} ;; |
218 |
esac |
219 |
exit ;; |
220 |
parisc64:Linux:*:* | hppa64:Linux:*:*) |
221 |
- echo hppa64-unknown-linux-gnu |
222 |
+ echo hppa64-unknown-linux-${LIBC} |
223 |
exit ;; |
224 |
s390:Linux:*:* | s390x:Linux:*:*) |
225 |
echo ${UNAME_MACHINE}-ibm-linux |
226 |
exit ;; |
227 |
sh64*:Linux:*:*) |
228 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
229 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
230 |
exit ;; |
231 |
sh*:Linux:*:*) |
232 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
233 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
234 |
exit ;; |
235 |
sparc:Linux:*:* | sparc64:Linux:*:*) |
236 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
237 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
238 |
exit ;; |
239 |
vax:Linux:*:*) |
240 |
- echo ${UNAME_MACHINE}-dec-linux-gnu |
241 |
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
242 |
exit ;; |
243 |
x86_64:Linux:*:*) |
244 |
- echo x86_64-unknown-linux-gnu |
245 |
+ echo x86_64-unknown-linux-${LIBC} |
246 |
exit ;; |
247 |
xtensa*:Linux:*:*) |
248 |
- echo ${UNAME_MACHINE}-unknown-linux-gnu |
249 |
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
250 |
exit ;; |
251 |
i*86:Linux:*:*) |
252 |
# The BFD linker knows what the default object file format is, so |
253 |
@@ -983,17 +1000,19 @@ EOF |
254 |
p'` |
255 |
case "$ld_supported_targets" in |
256 |
elf32-i386) |
257 |
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" |
258 |
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}" |
259 |
;; |
260 |
a.out-i386-linux) |
261 |
- echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
262 |
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" |
263 |
exit ;; |
264 |
"") |
265 |
# Either a pre-BFD a.out linker (linux-gnuoldld) or |
266 |
# one that does not give us useful --help. |
267 |
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld" |
268 |
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" |
269 |
exit ;; |
270 |
esac |
271 |
+ # This should get integrated into the C code below, but now we hack |
272 |
+ if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi |
273 |
# Determine whether the default compiler is a.out or elf |
274 |
eval $set_cc_for_build |
275 |
sed 's/^ //' << EOF >$dummy.c |
276 |
-- |
277 |
1.6.0.1 |
278 |
|
279 |
|
280 |
|
281 |
|
282 |
1.1 sys-devel/gnuconfig/files/99999999/0003-add-more-superh-targets-to-config.sub.patch |
283 |
|
284 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0003-add-more-superh-targets-to-config.sub.patch?rev=1.1&view=markup |
285 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gnuconfig/files/99999999/0003-add-more-superh-targets-to-config.sub.patch?rev=1.1&content-type=text/plain |
286 |
|
287 |
Index: 0003-add-more-superh-targets-to-config.sub.patch |
288 |
=================================================================== |
289 |
From 1778a89105dbdbd11ffc7f44ead9996b7e32d5cf Mon Sep 17 00:00:00 2001 |
290 |
From: Mike Frysinger <vapier@g.o> |
291 |
Date: Thu, 9 Oct 2008 15:51:49 -0400 |
292 |
Subject: [PATCH] add more superh targets to config.sub |
293 |
|
294 |
--- |
295 |
config.sub | 4 ++-- |
296 |
1 files changed, 2 insertions(+), 2 deletions(-) |
297 |
|
298 |
diff --git a/config.sub b/config.sub |
299 |
index a31b87d..66f218c 100755 |
300 |
--- a/config.sub |
301 |
+++ b/config.sub |
302 |
@@ -279,7 +279,7 @@ case $basic_machine in |
303 |
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
304 |
| pyramid \ |
305 |
| score \ |
306 |
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
307 |
+ | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
308 |
| sh64 | sh64le \ |
309 |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
310 |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
311 |
@@ -362,7 +362,7 @@ case $basic_machine in |
312 |
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
313 |
| pyramid-* \ |
314 |
| romp-* | rs6000-* \ |
315 |
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
316 |
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
317 |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
318 |
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
319 |
| sparclite-* \ |
320 |
-- |
321 |
1.6.0.1 |