4 require "tools/builds.pm";
13 if($ARGV[0] eq "-u") {
21 print "only build $doonly\n" if($verbose);
31 print "rev $rev\n" if($verbose);
33 # made once for all targets
35 my ($dir, $confnum, $extra)=@_;
38 if($doonly && ($doonly ne $dir)) {
44 print "Build in build-$dir\n" if($verbose);
47 $a = buildit
($dir, $confnum, $extra);
51 my $o="build-$dir/rockbox.zip";
53 my $newo="output/rockbox-$dir-$version.zip";
54 system("mkdir -p output");
55 system("mv $o $newo");
56 print "moved $o to $newo\n" if($verbose);
59 print "remove all contents in build-$dir\n" if($verbose);
60 system("rm -rf build-$dir");
66 my ($dir, $confnum, $newl)=@_;
69 if($doonly && ($doonly ne $dir)) {
75 print "Build fonts in build-$dir\n" if($verbose);
78 $a = buildfonts
($dir, $confnum, $newl);
82 my $o="build-$dir/rockbox-fonts.zip";
84 my $newo="output/rockbox-fonts-$version.zip";
85 system("mv $o $newo");
86 print "moved $o to $newo\n" if($verbose);
89 print "remove all contents in build-$dir\n" if($verbose);
90 system("rm -rf build-$dir");
98 my ($target, $confnum, $extra)=@_;
100 `rm -rf * >/dev/null 2>&1`;
102 my $ram = $extra ?
$extra : -1;
103 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram";
105 print "C: $c\n" if($verbose);
108 print "Run 'make'\n" if($verbose);
109 `make -j 2>/dev/null`;
111 print "Run 'make zip'\n" if($verbose);
112 `make zip 2>/dev/null`;
114 print "Run 'make mapzip'\n" if($verbose);
115 `make mapzip 2>/dev/null`;
119 my ($target, $confnum, $newl)=@_;
121 `rm -rf * >/dev/null 2>&1`;
123 my $ram = $extra ?
$extra : -1;
124 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram";
126 print "C: $c\n" if($verbose);
129 print "Run 'make fontzip'\n" if($verbose);
130 `make fontzip 2>/dev/null`;
133 # run make in tools first to make sure they're up-to-date
134 print "cd tools && make\n" if($verbose);
135 `(cd tools && make ) >/dev/null 2>&1`;
137 for my $b (&stablebuilds
) {
138 my $configname = $builds{b
}{configname
} ?
$builds{b
}{configname
} : $b;
139 runone
($b, $configname, $builds{b
}{ram
});
142 fonts
("fonts", "iaudiox5");