summaryrefslogtreecommitdiff
path: root/tools/release/sims.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/release/sims.pl')
-rwxr-xr-xtools/release/sims.pl92
1 files changed, 37 insertions, 55 deletions
diff --git a/tools/release/sims.pl b/tools/release/sims.pl
index abf652b312..a9d094c356 100755
--- a/tools/release/sims.pl
+++ b/tools/release/sims.pl
@@ -4,7 +4,7 @@ use File::Basename;
4use File::Path; 4use File::Path;
5use Cwd; 5use Cwd;
6 6
7require "../builds.pm"; 7require "tools/builds.pm";
8 8
9my $verbose, $strip, $update, $doonly, $version; 9my $verbose, $strip, $update, $doonly, $version;
10my @doonly; 10my @doonly;
@@ -94,7 +94,7 @@ if (!defined($version)) {
94 94
95# made once for all targets 95# made once for all targets
96sub runone { 96sub runone {
97 my ($dir)=@_; 97 my ($dir, $extra)=@_;
98 my $a; 98 my $a;
99 99
100 if(@doonly > 0 && !grep(/^$dir$/, @doonly)) { 100 if(@doonly > 0 && !grep(/^$dir$/, @doonly)) {
@@ -106,7 +106,7 @@ sub runone {
106 print "Build in build-$dir\n" if($verbose); 106 print "Build in build-$dir\n" if($verbose);
107 107
108 # build the target 108 # build the target
109 $a = buildit($dir); 109 $a = buildit($dir, $extra);
110 110
111 # Do not continue if the rockboxui executable is not created. This will 111 # Do not continue if the rockboxui executable is not created. This will
112 # prevent a good build getting overwritten by a bad build when 112 # prevent a good build getting overwritten by a bad build when
@@ -176,7 +176,7 @@ sub runone {
176}; 176};
177 177
178sub buildit { 178sub buildit {
179 my ($target, $confnum, $extra)=@_; 179 my ($dir, $extra)=@_;
180 180
181 `rm -rf * >/dev/null 2>&1`; 181 `rm -rf * >/dev/null 2>&1`;
182 182
@@ -188,7 +188,7 @@ sub buildit {
188 } 188 }
189 189
190 my $c = sprintf('printf "%s\n%s%s" | ../tools/configure', 190 my $c = sprintf('printf "%s\n%s%s" | ../tools/configure',
191 $confnum, $extra, $simstring); 191 $dir, $extra, $simstring);
192 192
193 print "C: $c\n" if($verbose); 193 print "C: $c\n" if($verbose);
194 `$c`; 194 `$c`;
@@ -200,53 +200,35 @@ sub buildit {
200 `make install 2>/dev/null`; 200 `make install 2>/dev/null`;
201} 201}
202 202
203runone("player", "player", '\n'); 203for my $b (sort byname keys %builds) {
204runone("recorder", "recorder", '\n'); 204 if ($builds{$b}{status} >= 2)
205#runone("recorder8mb", "recorder", '8\n'); 205 {
206runone("fmrecorder", "fmrecorder", '\n'); 206 # ipodvideo64mb uses the ipodvideo simulator
207#runone("fmrecorder8mb", "fmrecorder", '8\n'); 207 # sansae200r uses the sansae200 simulator
208runone("recorderv2", "recorderv2", '\n'); 208 if ($b ne 'ipodvideo64mb' && $b ne 'sansae200r')
209runone("ondiosp", "ondiosp", '\n'); 209 {
210runone("ondiofm", "ondiofm", '\n'); 210 if ($builds{$b}{ram} ne '')
211runone("h100", "h100"); 211 {
212runone("h120", "h120"); 212 # These builds need the ram size sent to configure
213runone("h300", "h300"); 213 runone($b, $builds{$b}{ram} . '\n');
214runone("ipodcolor", "ipodcolor"); 214 }
215runone("ipodnano", "ipodnano"); 215 else
216runone("ipod4gray", "ipod4g"); 216 {
217runone("ipodvideo", "ipodvideo", '32\n'); 217 runone($b);
218#runone("ipodvideo64mb", "ipodvideo", '64\n'); 218 }
219runone("ipod3g", "ipod3g"); 219 }
220runone("ipod1g2g", "ipod1g2g"); 220 }
221runone("iaudiox5", "x5"); 221}
222runone("iaudiom5", "m5"); 222
223runone("iaudiom3", "m3"); 223#The following ports are in the unusable category, but the simulator does build
224runone("ipodmini1g", "ipodmini"); 224runone("gogearhdd1630");
225runone("ipodmini2g", "ipodmini2g"); 225runone("gogearsa9200");
226runone("h10", "h10"); 226runone("mini2440");
227runone("h10_5gb", "h10_5gb"); 227runone("ondavx747");
228runone("gigabeatf", "gigabeatf"); 228runone("ondavx747p");
229runone("gigabeats", "gigabeats"); 229runone("ondavx777");
230runone("sansae200", "e200"); 230runone("sansac200v2");
231runone("sansae200v2", "e200v2"); 231runone("sansam200v4");
232runone("sansac200", "c200"); 232runone("zenvision");
233runone("mrobe500", "mrobe500"); 233runone("zenvisionm30gb");
234runone("mrobe100", "mrobe100"); 234runone("zenvisionm60gb");
235runone("cowond2", "cowond2");
236runone("clip", "clip");
237runone("zvm30gb", "creativezvm30gb");
238runone("zvm60gb", "creativezvm60gb");
239runone("zenvision", "creativezenvision");
240runone("hdd1630", "hdd1630");
241runone("fuze", "fuze");
242runone("m200v4", "m200v4");
243runone("sa9200", "sa9200");
244runone("sansac200v2", "c200v2");
245runone("yh820", "yh820");
246runone("yh920", "yh920");
247runone("yh925", "yh925");
248runone("ondavx747", "ondavx747");
249runone("ondavx747p", "ondavx747p");
250runone("ondavx777", "ondavx777");
251#runone("ifp7xx", "ifp7xx");
252runone("lyremini2440", "mini2440");