diff options
Diffstat (limited to 'tools/release')
-rwxr-xr-x | tools/release/sims.pl | 45 |
1 files changed, 15 insertions, 30 deletions
diff --git a/tools/release/sims.pl b/tools/release/sims.pl index 190516907e..18893885b2 100755 --- a/tools/release/sims.pl +++ b/tools/release/sims.pl | |||
@@ -22,9 +22,8 @@ while (scalar @ARGV > 0) { | |||
22 | print <<MOO | 22 | print <<MOO |
23 | Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] | 23 | Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] |
24 | -v Verbose output | 24 | -v Verbose output |
25 | -u Run svn up before building | 25 | -u Run 'git pull' before building |
26 | -r Use the specified version string for filenames (defaults to SVN | 26 | -r Use the specified version string for filenames (defaults to git revision) |
27 | revision) | ||
28 | -s Strip binaries before zipping them up. | 27 | -s Strip binaries before zipping them up. |
29 | -w Crosscompile for Windows (requires mingw32) | 28 | -w Crosscompile for Windows (requires mingw32) |
30 | -f Filename format string (without extension). This can include a | 29 | -f Filename format string (without extension). This can include a |
@@ -70,8 +69,8 @@ MOO | |||
70 | } | 69 | } |
71 | 70 | ||
72 | if($update) { | 71 | if($update) { |
73 | # svn update! | 72 | # Update git repo! |
74 | system("svn -q up"); | 73 | system("git pull"); |
75 | } | 74 | } |
76 | 75 | ||
77 | $test = `sdl-config --libs`; | 76 | $test = `sdl-config --libs`; |
@@ -82,7 +81,6 @@ if ($test eq "") { | |||
82 | 81 | ||
83 | $rev = `tools/version.sh .`; | 82 | $rev = `tools/version.sh .`; |
84 | chomp $rev; | 83 | chomp $rev; |
85 | print "rev $rev\n" if($verbose); | ||
86 | 84 | ||
87 | if (@doonly) { | 85 | if (@doonly) { |
88 | printf("Build only %s\n", join(', ', @doonly)) if($verbose); | 86 | printf("Build only %s\n", join(', ', @doonly)) if($verbose); |
@@ -91,6 +89,7 @@ if (@doonly) { | |||
91 | if (!defined($version)) { | 89 | if (!defined($version)) { |
92 | $version = $rev; | 90 | $version = $rev; |
93 | } | 91 | } |
92 | print "version $version\n" if($verbose); | ||
94 | 93 | ||
95 | # made once for all targets | 94 | # made once for all targets |
96 | sub runone { | 95 | sub runone { |
@@ -125,7 +124,7 @@ sub runone { | |||
125 | my $AS=(grep(/^export AS=/, <MAKE>))[0]; | 124 | my $AS=(grep(/^export AS=/, <MAKE>))[0]; |
126 | chomp($AS); | 125 | chomp($AS); |
127 | (my $striptool = $AS) =~ s/^export AS=(.*)as$/$1strip/; | 126 | (my $striptool = $AS) =~ s/^export AS=(.*)as$/$1strip/; |
128 | 127 | ||
129 | $cmd = "find \\( -name 'rockboxui*' -o -iname '*dll' -o -name '*.rock' -o -name '*.codec' \\) -exec $striptool '{}' ';'"; | 128 | $cmd = "find \\( -name 'rockboxui*' -o -iname '*dll' -o -name '*.rock' -o -name '*.codec' \\) -exec $striptool '{}' ';'"; |
130 | print("$cmd\n") if ($verbose); | 129 | print("$cmd\n") if ($verbose); |
131 | `$cmd`; | 130 | `$cmd`; |
@@ -192,25 +191,19 @@ sub buildit { | |||
192 | for my $b (sort byname keys %builds) { | 191 | for my $b (sort byname keys %builds) { |
193 | if ($builds{$b}{status} >= 2) | 192 | if ($builds{$b}{status} >= 2) |
194 | { | 193 | { |
195 | # ipodvideo64mb uses the ipodvideo simulator | 194 | if ($builds{$b}{ram} ne '') |
196 | # sansae200r uses the sansae200 simulator | 195 | { |
197 | if ($b ne 'ipodvideo64mb' && $b ne 'sansae200r') | 196 | # These builds need the ram size sent to configure |
198 | { | 197 | runone($b, $builds{$b}{ram} . '\n'); |
199 | if ($builds{$b}{ram} ne '') | 198 | } |
200 | { | 199 | else |
201 | # These builds need the ram size sent to configure | 200 | { |
202 | runone($b, $builds{$b}{ram} . '\n'); | 201 | runone($b); |
203 | } | 202 | } |
204 | else | ||
205 | { | ||
206 | runone($b); | ||
207 | } | ||
208 | } | ||
209 | } | 203 | } |
210 | } | 204 | } |
211 | 205 | ||
212 | #The following ports are in the unusable category, but the simulator does build | 206 | #The following ports are in the unusable category, but the simulator does build |
213 | runone("mini2440"); | ||
214 | runone("ondavx747"); | 207 | runone("ondavx747"); |
215 | runone("ondavx747p"); | 208 | runone("ondavx747p"); |
216 | runone("ondavx777"); | 209 | runone("ondavx777"); |
@@ -218,11 +211,3 @@ runone("sansam200v4"); | |||
218 | runone("zenvision"); | 211 | runone("zenvision"); |
219 | runone("zenvisionm30gb"); | 212 | runone("zenvisionm30gb"); |
220 | runone("zenvisionm60gb"); | 213 | runone("zenvisionm60gb"); |
221 | runone("creativezenxfi2"); | ||
222 | runone("creativezenxfi3"); | ||
223 | runone("sonynwze360"); | ||
224 | runone("sonynwze370"); | ||
225 | runone("creativezenxfi"); | ||
226 | runone("creativezen"); | ||
227 | runone("creativezenmozaic"); | ||
228 | runone("xduoox3"); | ||