diff options
Diffstat (limited to 'tools/release')
-rwxr-xr-x | tools/release/sims.pl | 92 |
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; | |||
4 | use File::Path; | 4 | use File::Path; |
5 | use Cwd; | 5 | use Cwd; |
6 | 6 | ||
7 | require "../builds.pm"; | 7 | require "tools/builds.pm"; |
8 | 8 | ||
9 | my $verbose, $strip, $update, $doonly, $version; | 9 | my $verbose, $strip, $update, $doonly, $version; |
10 | my @doonly; | 10 | my @doonly; |
@@ -94,7 +94,7 @@ if (!defined($version)) { | |||
94 | 94 | ||
95 | # made once for all targets | 95 | # made once for all targets |
96 | sub runone { | 96 | sub 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 | ||
178 | sub buildit { | 178 | sub 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 | ||
203 | runone("player", "player", '\n'); | 203 | for my $b (sort byname keys %builds) { |
204 | runone("recorder", "recorder", '\n'); | 204 | if ($builds{$b}{status} >= 2) |
205 | #runone("recorder8mb", "recorder", '8\n'); | 205 | { |
206 | runone("fmrecorder", "fmrecorder", '\n'); | 206 | # ipodvideo64mb uses the ipodvideo simulator |
207 | #runone("fmrecorder8mb", "fmrecorder", '8\n'); | 207 | # sansae200r uses the sansae200 simulator |
208 | runone("recorderv2", "recorderv2", '\n'); | 208 | if ($b ne 'ipodvideo64mb' && $b ne 'sansae200r') |
209 | runone("ondiosp", "ondiosp", '\n'); | 209 | { |
210 | runone("ondiofm", "ondiofm", '\n'); | 210 | if ($builds{$b}{ram} ne '') |
211 | runone("h100", "h100"); | 211 | { |
212 | runone("h120", "h120"); | 212 | # These builds need the ram size sent to configure |
213 | runone("h300", "h300"); | 213 | runone($b, $builds{$b}{ram} . '\n'); |
214 | runone("ipodcolor", "ipodcolor"); | 214 | } |
215 | runone("ipodnano", "ipodnano"); | 215 | else |
216 | runone("ipod4gray", "ipod4g"); | 216 | { |
217 | runone("ipodvideo", "ipodvideo", '32\n'); | 217 | runone($b); |
218 | #runone("ipodvideo64mb", "ipodvideo", '64\n'); | 218 | } |
219 | runone("ipod3g", "ipod3g"); | 219 | } |
220 | runone("ipod1g2g", "ipod1g2g"); | 220 | } |
221 | runone("iaudiox5", "x5"); | 221 | } |
222 | runone("iaudiom5", "m5"); | 222 | |
223 | runone("iaudiom3", "m3"); | 223 | #The following ports are in the unusable category, but the simulator does build |
224 | runone("ipodmini1g", "ipodmini"); | 224 | runone("gogearhdd1630"); |
225 | runone("ipodmini2g", "ipodmini2g"); | 225 | runone("gogearsa9200"); |
226 | runone("h10", "h10"); | 226 | runone("mini2440"); |
227 | runone("h10_5gb", "h10_5gb"); | 227 | runone("ondavx747"); |
228 | runone("gigabeatf", "gigabeatf"); | 228 | runone("ondavx747p"); |
229 | runone("gigabeats", "gigabeats"); | 229 | runone("ondavx777"); |
230 | runone("sansae200", "e200"); | 230 | runone("sansac200v2"); |
231 | runone("sansae200v2", "e200v2"); | 231 | runone("sansam200v4"); |
232 | runone("sansac200", "c200"); | 232 | runone("zenvision"); |
233 | runone("mrobe500", "mrobe500"); | 233 | runone("zenvisionm30gb"); |
234 | runone("mrobe100", "mrobe100"); | 234 | runone("zenvisionm60gb"); |
235 | runone("cowond2", "cowond2"); | ||
236 | runone("clip", "clip"); | ||
237 | runone("zvm30gb", "creativezvm30gb"); | ||
238 | runone("zvm60gb", "creativezvm60gb"); | ||
239 | runone("zenvision", "creativezenvision"); | ||
240 | runone("hdd1630", "hdd1630"); | ||
241 | runone("fuze", "fuze"); | ||
242 | runone("m200v4", "m200v4"); | ||
243 | runone("sa9200", "sa9200"); | ||
244 | runone("sansac200v2", "c200v2"); | ||
245 | runone("yh820", "yh820"); | ||
246 | runone("yh920", "yh920"); | ||
247 | runone("yh925", "yh925"); | ||
248 | runone("ondavx747", "ondavx747"); | ||
249 | runone("ondavx747p", "ondavx747p"); | ||
250 | runone("ondavx777", "ondavx777"); | ||
251 | #runone("ifp7xx", "ifp7xx"); | ||
252 | runone("lyremini2440", "mini2440"); | ||