summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/buildzip.pl15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 98419d8763..1d869f8426 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -85,6 +85,9 @@ Remote Icon Height: CONFIG_REMOTE_DEFAULT_ICON_HEIGHT
85#else 85#else
86Remote Depth: 0 86Remote Depth: 0
87#endif 87#endif
88#ifdef HAVE_RECORDING
89Recording: yes
90#endif
88STOP 91STOP
89; 92;
90 close(GCC); 93 close(GCC);
@@ -97,6 +100,7 @@ STOP
97 100
98 my ($bitmap, $depth, $swcodec, $icon_h, $icon_w); 101 my ($bitmap, $depth, $swcodec, $icon_h, $icon_w);
99 my ($remote_depth, $remote_icon_h, $remote_icon_w); 102 my ($remote_depth, $remote_icon_h, $remote_icon_w);
103 my ($recording);
100 $icon_count = 1; 104 $icon_count = 1;
101 while(<TARGET>) { 105 while(<TARGET>) {
102 # print STDERR "DATA: $_"; 106 # print STDERR "DATA: $_";
@@ -125,11 +129,14 @@ STOP
125 elsif($_ =~ /^Remote Icon Height: (\d*)/) { 129 elsif($_ =~ /^Remote Icon Height: (\d*)/) {
126 $remote_icon_h = $1; 130 $remote_icon_h = $1;
127 } 131 }
132 if($_ =~ /^Recording: (.*)/) {
133 $recording = $1;
134 }
128 } 135 }
129 close(TARGET); 136 close(TARGET);
130 unlink("gcctemp"); 137 unlink("gcctemp");
131 138
132 return ($bitmap, $depth, $icon_w, $icon_h, 139 return ($bitmap, $depth, $icon_w, $icon_h, $recording,
133 $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h); 140 $swcodec, $remote_depth, $remote_icon_w, $remote_icon_h);
134} 141}
135 142
@@ -159,7 +166,7 @@ sub buildlangs {
159sub buildzip { 166sub buildzip {
160 my ($zip, $image, $fonts)=@_; 167 my ($zip, $image, $fonts)=@_;
161 168
162 my ($bitmap, $depth, $icon_w, $icon_h, $swcodec, 169 my ($bitmap, $depth, $icon_w, $icon_h, $recording, $swcodec,
163 $remote_depth, $remote_icon_w, $remote_icon_h) = &gettargetinfo(); 170 $remote_depth, $remote_icon_w, $remote_icon_h) = &gettargetinfo();
164 171
165 # print "Bitmap: $bitmap\nDepth: $depth\nSwcodec: $swcodec\n"; 172 # print "Bitmap: $bitmap\nDepth: $depth\nSwcodec: $swcodec\n";
@@ -200,7 +207,9 @@ sub buildzip {
200 207
201 mkdir ".rockbox/langs", 0777; 208 mkdir ".rockbox/langs", 0777;
202 mkdir ".rockbox/rocks", 0777; 209 mkdir ".rockbox/rocks", 0777;
203 mkdir ".rockbox/recpresets", 0777; 210 if ($recording) {
211 mkdir ".rockbox/recpresets", 0777;
212 }
204 213
205 if($swcodec) { 214 if($swcodec) {
206 mkdir ".rockbox/eqs", 0777; 215 mkdir ".rockbox/eqs", 0777;