summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Chicoine <mc2739@gmail.com>2010-10-13 23:10:22 +0000
committerMichael Chicoine <mc2739@gmail.com>2010-10-13 23:10:22 +0000
commit1682f3c66454ec2acd45023dfd782d6ffddac6f9 (patch)
treeb8d3d4ec89e1e9fb2e52e07623676501d8161f64 /tools
parenta43ace55eae8e80bbb92371656f7bb889351a742 (diff)
downloadrockbox-1682f3c66454ec2acd45023dfd782d6ffddac6f9.tar.gz
rockbox-1682f3c66454ec2acd45023dfd782d6ffddac6f9.tar.bz2
rockbox-1682f3c66454ec2acd45023dfd782d6ffddac6f9.zip
Do not build remote failsafe skin files for devices without remote
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28277 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl36
1 files changed, 23 insertions, 13 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index cb0c2b2f0a..22a706224f 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -306,36 +306,46 @@ sub filesize {
}
sub create_failsafefiles {
- my ($dir) = @_;
+ my ($dir, $remote_depth) = @_;
my $text = "# Dummy file to allow Rockbox to reset to the default skin config.
# Do not edit this file. It's never actually loaded by Rockbox.";
open (FOO, ">$dir/wps/rockbox_failsafe.wps");
print FOO $text;
close(FOO);
- open (FOO, ">$dir/wps/rockbox_failsafe.rwps");
- print FOO $text;
- close(FOO);
open (FOO, ">$dir/wps/rockbox_failsafe.sbs");
print FOO $text;
close(FOO);
- open (FOO, ">$dir/wps/rockbox_failsafe.rsbs");
- print FOO $text;
- close(FOO);
open (FOO, ">$dir/wps/rockbox_failsafe.fms");
print FOO $text;
close(FOO);
- open (FOO, ">$dir/wps/rockbox_failsafe.rfms");
- print FOO $text;
- close(FOO);
+ if ($remote_depth) {
+ open (FOO, ">$dir/wps/rockbox_failsafe.rwps");
+ print FOO $text;
+ close(FOO);
+ open (FOO, ">$dir/wps/rockbox_failsafe.rsbs");
+ print FOO $text;
+ close(FOO);
+ open (FOO, ">$dir/wps/rockbox_failsafe.rfms");
+ print FOO $text;
+ close(FOO);
+ }
open (FOO, ">$dir/themes/rockbox_failsafe.cfg");
print FOO <<STOP
# This config has been autogenerated to reload the failsafe setup
wps: $dir/wps/rockbox_failsafe.wps
-rwps: $dir/wps/rockbox_failsafe.rwps
sbs: $dir/wps/rockbox_failsafe.sbs
-rsbs: $dir/wps/rockbox_failsafe.rsbs
fms: $dir/wps/rockbox_failsafe.fms
+STOP
+;
+ if ($remote_depth) {
+ print FOO <<STOP
+rwps: $dir/wps/rockbox_failsafe.rwps
+rsbs: $dir/wps/rockbox_failsafe.rsbs
rfms: $dir/wps/rockbox_failsafe.rfms
+STOP
+;
+ }
+ print FOO <<STOP
statusbar: top
font: 08-Schumacher-Clean.fnt
foreground color: 000000
@@ -549,7 +559,7 @@ STOP
"$temp_dir/rocks/demos/pictureflow_splash.bmp");
}
- create_failsafefiles($temp_dir);
+ create_failsafefiles($temp_dir, $remote_depth);
if($image) {
# image is blank when this is a simulator