1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Solomon Peachy 2024-06-19 17:26:47 -04:00
parent 204551444e
commit 637f93074e

View file

@ -22,9 +22,8 @@ while (scalar @ARGV > 0) {
print <<MOO print <<MOO
Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly]
-v Verbose output -v Verbose output
-u Run svn up before building -u Run 'git pull' before building
-r Use the specified version string for filenames (defaults to SVN -r Use the specified version string for filenames (defaults to git revision)
revision)
-s Strip binaries before zipping them up. -s Strip binaries before zipping them up.
-w Crosscompile for Windows (requires mingw32) -w Crosscompile for Windows (requires mingw32)
-f Filename format string (without extension). This can include a -f Filename format string (without extension). This can include a
@ -70,8 +69,8 @@ MOO
} }
if($update) { if($update) {
# svn update! # Update git repo!
system("svn -q up"); system("git pull");
} }
$test = `sdl-config --libs`; $test = `sdl-config --libs`;
@ -82,7 +81,6 @@ if ($test eq "") {
$rev = `tools/version.sh .`; $rev = `tools/version.sh .`;
chomp $rev; chomp $rev;
print "rev $rev\n" if($verbose);
if (@doonly) { if (@doonly) {
printf("Build only %s\n", join(', ', @doonly)) if($verbose); printf("Build only %s\n", join(', ', @doonly)) if($verbose);
@ -91,6 +89,7 @@ if (@doonly) {
if (!defined($version)) { if (!defined($version)) {
$version = $rev; $version = $rev;
} }
print "version $version\n" if($verbose);
# made once for all targets # made once for all targets
sub runone { sub runone {
@ -191,10 +190,6 @@ sub buildit {
for my $b (sort byname keys %builds) { for my $b (sort byname keys %builds) {
if ($builds{$b}{status} >= 2) if ($builds{$b}{status} >= 2)
{
# ipodvideo64mb uses the ipodvideo simulator
# sansae200r uses the sansae200 simulator
if ($b ne 'ipodvideo64mb' && $b ne 'sansae200r')
{ {
if ($builds{$b}{ram} ne '') if ($builds{$b}{ram} ne '')
{ {
@ -206,11 +201,9 @@ for my $b (sort byname keys %builds) {
runone($b); runone($b);
} }
} }
}
} }
#The following ports are in the unusable category, but the simulator does build #The following ports are in the unusable category, but the simulator does build
runone("mini2440");
runone("ondavx747"); runone("ondavx747");
runone("ondavx747p"); runone("ondavx747p");
runone("ondavx777"); runone("ondavx777");
@ -218,11 +211,3 @@ runone("sansam200v4");
runone("zenvision"); runone("zenvision");
runone("zenvisionm30gb"); runone("zenvisionm30gb");
runone("zenvisionm60gb"); runone("zenvisionm60gb");
runone("creativezenxfi2");
runone("creativezenxfi3");
runone("sonynwze360");
runone("sonynwze370");
runone("creativezenxfi");
runone("creativezen");
runone("creativezenmozaic");
runone("xduoox3");