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