summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2009-04-11 23:20:09 +0000
committerJonas Häggqvist <rasher@rasher.dk>2009-04-11 23:20:09 +0000
commita2008f9bdeed215256d8762d378397c8e417f7df (patch)
tree24a2498b64bc6314851fe463796217ca8449c5b1 /tools
parentfbe39975cfcce5b297cd54ff2952dd6cecebe3eb (diff)
downloadrockbox-a2008f9bdeed215256d8762d378397c8e417f7df.tar.gz
rockbox-a2008f9bdeed215256d8762d378397c8e417f7df.zip
Revert r20687 since it breaks make zip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20692 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl11
-rwxr-xr-xtools/configure2
-rw-r--r--tools/root.make31
3 files changed, 15 insertions, 29 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index c32733bcd9..7df6af3a36 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -21,7 +21,7 @@ my $ROOT="..";
21my $ziptool="zip -r9"; 21my $ziptool="zip -r9";
22my $output="rockbox.zip"; 22my $output="rockbox.zip";
23my $verbose; 23my $verbose;
24my $install="/dev/null"; 24my $sim;
25my $exe; 25my $exe;
26my $target; 26my $target;
27my $modelname; 27my $modelname;
@@ -75,7 +75,7 @@ GetOptions ( 'r|root=s' => \$ROOT,
75 'o|output=s' => \$output, 75 'o|output=s' => \$output,
76 'f|fonts=s' => \$incfonts, # 0 - no fonts, 1 - fonts only 2 - fonts and package 76 'f|fonts=s' => \$incfonts, # 0 - no fonts, 1 - fonts only 2 - fonts and package
77 'v|verbose' => \$verbose, 77 'v|verbose' => \$verbose,
78 'install=s' => \$install, # install destination 78 's|sim' => \$sim,
79 'rbdir=s' => \$rbdir, # If we want to put in a different directory 79 'rbdir=s' => \$rbdir, # If we want to put in a different directory
80 ); 80 );
81 81
@@ -438,11 +438,8 @@ sub runone {
438 print "$ziptool $output $rbdir $target >/dev/null\n"; 438 print "$ziptool $output $rbdir $target >/dev/null\n";
439 } 439 }
440 440
441 if($install) { 441 if($sim) {
442 if ($install =~ /\/dev\/null/) { 442 system("cp -r $rbdir simdisk/ >/dev/null");
443 die "ERROR: No PREFIX given\n"
444 }
445 system("cp -r $rbdir \"$install\" >/dev/null");
446 } 443 }
447 else { 444 else {
448 system("$ziptool $output $rbdir $target >/dev/null"); 445 system("$ziptool $output $rbdir $target >/dev/null");
diff --git a/tools/configure b/tools/configure
index 72d0c79950..44ae3e524f 100755
--- a/tools/configure
+++ b/tools/configure
@@ -2526,7 +2526,6 @@ sed > Makefile \
2526 -e "s,@LANGS@,${buildlangs},g" \ 2526 -e "s,@LANGS@,${buildlangs},g" \
2527 -e "s,@USE_ELF@,${USE_ELF},g" \ 2527 -e "s,@USE_ELF@,${USE_ELF},g" \
2528 -e "s,@RBDIR@,${rbdir},g" \ 2528 -e "s,@RBDIR@,${rbdir},g" \
2529 -e "s,@PREFIX@,$PREFIX,g" \
2530 -e "s,@CMDLINE@,$cmdline,g" \ 2529 -e "s,@CMDLINE@,$cmdline,g" \
2531<<EOF 2530<<EOF
2532## Automatically generated. http://www.rockbox.org/ 2531## Automatically generated. http://www.rockbox.org/
@@ -2573,7 +2572,6 @@ export WINDRES=@WINDRES@
2573export DLLTOOL=@DLLTOOL@ 2572export DLLTOOL=@DLLTOOL@
2574export DLLWRAP=@DLLWRAP@ 2573export DLLWRAP=@DLLWRAP@
2575export RANLIB=@RANLIB@ 2574export RANLIB=@RANLIB@
2576export PREFIX=@PREFIX@
2577export PROFILE_OPTS=@PROFILE_OPTS@ 2575export PROFILE_OPTS=@PROFILE_OPTS@
2578export SIMVER=@SIMVER@ 2576export SIMVER=@SIMVER@
2579export SIMDIR=\$(ROOTDIR)/uisimulator/sdl 2577export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
diff --git a/tools/root.make b/tools/root.make
index 9f4890e1f4..803a5d53b3 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -22,19 +22,6 @@ TOOLS = $(TOOLSDIR)/rdf2binary $(TOOLSDIR)/convbdf \
22 $(TOOLSDIR)/codepages $(TOOLSDIR)/scramble $(TOOLSDIR)/bmp2rb \ 22 $(TOOLSDIR)/codepages $(TOOLSDIR)/scramble $(TOOLSDIR)/bmp2rb \
23 $(TOOLSDIR)/uclpack $(TOOLSDIR)/mktccboot $(TOOLSDIR)/mkboot 23 $(TOOLSDIR)/uclpack $(TOOLSDIR)/mktccboot $(TOOLSDIR)/mkboot
24 24
25
26ifeq (,$(PREFIX))
27ifdef SIMVER
28PREFIX = simdisk
29INSTALL = --install="$(PREFIX)"
30else
31# Don't set INSTALL and error out later
32INSTALL =
33endif
34else
35INSTALL = --install="$(PREFIX)"
36endif
37
38RBINFO = $(BUILDDIR)/rockbox-info.txt 25RBINFO = $(BUILDDIR)/rockbox-info.txt
39 26
40# list suffixes to be understood by $* 27# list suffixes to be understood by $*
@@ -82,7 +69,7 @@ endif # bootloader
82OBJ := $(SRC:.c=.o) 69OBJ := $(SRC:.c=.o)
83OBJ := $(OBJ:.S=.o) 70OBJ := $(OBJ:.S=.o)
84OBJ += $(BMP:.bmp=.o) 71OBJ += $(BMP:.bmp=.o)
85OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ)) 72OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ))
86 73
87build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) 74build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO)
88 75
@@ -267,15 +254,19 @@ voice: voicetools features
267 254
268endif 255endif
269 256
257ifdef SIMVER
258
270install: 259install:
271 @echo "Installing your build in your '$(PREFIX)' dir" 260 @echo "Installing your build in your 'simdisk' dir"
272 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ 261 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
273 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY) 262 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 0 $(TARGET) $(BINARY)
274 263
275fullinstall: 264fullinstall:
276 @echo "Installing a full setup in your '$(PREFIX)' dir" 265 @echo "Installing a full setup in your 'simdisk' dir"
277 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \ 266 $(SILENT)for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done; \
278 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m "$(MODELNAME)" -i "$(TARGET_ID)" $(INSTALL) -z "zip -r0" -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY) 267 $(TOOLSDIR)/buildzip.pl $(VERBOSEOPT) -m \"$(MODELNAME)\" -i \"$(TARGET_ID)\" -s -r "$(ROOTDIR)" --rbdir="$(RBDIR)" -f 2 $(TARGET) $(BINARY)
268
269endif
279 270
280help: 271help:
281 @echo "A few helpful make targets" 272 @echo "A few helpful make targets"
@@ -301,8 +292,8 @@ help:
301 @echo "tools - builds the tools only" 292 @echo "tools - builds the tools only"
302 @echo "voice - creates the voice clips (voice builds only)" 293 @echo "voice - creates the voice clips (voice builds only)"
303 @echo "voicetools - builds the voice tools only" 294 @echo "voicetools - builds the voice tools only"
304 @echo "install - installs your build (at PREFIX, defaults to simdisk/ for simulators (no fonts))" 295 @echo "install - installs your build (for simulator builds only, no fonts)"
305 @echo "fullinstall - installs your build (like install, but with fonts)" 296 @echo "fullinstall - installs your build (for simulator builds only, with fonts)"
306 @echo "reconf - rerun configure with the same selection" 297 @echo "reconf - rerun configure with the same selection"
307 298
308### general compile rules: 299### general compile rules: