b2cce2d1225558e8b3be2d85f98445eb0febb299
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";
52 my $map="build-$dir/rockbox-maps.zip";
53 my $elf="build-$dir/rockbox-elfs.zip";
55 my $newo="output/rockbox-$dir-$version.zip";
56 my $newmap="output/rockbox-$dir-$version-maps.zip";
57 my $newelf="output/rockbox-$dir-$version-elfs.zip";
58 system("mkdir -p output");
59 system("mv $o $newo");
60 print "moved $o to $newo\n" if($verbose);
61 system("mv $map $newmap");
62 print "moved $map to $newmap\n" if($verbose);
63 system("mv $elf $newelf");
64 print "moved $elf to $newelf\n" if($verbose);
67 print "remove all contents in build-$dir\n" if($verbose);
68 system("rm -rf build-$dir");
74 my ($dir, $confnum, $newl)=@_;
77 if($doonly && ($doonly ne $dir)) {
83 print "Build fonts in build-$dir\n" if($verbose);
86 $a = buildfonts
($dir, $confnum, $newl);
90 my $o="build-$dir/rockbox-fonts.zip";
92 my $newo="output/rockbox-fonts-$version.zip";
93 system("mv $o $newo");
94 print "moved $o to $newo\n" if($verbose);
97 print "remove all contents in build-$dir\n" if($verbose);
98 system("rm -rf build-$dir");
106 my ($target, $confnum, $extra)=@_;
108 `rm -rf * >/dev/null 2>&1`;
110 my $ram = $extra ?
$extra : -1;
111 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram";
113 print "C: $c\n" if($verbose);
116 print "Run 'make'\n" if($verbose);
117 `make VERSION=$version`;
119 print "Run 'make zip'\n" if($verbose);
120 `make zip VERSION=$version`;
122 print "Run 'make mapzip'\n" if($verbose);
123 `make mapzip VERSION=$version`;
125 print "Run 'make elfzip'\n" if($verbose);
126 `make elfzip VERSION=$version`;
130 my ($target, $confnum, $newl)=@_;
132 `rm -rf * >/dev/null 2>&1`;
134 my $ram = $extra ?
$extra : -1;
135 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram";
137 print "C: $c\n" if($verbose);
140 print "Run 'make fontzip'\n" if($verbose);
144 # run make in tools first to make sure they're up-to-date
145 print "cd tools && make\n" if($verbose);
146 `(cd tools && make ) >/dev/null`;
148 for my $b (&stablebuilds
) {
149 my $configname = $builds{$b}{configname
} ?
$builds{$b}{configname
} : $b;
150 runone
($b, $configname, $builds{$b}{ram
});
153 fonts
("fonts", "iaudiox5");