summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-11-04 10:47:48 +0000
committerNils Wallménius <nils@rockbox.org>2008-11-04 10:47:48 +0000
commitc6ccf7586931f175c73b23b04d84c4b1588c6c02 (patch)
treedff31767dee424aae1e5b9edd9afc70d0470bfc9
parent9d04f1d8f0b2f057d5369433c72d4353d5fd8385 (diff)
downloadrockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.zip
rockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.tar.gz
rockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.tar.bz2
rockbox-c6ccf7586931f175c73b23b04d84c4b1588c6c02.tar.xz
Changes to simulator installation, 'make fullinstall' is now the way to install everything, 'make install' is much faster but does not include fonts, avoid useless file compression/extraction making fullinstall about twice as fast as the old install, remember to reconfigure your sim builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19000 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/buildzip.pl13
-rwxr-xr-xtools/configure11
2 files changed, 21 insertions, 3 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index e6ddab9..107c1b7 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -50,6 +50,7 @@ $ROOT="..";
my $ziptool="zip -r9";
my $output="rockbox.zip";
my $verbose;
+my $sim;
my $exe;
my $target;
my $archos;
@@ -95,6 +96,10 @@ while(1) {
$verbose =1;
shift @ARGV;
}
+ elsif($ARGV[0] eq "-s") {
+ $sim =1;
+ shift @ARGV;
+ }
else {
$target = $ARGV[0];
$exe = $ARGV[1];
@@ -448,7 +453,13 @@ sub runone {
if($verbose) {
print "$ziptool $output .rockbox $target >/dev/null\n";
}
- system("$ziptool $output .rockbox $target >/dev/null");
+
+ if($sim) {
+ system("cp -r .rockbox archos/ >/dev/null");
+ }
+ else {
+ system("$ziptool $output .rockbox $target >/dev/null");
+ }
# remove the .rockbox afterwards
rmtree('.rockbox');
diff --git a/tools/configure b/tools/configure
index 43974e8..443ea9f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -2595,7 +2595,8 @@ help:
@echo "mapzip - creates rockbox-maps.zip with all .map files"
@echo "tools - builds the tools only"
@echo "voicetools - builds the voice tools only"
- @echo "install - installs your build (for simulator builds only)"
+ @echo "install - installs your build (for simulator builds only, no fonts)"
+ @echo "fullinstall - installs your build (for simulator builds only, with fonts)"
EOF
@@ -2604,8 +2605,14 @@ if [ "yes" = "$simulator" ]; then
cat >> Makefile <<EOF
install:
+ @echo "installing your build in your archos dir"
+ \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
+ \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 0 \$(TARGET) \$(BINARY)
+
+fullinstall:
@echo "installing a full setup in your archos dir"
- @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
+ \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
+ \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 2 \$(TARGET) \$(BINARY)
EOF
fi