summaryrefslogtreecommitdiff
path: root/tools/release/sims.pl
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-06-19 17:26:47 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-06-19 17:26:47 -0400
commit637f93074ebf9214c77af0147169c729e162b6fa (patch)
treecc7dc4c34403d7382fa12cd6debf06a92c780597 /tools/release/sims.pl
parent204551444efa762a54e3ef4a26eaea117eccb832 (diff)
downloadrockbox-637f93074ebf9214c77af0147169c729e162b6fa.tar.gz
rockbox-637f93074ebf9214c77af0147169c729e162b6fa.zip
tools: Clean out some historical cruft from 'sims.pl'
It's intended to build all of the Windows Simulator builds in one fell swoop but has bitrotten a bit. Correct some of the glaring problems. Change-Id: I6073af629d2698624036ccf303a5d18398cefdc0
Diffstat (limited to 'tools/release/sims.pl')
-rwxr-xr-xtools/release/sims.pl45
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
23Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] 23Usage: 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
72if($update) { 71if($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 .`;
84chomp $rev; 83chomp $rev;
85print "rev $rev\n" if($verbose);
86 84
87if (@doonly) { 85if (@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) {
91if (!defined($version)) { 89if (!defined($version)) {
92 $version = $rev; 90 $version = $rev;
93} 91}
92print "version $version\n" if($verbose);
94 93
95# made once for all targets 94# made once for all targets
96sub runone { 95sub 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 {
192for my $b (sort byname keys %builds) { 191for 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
213runone("mini2440");
214runone("ondavx747"); 207runone("ondavx747");
215runone("ondavx747p"); 208runone("ondavx747p");
216runone("ondavx777"); 209runone("ondavx777");
@@ -218,11 +211,3 @@ runone("sansam200v4");
218runone("zenvision"); 211runone("zenvision");
219runone("zenvisionm30gb"); 212runone("zenvisionm30gb");
220runone("zenvisionm60gb"); 213runone("zenvisionm60gb");
221runone("creativezenxfi2");
222runone("creativezenxfi3");
223runone("sonynwze360");
224runone("sonynwze370");
225runone("creativezenxfi");
226runone("creativezen");
227runone("creativezenmozaic");
228runone("xduoox3");