From 7e67dc6ac75ca80b9a7298fe3e0a5aa7897ba175 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 11 Apr 2009 17:45:11 +0000 Subject: "make (full)install" for normal builds, specifiy the installation destination with PREFIX (e.g. PREFIX=/mnt/my_dap ../tools/configure). PREFIX not needed for sims, as it defaults to simdisk although PREFIX can override simdisk/. Use zip -r0 for install, and -r9 for for actual zips. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20687 a1c6a512-1295-4272-9138-f99709370657 --- tools/buildzip.pl | 11 +++++++---- tools/configure | 2 ++ tools/root.make | 29 +++++++++++++++++++---------- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 7df6af3..c32733b 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -21,7 +21,7 @@ my $ROOT=".."; my $ziptool="zip -r9"; my $output="rockbox.zip"; my $verbose; -my $sim; +my $install="/dev/null"; my $exe; my $target; my $modelname; @@ -75,7 +75,7 @@ GetOptions ( 'r|root=s' => \$ROOT, 'o|output=s' => \$output, 'f|fonts=s' => \$incfonts, # 0 - no fonts, 1 - fonts only 2 - fonts and package 'v|verbose' => \$verbose, - 's|sim' => \$sim, + 'install=s' => \$install, # install destination 'rbdir=s' => \$rbdir, # If we want to put in a different directory ); @@ -438,8 +438,11 @@ sub runone { print "$ziptool $output $rbdir $target >/dev/null\n"; } - if($sim) { - system("cp -r $rbdir simdisk/ >/dev/null"); + if($install) { + if ($install =~ /\/dev\/null/) { + die "ERROR: No PREFIX given\n" + } + system("cp -r $rbdir \"$install\" >/dev/null"); } else { system("$ziptool $output $rbdir $target >/dev/null"); diff --git a/tools/configure b/tools/configure index 44ae3e5..72d0c79 100755 --- a/tools/configure +++ b/tools/configure @@ -2526,6 +2526,7 @@ sed > Makefile \ -e "s,@LANGS@,${buildlangs},g" \ -e "s,@USE_ELF@,${USE_ELF},g" \ -e "s,@RBDIR@,${rbdir},g" \ + -e "s,@PREFIX@,$PREFIX,g" \ -e "s,@CMDLINE@,$cmdline,g" \ <