summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/builds.pm36
-rwxr-xr-xtools/configure7
-rwxr-xr-xtools/list_targets.pl17
-rwxr-xr-xtools/release/sims.pl28
-rwxr-xr-xtools/xduoox3-updatebl.sh5
5 files changed, 69 insertions, 24 deletions
diff --git a/tools/builds.pm b/tools/builds.pm
index 518fb01e49..75d34dc079 100644
--- a/tools/builds.pm
+++ b/tools/builds.pm
@@ -10,6 +10,7 @@ $releasenotes="/wiki/ReleaseNotes315";
10# 'modelname' => { 10# 'modelname' => {
11# name => 'Full Name', 11# name => 'Full Name',
12# status => 1, # 0=retired, 1=unusable, 2=unstable, 3=stable 12# status => 1, # 0=retired, 1=unusable, 2=unstable, 3=stable
13# sim = 1, # optional (defaults 1 for status 2/3 and 0 for status 1)
13# ram => 2, # optional (used?) 14# ram => 2, # optional (used?)
14# manual => 'modelname2', # optional (uses modelname2's manual) 15# manual => 'modelname2', # optional (uses modelname2's manual)
15# icon => 'modelname3', # optional (uses modelname3's icon) 16# icon => 'modelname3', # optional (uses modelname3's icon)
@@ -82,26 +83,32 @@ $releasenotes="/wiki/ReleaseNotes315";
82 }, 83 },
83 'hifietma9' => { 84 'hifietma9' => {
84 name => 'HiFi E.T MA9', 85 name => 'HiFi E.T MA9',
86 sim => 0,
85 status => 2, 87 status => 2,
86 }, 88 },
87 'hifietma9c' => { 89 'hifietma9c' => {
88 name => 'HiFi E.T MA9C', 90 name => 'HiFi E.T MA9C',
91 sim => 0,
89 status => 2, 92 status => 2,
90 }, 93 },
91 'hifietma8' => { 94 'hifietma8' => {
92 name => 'HiFi E.T MA8', 95 name => 'HiFi E.T MA8',
93 status => 2, 96 status => 2,
97 sim => 0,
94 }, 98 },
95 'hifietma8c' => { 99 'hifietma8c' => {
96 name => 'HiFi E.T MA8C', 100 name => 'HiFi E.T MA8C',
97 status => 2, 101 status => 2,
102 sim => 0,
98 }, 103 },
99 'hifimanhm60x' => { 104 'hifimanhm60x' => {
100 name => 'HiFiMAN HM-60x', 105 name => 'HiFiMAN HM-60x',
106 sim => 0,
101 status => 2, 107 status => 2,
102 }, 108 },
103 'hifimanhm801' => { 109 'hifimanhm801' => {
104 name => 'HiFiMAN HM-801', 110 name => 'HiFiMAN HM-801',
111 sim => 0,
105 status => 2, 112 status => 2,
106 }, 113 },
107 'iaudiom3' => { 114 'iaudiom3' => {
@@ -118,10 +125,12 @@ $releasenotes="/wiki/ReleaseNotes315";
118 }, 125 },
119 'ibassodx50' => { 126 'ibassodx50' => {
120 name => 'iBasso DX50', 127 name => 'iBasso DX50',
128 sim => 0,
121 status => 2, 129 status => 2,
122 }, 130 },
123 'ibassodx90' => { 131 'ibassodx90' => {
124 name => 'iBasso DX90', 132 name => 'iBasso DX90',
133 sim => 0,
125 status => 2, 134 status => 2,
126 }, 135 },
127 'ipod1g2g' => { 136 'ipod1g2g' => {
@@ -219,10 +228,12 @@ $releasenotes="/wiki/ReleaseNotes315";
219 'ondavx747' => { 228 'ondavx747' => {
220 name => 'Onda VX747', 229 name => 'Onda VX747',
221 status => 1, 230 status => 1,
231 sim => 1,
222 }, 232 },
223 'ondavx747p' => { 233 'ondavx747p' => {
224 name => 'Onda VX747+', 234 name => 'Onda VX747+',
225 status => 1, 235 status => 1,
236 sim => 1,
226 }, 237 },
227 'ondavx767' => { 238 'ondavx767' => {
228 name => 'Onda VX767', 239 name => 'Onda VX767',
@@ -231,6 +242,7 @@ $releasenotes="/wiki/ReleaseNotes315";
231 'ondavx777' => { 242 'ondavx777' => {
232 name => 'Onda VX777', 243 name => 'Onda VX777',
233 status => 1, 244 status => 1,
245 sim => 1,
234 }, 246 },
235 'rk27generic' => { 247 'rk27generic' => {
236 name => 'Rockchip rk27xx', 248 name => 'Rockchip rk27xx',
@@ -254,6 +266,7 @@ $releasenotes="/wiki/ReleaseNotes315";
254 }, 266 },
255 'samsungypr1' => { 267 'samsungypr1' => {
256 name => 'Samsung YP-R1', 268 name => 'Samsung YP-R1',
269 sim => 0,
257 status => 2, 270 status => 2,
258 }, 271 },
259 'samsungyps3' => { 272 'samsungyps3' => {
@@ -316,6 +329,7 @@ $releasenotes="/wiki/ReleaseNotes315";
316 'sansam200v4' => { 329 'sansam200v4' => {
317 name => 'SanDisk Sansa m200 v4', 330 name => 'SanDisk Sansa m200 v4',
318 status => 1, 331 status => 1,
332 sim => 1,
319 }, 333 },
320 'sansaview' => { 334 'sansaview' => {
321 name => 'SanDisk Sansa View', 335 name => 'SanDisk Sansa View',
@@ -328,14 +342,17 @@ $releasenotes="/wiki/ReleaseNotes315";
328 'zenvision' => { 342 'zenvision' => {
329 name => 'Creative Zen Vision', 343 name => 'Creative Zen Vision',
330 status => 1, 344 status => 1,
345 sim => 1,
331 }, 346 },
332 'zenvisionm30gb' => { 347 'zenvisionm30gb' => {
333 name => 'Creative Zen Vision:M 30GB', 348 name => 'Creative Zen Vision:M 30GB',
334 status => 1, 349 status => 1,
350 sim => 1,
335 }, 351 },
336 'zenvisionm60gb' => { 352 'zenvisionm60gb' => {
337 name => 'Creative Zen Vision:M 60GB', 353 name => 'Creative Zen Vision:M 60GB',
338 status => 1, 354 status => 1,
355 sim => 1,
339 }, 356 },
340 'mpiohd200' => { 357 'mpiohd200' => {
341 name => 'MPIO HD200', 358 name => 'MPIO HD200',
@@ -355,6 +372,7 @@ $releasenotes="/wiki/ReleaseNotes315";
355 }, 372 },
356 'sonynwze350' => { 373 'sonynwze350' => {
357 name => 'Sony NWZ-E350', 374 name => 'Sony NWZ-E350',
375 sim => 0,
358 status => 2, 376 status => 2,
359 }, 377 },
360 'sonynwze360' => { 378 'sonynwze360' => {
@@ -367,26 +385,32 @@ $releasenotes="/wiki/ReleaseNotes315";
367 }, 385 },
368 'sonynwze450' => { 386 'sonynwze450' => {
369 name => 'Sony NWZ-E450', 387 name => 'Sony NWZ-E450',
388 sim => 0,
370 status => 2, 389 status => 2,
371 }, 390 },
372 'sonynwze460' => { 391 'sonynwze460' => {
373 name => 'Sony NWZ-E460', 392 name => 'Sony NWZ-E460',
393 sim => 0,
374 status => 2, 394 status => 2,
375 }, 395 },
376 'sonynwze470' => { 396 'sonynwze470' => {
377 name => 'Sony NWZ-E470', 397 name => 'Sony NWZ-E470',
398 sim => 0,
378 status => 2, 399 status => 2,
379 }, 400 },
380 'sonynwze580' => { 401 'sonynwze580' => {
381 name => 'Sony NWZ-E580', 402 name => 'Sony NWZ-E580',
403 sim => 0,
382 status => 2, 404 status => 2,
383 }, 405 },
384 'sonynwza10' => { 406 'sonynwza10' => {
385 name => 'Sony NWZ-A10', 407 name => 'Sony NWZ-A10',
408 sim => 0,
386 status => 2, 409 status => 2,
387 }, 410 },
388 'sonynwa20' => { 411 'sonynwa20' => {
389 name => 'Sony NW-A20', 412 name => 'Sony NW-A20',
413 sim => 0,
390 status => 2, 414 status => 2,
391 }, 415 },
392 'sonynwza860' => { 416 'sonynwza860' => {
@@ -396,6 +420,7 @@ $releasenotes="/wiki/ReleaseNotes315";
396 'sonynwzs750' => { 420 'sonynwzs750' => {
397 name => 'Sony NWZ-S750', 421 name => 'Sony NWZ-S750',
398 status => 2, 422 status => 2,
423 sim => 0,
399 }, 424 },
400 'creativezenxfi' => { 425 'creativezenxfi' => {
401 name => 'Creative Zen X-Fi', 426 name => 'Creative Zen X-Fi',
@@ -512,6 +537,17 @@ sub allbuilds {
512 return @list; 537 return @list;
513} 538}
514 539
540sub simbuilds {
541 my @list;
542
543 for my $b (&allbuilds) {
544 push @list, $b if (defined($builds{$b}{sim}) and $builds{$b}{sim});
545 push @list, $b if (!defined($builds{$b}{sim}) and $builds{$b}{status} > 1);
546 }
547
548 return @list;
549}
550
515################################################################ 551################################################################
516 552
517# 'voicename' => { 553# 'voicename' => {
diff --git a/tools/configure b/tools/configure
index 43f02f5643..04699cb3e4 100755
--- a/tools/configure
+++ b/tools/configure
@@ -311,6 +311,8 @@ simcc () {
311 # add cross-compiler option(s) 311 # add cross-compiler option(s)
312 GCCOPTS="$GCCOPTS -Wno-format" 312 GCCOPTS="$GCCOPTS -Wno-format"
313 LDOPTS="$LDOPTS -mconsole -static" 313 LDOPTS="$LDOPTS -mconsole -static"
314 GLOBAL_LDOPTS=`echo $GLOBAL_LDOPTS | sed -e s/\-Wl,-z,defs//`
315 LDOPTS=`echo $LDOPTS | sed -e s/-ldl// -e s/-lrt// -e s/-lasound//`
314 output="$output.exe" 316 output="$output.exe"
315 winbuild="yes" 317 winbuild="yes"
316 318
@@ -433,6 +435,9 @@ simcc () {
433 else 435 else
434 echo "Your sdl-config does not know about static libs, falling back to shared library" 436 echo "Your sdl-config does not know about static libs, falling back to shared library"
435 sdlldopts=$($sdl --libs) 437 sdlldopts=$($sdl --libs)
438# if [ "$win32crosscompile" = "yes" ] ; then
439 LDOPTS=`echo $LDOPTS | sed -e s/-static//`
440# fi
436 fi 441 fi
437 GCCOPTS="$GCCOPTS ${sdlccopts}" 442 GCCOPTS="$GCCOPTS ${sdlccopts}"
438 LDOPTS="$LDOPTS ${sdlldopts}" 443 LDOPTS="$LDOPTS ${sdlldopts}"
@@ -4733,7 +4738,7 @@ cmdline=`echo $cmdline | sed -e s,--target=[a-zA-Z_0-9]\*,,g \
4733 -e s,--ram=[0-9]\*,,g \ 4738 -e s,--ram=[0-9]\*,,g \
4734 -e s,--rbdir=[./a-zA-Z0-9]\*,,g \ 4739 -e s,--rbdir=[./a-zA-Z0-9]\*,,g \
4735 -e s,--voice=[-_./a-zA-Z0-9]\*,,g \ 4740 -e s,--voice=[-_./a-zA-Z0-9]\*,,g \
4736 -e s,--type=[a-zA-Z]\*,,g` 4741 -e s,--type=[a-zA-Z0-9]\*,,g`
4737cmdline="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts" 4742cmdline="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts"
4738 4743
4739### end of cmdline 4744### end of cmdline
diff --git a/tools/list_targets.pl b/tools/list_targets.pl
index 039c14f0db..9785bb5f22 100755
--- a/tools/list_targets.pl
+++ b/tools/list_targets.pl
@@ -10,18 +10,29 @@
10 10
11require "./builds.pm"; 11require "./builds.pm";
12 12
13print "Retired:\n";
14
15for my $b (&stablebuilds) {
16 print " " , $builds{$b}{name} , "\n" if($builds{$b}{status} == 0);
17}
18
13print "Stable:\n"; 19print "Stable:\n";
14 20
15for my $b (&stablebuilds) { 21for my $b (&stablebuilds) {
16 print $builds{$b}{name} , "\n"; 22 print " " , $builds{$b}{name} , "\n" if($builds{$b}{status} != 0);
17} 23}
18 24
19print "Unstable:\n"; 25print "Unstable:\n";
20for my $b (&usablebuilds) { 26for my $b (&usablebuilds) {
21 print $builds{$b}{name} , "\n"; 27 print " " , $builds{$b}{name} , "\n";
22} 28}
23 29
24print "Unusable:\n"; 30print "Unusable:\n";
25for my $b (&allbuilds) { 31for my $b (&allbuilds) {
26 print $builds{$b}{name} , "\n" if($builds{$b}{status} == 1); 32 print " " , $builds{$b}{name} , "\n" if($builds{$b}{status} == 1);
33}
34
35print "Simulators:\n";
36for my $b (&simbuilds) {
37 print " " , $builds{$b}{name} , "\n";
27} 38}
diff --git a/tools/release/sims.pl b/tools/release/sims.pl
index 2cf5c4f45a..10cf950c53 100755
--- a/tools/release/sims.pl
+++ b/tools/release/sims.pl
@@ -188,26 +188,14 @@ sub buildit {
188 `make install 2>/dev/null`; 188 `make install 2>/dev/null`;
189} 189}
190 190
191for my $b (sort byname keys %builds) { 191for my $b (sort &simbuilds) {
192 if ($builds{$b}{status} > 0 && $builds{$b}{status} >= 2) 192 if ($builds{$b}{ram} ne '')
193 { 193 {
194 if ($builds{$b}{ram} ne '') 194 # These builds need the ram size sent to configure
195 { 195 runone($b, $builds{$b}{ram} . '\n');
196 # These builds need the ram size sent to configure 196 }
197 runone($b, $builds{$b}{ram} . '\n'); 197 else
198 } 198 {
199 else 199 runone($b);
200 {
201 runone($b);
202 }
203 } 200 }
204} 201}
205
206#The following ports are in the unusable category, but the simulator does build
207runone("ondavx747");
208runone("ondavx747p");
209runone("ondavx777");
210runone("sansam200v4");
211runone("zenvision");
212runone("zenvisionm30gb");
213runone("zenvisionm60gb");
diff --git a/tools/xduoox3-updatebl.sh b/tools/xduoox3-updatebl.sh
new file mode 100755
index 0000000000..efb52bff8c
--- /dev/null
+++ b/tools/xduoox3-updatebl.sh
@@ -0,0 +1,5 @@
1#!/bin/sh
2unzip $1 rockbox.bin
3dd if=bootloader-x3.bin of=rockbox.bin bs=2048 seek=4 conv=nocreat conv=notrunc
4zip -o $1 rockbox.bin rockbox-info.txt
5rm rockbox.bin