summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-02 08:56:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-02 08:56:20 +0000
commitd7b5c5a3c0e74556316a95481cc7cc6f022baf7a (patch)
tree2b1d9f91333ecc906f4956d1e6e0b02fb2a76c70 /tools
parentf0e733aed52590105b6a17130af5c26166eada6d (diff)
downloadrockbox-d7b5c5a3c0e74556316a95481cc7cc6f022baf7a.tar.gz
rockbox-d7b5c5a3c0e74556316a95481cc7cc6f022baf7a.zip
configure now sets what set of tools that a particular target build needs or
can use, and those tools only are built with 'make' or 'make tools'. Starting now, you should build tools from within your build directory instead of running make in the tools dir. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8127 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile8
-rwxr-xr-xtools/configure55
2 files changed, 57 insertions, 6 deletions
diff --git a/tools/Makefile b/tools/Makefile
index f1e1f9c7d4..f30ab4d819 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -9,11 +9,11 @@
CFLAGS := -O -ansi -g
LDFLAGS := -g
-TARGETS := scramble descramble iaudio sh2d bmp2rb rdf2binary convbdf \
+CLEANALL := scramble descramble iaudio sh2d bmp2rb rdf2binary convbdf \
generate_rocklatin mkboot ipod_fw uclpack
-all: $(TARGETS)
- @echo "tools done"
+all:
+ @echo "Run make in your build directory!"
scramble: scramble.o iriver.o
descramble: descramble.o iriver.o
@@ -48,6 +48,6 @@ uclpack:
$(MAKE) -C ucl
clean:
- rm -f $(TARGETS) $(shell for f in $(TARGETS) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
+ rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
$(MAKE) -C ucl clean
diff --git a/tools/configure b/tools/configure
index 026a29e688..a6633befd9 100755
--- a/tools/configure
+++ b/tools/configure
@@ -413,6 +413,14 @@ appsdir='\$(ROOTDIR)/apps'
getit=`input`;
+ # Set of tools built for all target platforms:
+ toolset="rdf2binary"
+
+ # Toolsets for some target families:
+ archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb convbdf"
+ iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb convbdf"
+ ipodbitmaptools="$toolset ipod_fw bmp2rb convbdf"
+
case $getit in
1)
@@ -426,6 +434,10 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset="$toolset scramble descramble sh2d generate_rocklatin uclpack"
;;
2)
@@ -439,6 +451,9 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$archosbitmaptools
;;
3)
@@ -452,6 +467,9 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$archosbitmaptools
;;
4)
@@ -465,6 +483,9 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$archosbitmaptools
;;
5)
@@ -479,6 +500,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="" # disabled for now, enable later on
codecs="libmad"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset="$toolset bmp2rb convbdf"
;;
6)
@@ -493,6 +517,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="" # disabled for now, enable later on
codecs="libmad"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset="$toolset bmp2rb convbdf"
;;
7)
@@ -506,6 +533,9 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$archosbitmaptools
;;
8)
@@ -519,6 +549,7 @@ appsdir='\$(ROOTDIR)/apps'
flash="$pwd/rockbox.ucl"
plugins="yes"
codecs=""
+ toolset=$archosbitmaptools
;;
9)
@@ -533,6 +564,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$iriverbitmaptools
;;
10)
@@ -547,6 +581,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$iriverbitmaptools
;;
11)
@@ -561,6 +598,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$iriverbitmaptools
;;
12)
@@ -575,6 +615,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset="$toolset iaudio bmp2rb convbdf"
;;
13)
@@ -589,6 +632,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$ipodbitmaptools
;;
14)
@@ -603,6 +649,9 @@ appsdir='\$(ROOTDIR)/apps'
flash=""
plugins="yes"
codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
+ # toolset is the tools within the tools directory that we build for
+ # this particular target.
+ toolset=$ipodbitmaptools
;;
*)
@@ -834,6 +883,7 @@ sed > Makefile \
-e "s,@GCCNUM@,${gccnum},g" \
-e "s,@UNAME@,${uname},g" \
-e "s,@ENDIAN@,${defendian},g" \
+ -e "s,@TOOLSET@,${toolset},g" \
-e "${simmagic}" \
-e "${simtools}" \
<<EOF
@@ -883,7 +933,7 @@ export UNAME=@UNAME@
# Do not print "Entering directory ..."
MAKEFLAGS += --no-print-directory
-.PHONY: all clean tags zip
+.PHONY: all clean tags zip tools
all: #TOOLSDEP#
#SIMUL#
@@ -893,10 +943,11 @@ all: #TOOLSDEP#
clean:
@\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
+ @\$(MAKE) -C \$(TOOLSDIR) clean
@rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h
tools:
- \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC)
+ \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
tags:
@rm -f TAGS