Oops. Should commit patches correctly.
[Rockbox.git] / tools / configure
blob68a9483c9926b3efce6b933a7bef9a6f2a64de43
1 #!/bin/sh
2 # __________ __ ___.
3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 # \/ \/ \/ \/ \/
8 # $Id$
11 # global CC options for all platforms
12 CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes"
14 use_logf="#undef ROCKBOX_HAS_LOGF"
16 scriptver=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
19 # Begin Function Definitions
21 input() {
22 read response
23 echo $response
26 prefixtools () {
27 prefix="$1"
28 CC=${prefix}gcc
29 WINDRES=${prefix}windres
30 DLLTOOL=${prefix}dlltool
31 DLLWRAP=${prefix}dllwrap
32 RANLIB=${prefix}ranlib
33 LD=${prefix}ld
34 AR=${prefix}ar
35 AS=${prefix}as
36 OC=${prefix}objcopy
39 crosswincc () {
40 # naive approach to selecting a mingw cross-compiler on linux/*nix
41 echo "Enabling win32 crosscompiling"
43 prefixtools i586-mingw32msvc-
45 LDOPTS="-lgdi32 -luser32 -mwindows"
46 # add cross-compiler option(s)
47 GCCOPTS="$GCCOPTS -mno-cygwin"
49 output="rockboxui.exe" # use this as output binary name
50 crosscompile="yes"
51 endian="little" # windows is little endian
54 # scan the $PATH for the given command
55 findtool(){
56 file="$1"
58 IFS=":"
59 for path in $PATH
61 # echo "checks for $file in $path" >&2
62 if test -f "$path/$file"; then
63 echo "$path/$file"
64 return
66 done
70 simcc () {
72 # default tool setup for native building
73 prefixtools ""
75 simver=sdl
76 GCCOPTS='-W -Wall -g -fno-builtin'
78 output="rockboxui" # use this as default output binary name
80 # generic sdl-config checker
81 sdl=`findtool sdl-config`
83 if [ -z "$sdl" ]; then
84 echo "configure didn't find sdl-config, which indicates that you"
85 echo "don't have SDL (properly) installed. Please correct and"
86 echo "re-run configure!"
87 exit
90 # default share option, override below if needed
91 SHARED_FLAG="-shared"
93 case $uname in
94 CYGWIN*)
95 echo "Cygwin host detected"
97 # sdl version
98 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
99 LDOPTS="`sdl-config --libs` -mconsole"
101 output="rockboxui.exe" # use this as output binary name
104 Linux)
105 echo "Linux host detected"
106 GCCOPTS="$GCCOPTS"
107 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
108 # Enable crosscompiling if sdl-config is from Windows SDL
109 crosswincc
111 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
112 LDOPTS="`sdl-config --libs`"
115 FreeBSD)
116 echo "FreeBSD host detected"
117 # sdl version
118 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
119 LDOPTS="`sdl-config --libs`"
122 Darwin)
123 echo "Darwin host detected"
124 # sdl version
125 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
126 LDOPTS="`sdl-config --libs`"
127 SHARED_FLAG="-dynamiclib -Wl\,-single_module"
131 echo "Unsupported system: $uname, fix configure and retry"
132 exit
134 esac
136 if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "amd64" ]; then
137 # fPIC is needed to make shared objects link
138 # setting visibility to hidden is necessary to avoid strange crashes
139 # due to symbol clashing
140 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
143 GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
145 if test "X$crosscompile" != "Xyes"; then
146 id=$$
147 cat >/tmp/conftest-$id.c <<EOF
148 #include <stdio.h>
149 int main(int argc, char **argv)
151 int var=0;
152 char *varp = (char *)&var;
153 *varp=1;
155 printf("%d\n", var);
156 return 0;
160 $CC -o /tmp/conftest-$id /tmp/conftest-$id.c 2>/dev/null
162 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
163 # big endian
164 endian="big"
165 else
166 # little endian
167 endian="little"
169 echo "Simulator environment deemed $endian endian"
171 # use wildcard here to make it work even if it was named *.exe like
172 # on cygwin
173 rm -f /tmp/conftest-$id*
178 # functions for setting up cross-compiler names and options
179 # also set endianess and what the exact recommended gcc version is
180 # the gcc version should most likely match what versions we build with
181 # rockboxdev.sh
183 shcc () {
184 prefixtools sh-elf-
185 GCCOPTS="$CCOPTS -m1"
186 GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
187 endian="big"
188 gccchoice="4.0.3"
191 calmrisccc () {
192 prefixtools calmrisc16-unknown-elf-
193 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
194 GCCOPTIMIZE="-fomit-frame-pointer"
195 endian="big"
198 coldfirecc () {
199 prefixtools m68k-elf-
200 GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
201 GCCOPTIMIZE="-fomit-frame-pointer"
202 endian="big"
203 gccchoice="3.4.6"
206 arm7tdmicc () {
207 prefixtools arm-elf-
208 GCCOPTS="$CCOPTS -mcpu=arm7tdmi"
209 if test "X$1" != "Xshort"; then
210 GCCOPTS="$GCCOPTS -mlong-calls"
212 GCCOPTIMIZE="-fomit-frame-pointer"
213 endian="little"
214 gccchoice="4.0.3"
217 arm9tdmicc () {
218 prefixtools arm-elf-
219 GCCOPTS="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
220 GCCOPTIMIZE="-fomit-frame-pointer"
221 endian="little"
222 gccchoice="4.0.3"
225 arm946cc () {
226 prefixtools arm-elf-
227 GCCOPTS="$CCOPTS -mcpu=arm9e -mlong-calls"
228 GCCOPTIMIZE="-fomit-frame-pointer"
229 endian="little"
230 gccchoice="4.0.3"
233 arm926ejscc () {
234 prefixtools arm-elf-
235 GCCOPTS="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
236 GCCOPTIMIZE="-fomit-frame-pointer"
237 endian="little"
238 gccchoice="4.0.3"
241 arm1136jfscc () {
242 prefixtools arm-elf-
243 GCCOPTS="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
244 GCCOPTIMIZE="-fomit-frame-pointer"
245 endian="little"
246 gccchoice="4.0.3"
249 whichadvanced () {
250 ##################################################################
251 # Prompt for specific developer options
253 echo ""
254 echo "Enter your developer options (press enter when done)"
255 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
256 if [ "$memory" = "2" ]; then
257 echo -n ", (8)MB MOD"
259 if [ "$modelname" = "h120" ]; then
260 echo -n ", (R)TC MOD"
262 echo ""
264 cont=1
266 while [ $cont = "1" ]; do
268 option=`input`;
270 case $option in
271 [Dd])
272 if [ "yes" = "$profile" ]; then
273 echo "Debug is incompatible with profiling"
274 else
275 echo "define DEBUG"
276 use_debug="yes"
279 [Ll])
280 echo "logf() support enabled"
281 logf="yes"
283 [Ss])
284 echo "Simulator build enabled"
285 simulator="yes"
287 [Pp])
288 if [ "yes" = "$use_debug" ]; then
289 echo "Profiling is incompatible with debug"
290 else
291 echo "Profiling support is enabled"
292 profile="yes"
295 [Vv])
296 echo "Voice build selected"
297 voice="yes"
300 if [ "$memory" = "2" ]; then
301 memory="8"
302 echo "Memory size selected: 8MB"
303 else
304 cont=0
307 [Rr])
308 if [ "$modelname" = "h120" ]; then
309 config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
310 have_rtc_alarm="#define HAVE_RTC_ALARM"
311 echo "RTC functions enabled (DS1339/DS3231)"
312 else
313 cont=0
317 cont=0
319 esac
320 done
321 echo "done"
323 if [ "yes" = "$voice" ]; then
324 # Ask about languages to build
325 echo "Select a number for the language to use (default is english)"
326 # The multiple-language feature is currently broken
327 # echo "You may enter a comma-separated list of languages to build"
329 picklang
330 voicelanguage=`whichlang`
332 if [ -z "$voicelanguage" ]; then
333 # pick a default
334 voicelanguage="english"
336 echo "Voice language set to $voicelanguage"
338 # Configure encoder and TTS engine for each language
339 for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
340 voiceconfig "$thislang"
341 done
343 if [ "yes" = "$use_debug" ]; then
344 debug="-DDEBUG"
345 GCCOPTS="$GCCOPTS -g -DDEBUG"
347 if [ "yes" = "$logf" ]; then
348 use_logf="#define ROCKBOX_HAS_LOGF 1"
350 if [ "yes" = "$simulator" ]; then
351 debug="-DDEBUG"
352 extradefines="$extradefines -DSIMULATOR"
354 if [ "yes" = "$profile" ]; then
355 extradefines="$extradefines -DRB_PROFILE"
356 PROFILE_OPTS="-finstrument-functions"
360 # Configure voice settings
361 voiceconfig () {
362 thislang=$1
363 echo "Building $thislang voice for $modelname. Select options"
364 echo ""
366 if [ -f "`which flite`" ]; then
367 FLITE="F(l)ite "
368 FLITE_OPTS=""
369 DEFAULT_TTS="flite"
370 DEFAULT_TTS_OPTS=$FLITE_OPTS
371 DEFAULT_NOISEFLOOR="500"
372 DEFAULT_CHOICE="L"
374 if [ -f "`which espeak`" ]; then
375 ESPEAK="(e)Speak "
376 ESPEAK_OPTS=""
377 DEFAULT_TTS="espeak"
378 DEFAULT_TTS_OPTS=$ESPEAK_OPTS
379 DEFAULT_NOISEFLOOR="500"
380 DEFAULT_CHOICE="e"
382 if [ -f "`which festival`" ]; then
383 FESTIVAL="(F)estival "
384 case "$thislang" in
385 "italiano")
386 FESTIVAL_OPTS="--language italian"
388 "espanol")
389 FESTIVAL_OPTS="--language spanish"
391 "finnish")
392 FESTIVAL_OPTS="--language finnish"
394 "czech")
395 FESTIVAL_OPTS="--language czech"
398 FESTIVAL_OPTS=""
400 esac
401 DEFAULT_TTS="festival"
402 DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
403 DEFAULT_NOISEFLOOR="500"
404 DEFAULT_CHOICE="F"
406 if [ -f "`which swift`" ]; then
407 SWIFT="S(w)ift "
408 SWIFT_OPTS=""
409 DEFAULT_TTS="swift"
410 DEFAULT_TTS_OPTS=$SWIFT_OPTS
411 DEFAULT_NOISEFLOOR="500"
412 DEFAULT_CHOICE="w"
414 # Allow SAPI if Windows is in use
415 if [ -f "`which winver`" ]; then
416 SAPI="(S)API "
417 SAPI_OPTS=""
418 DEFAULT_TTS="sapi"
419 DEFAULT_TTS_OPTS=$SAPI_OPTS
420 DEFAULT_NOISEFLOOR="500"
421 DEFAULT_CHOICE="S"
424 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
425 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
426 exit
429 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
430 option=`input`
431 case "$option" in
432 [Ll])
433 TTS_ENGINE="flite"
434 NOISEFLOOR="500" # TODO: check this value
435 TTS_OPTS=$FLITE_OPTS
437 [Ee])
438 TTS_ENGINE="espeak"
439 NOISEFLOOR="500"
440 TTS_OPTS=$ESPEAK_OPTS
442 [Ff])
443 TTS_ENGINE="festival"
444 NOISEFLOOR="500"
445 TTS_OPTS=$FESTIVAL_OPTS
447 [Ss])
448 TTS_ENGINE="sapi"
449 NOISEFLOOR="500"
450 TTS_OPTS=$SAPI_OPTS
452 [Ww])
453 TTS_ENGINE="swift"
454 NOISEFLOOR="500"
455 TTS_OPTS=$SWIFT_OPTS
458 TTS_ENGINE=$DEFAULT_TTS
459 TTS_OPTS=$DEFAULT_TTS_OPTS
460 NOISEFLOOR=$DEFAULT_NOISEFLOOR
461 esac
462 echo "Using $TTS_ENGINE for TTS"
464 # Allow the user to input manual commandline options
465 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
466 USER_TTS_OPTS=`input`
467 if [ -n "$USER_TTS_OPTS" ]; then
468 TTS_OPTS="$USER_TTS_OPTS"
471 echo ""
473 if [ "$swcodec" = "yes" ]; then
474 ENCODER="rbspeexenc"
475 ENC_CMD="rbspeexenc"
476 ENC_OPTS="-q 4 -c 10"
477 else
478 if [ -f "`which lame`" ]; then
479 ENCODER="lame"
480 ENC_CMD="lame"
481 ENC_OPTS="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
482 else
483 echo "You need LAME in the system path to build voice files for"
484 echo "HWCODEC targets."
485 exit
489 echo "Using $ENCODER for encoding voice clips"
491 # Allow the user to input manual commandline options
492 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
493 USER_ENC_OPTS=`input`
494 if [ -n "$USER_ENC_OPTS" ]; then
495 ENC_OPTS=$USER_ENC_OPTS
498 TEMPDIR="${pwd}"
499 if [ -f "`which cygpath`" ]; then
500 TEMPDIR=`cygpath . -a -w`
504 picklang() {
505 # figure out which languages that are around
506 for file in $rootdir/apps/lang/*.lang; do
507 clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
508 langs="$langs $clean"
509 done
511 num=1
512 for one in $langs; do
513 echo "$num. $one"
514 num=`expr $num + 1`
515 done
517 read pick
520 whichlang() {
521 output=""
522 # Allow the user to pass a comma-separated list of langauges
523 for thispick in `echo $pick | sed 's/,/ /g'`; do
524 num=1
525 for one in $langs; do
526 # Accept both the language number and name
527 if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
528 if [ "$output" = "" ]; then
529 output=$one
530 else
531 output=$output,$one
534 num=`expr $num + 1`
535 done
536 done
537 echo $output
540 opt=$1
542 if test "$opt" = "--help"; then
543 echo "Rockbox configure script."
544 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
545 echo "Do *NOT* run this within the tools directory!"
546 echo ""
547 echo "Usage: configure [--ccache][--no-ccache]"
548 exit
551 if test -r "configure"; then
552 # this is a check for a configure script in the current directory, it there
553 # is one, try to figure out if it is this one!
555 if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
556 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
557 echo "It will only cause you pain and grief. Instead do this:"
558 echo ""
559 echo " cd .."
560 echo " mkdir build-dir"
561 echo " cd build-dir"
562 echo " ../tools/configure"
563 echo ""
564 echo "Much happiness will arise from this. Enjoy"
565 exit
569 # get our current directory
570 pwd=`pwd`;
572 if { echo $pwd | grep " "; } then
573 echo "You're running this script in a path that contains space. The build"
574 echo "system is unfortunately not clever enough to deal with this. Please"
575 echo "run the script from a different path, rename the path or fix the build"
576 echo "system!"
577 exit
580 if [ -z "$rootdir" ]; then
581 ##################################################################
582 # Figure out where the source code root is!
584 rootdir=`dirname $0`/../
586 #####################################################################
587 # Convert the possibly relative directory name to an absolute version
589 now=`pwd`
590 cd $rootdir
591 rootdir=`pwd`
593 # cd back to the build dir
594 cd $now
597 apps="apps"
598 appsdir='\$(ROOTDIR)/apps'
599 firmdir='\$(ROOTDIR)/firmware'
600 toolsdir='\$(ROOTDIR)/tools'
603 ##################################################################
604 # Figure out target platform
607 echo "Enter target platform:"
608 cat <<EOF
609 ==Archos== ==iriver== ==Apple iPod==
610 0) Player/Studio 10) H120/H140 20) Color/Photo
611 1) Recorder 11) H320/H340 21) Nano
612 2) FM Recorder 12) iHP-100/110/115 22) Video
613 3) Recorder v2 13) iFP-790 23) 3G
614 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
615 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
616 6) AV300 26) Mini 2G
617 27) 1G, 2G
619 ==iAudio== ==Toshiba== ==SanDisk==
620 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
621 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
622 32) 7 52) Sansa c200
623 33) Cowon D2
624 34) M3/M3L
626 ==Tatung== ==Olympus== ==Logik==
627 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
628 71) M:Robe 100
629 ==Creative==
630 90) Zen Vision:M
633 buildfor=`input`;
635 # Set of tools built for all target platforms:
636 toolset="rdf2binary convbdf codepages"
638 # Toolsets for some target families:
639 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
640 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
641 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
642 ipodbitmaptools="$toolset scramble bmp2rb"
643 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
644 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
645 # generic is used by IFP, H10, Sansa-e200
646 genericbitmaptools="$toolset bmp2rb"
649 # ---- For each target ----
651 # *Variables*
652 # target_id: a unique number identifying this target, IS NOT the menu number.
653 # Just use the currently highest number+1 when you add a new
654 # target.
655 # modelname: short model name used all over to identify this target
656 # memory: number of megabytes of RAM this target has. If the amount can
657 # be selected by the size prompt, let memory be unset here
658 # target: -Ddefine passed to the build commands to make the correct
659 # config-*.h file get included etc
660 # tool: the tool that takes a plain binary and converts that into a
661 # working "firmware" file for your target
662 # output: the final output file name
663 # boottool: the tool that takes a plain binary and generates a bootloader
664 # file for your target (or blank to use $tool)
665 # bootoutput:the final output file name for the bootloader (or blank to use
666 # $output)
667 # appextra: passed to the APPEXTRA variable in the Makefiles.
668 # TODO: add proper explanation
669 # archosrom: used only for Archos targets that build a special flashable .ucl
670 # image.
671 # flash: name of output for flashing, for targets where there's a special
672 # file output for this.
673 # plugins: set to 'yes' to build the plugins. Early development builds can
674 # set this to no in the early stages to have an easier life for a
675 # while
676 # swcodec: set 'yes' on swcodec targets
677 # toolset: lists what particular tools in the tools/ directory that this
678 # target needs to have built prior to building Rockbox
680 # *Functions*
681 # *cc: sets up gcc and compiler options for your target builds. Note
682 # that if you select a simulator build, the compiler selection is
683 # overridden later in the script.
685 case $buildfor in
687 0|player)
688 target_id=1
689 modelname="player"
690 target="-DARCHOS_PLAYER"
691 shcc
692 tool="$rootdir/tools/scramble"
693 output="archos.mod"
694 appextra="player:gui"
695 archosrom="$pwd/rombox.ucl"
696 flash="$pwd/rockbox.ucl"
697 plugins="yes"
698 swcodec=""
700 # toolset is the tools within the tools directory that we build for
701 # this particular target.
702 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
704 # Note: the convbdf is present in the toolset just because: 1) the
705 # firmware/Makefile assumes it is present always, and 2) we will need it when we
706 # build the player simulator
708 t_cpu="sh"
709 t_manufacturer="archos"
710 t_model="player"
713 1|recorder)
714 target_id=2
715 modelname="recorder"
716 target="-DARCHOS_RECORDER"
717 shcc
718 tool="$rootdir/tools/scramble"
719 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
720 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
721 output="ajbrec.ajz"
722 appextra="recorder:gui"
723 #archosrom="$pwd/rombox.ucl"
724 flash="$pwd/rockbox.ucl"
725 plugins="yes"
726 swcodec=""
727 # toolset is the tools within the tools directory that we build for
728 # this particular target.
729 toolset=$archosbitmaptools
730 t_cpu="sh"
731 t_manufacturer="archos"
732 t_model="recorder"
735 2|fmrecorder)
736 target_id=3
737 modelname="fmrecorder"
738 target="-DARCHOS_FMRECORDER"
739 shcc
740 tool="$rootdir/tools/scramble -fm"
741 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
742 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
743 output="ajbrec.ajz"
744 appextra="recorder:gui"
745 #archosrom="$pwd/rombox.ucl"
746 flash="$pwd/rockbox.ucl"
747 plugins="yes"
748 swcodec=""
749 # toolset is the tools within the tools directory that we build for
750 # this particular target.
751 toolset=$archosbitmaptools
752 t_cpu="sh"
753 t_manufacturer="archos"
754 t_model="fm_v2"
757 3|recorderv2)
758 target_id=4
759 modelname="recorderv2"
760 target="-DARCHOS_RECORDERV2"
761 shcc
762 tool="$rootdir/tools/scramble -v2"
763 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
764 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
765 output="ajbrec.ajz"
766 appextra="recorder:gui"
767 #archosrom="$pwd/rombox.ucl"
768 flash="$pwd/rockbox.ucl"
769 plugins="yes"
770 swcodec=""
771 # toolset is the tools within the tools directory that we build for
772 # this particular target.
773 toolset=$archosbitmaptools
774 t_cpu="sh"
775 t_manufacturer="archos"
776 t_model="fm_v2"
779 4|ondiosp)
780 target_id=7
781 modelname="ondiosp"
782 target="-DARCHOS_ONDIOSP"
783 shcc
784 tool="$rootdir/tools/scramble -osp"
785 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
786 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
787 output="ajbrec.ajz"
788 appextra="recorder:gui"
789 archosrom="$pwd/rombox.ucl"
790 flash="$pwd/rockbox.ucl"
791 plugins="yes"
792 swcodec=""
793 # toolset is the tools within the tools directory that we build for
794 # this particular target.
795 toolset=$archosbitmaptools
796 t_cpu="sh"
797 t_manufacturer="archos"
798 t_model="ondio"
801 5|ondiofm)
802 target_id=8
803 modelname="ondiofm"
804 target="-DARCHOS_ONDIOFM"
805 shcc
806 tool="$rootdir/tools/scramble -ofm"
807 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
808 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
809 output="ajbrec.ajz"
810 appextra="recorder:gui"
811 #archosrom="$pwd/rombox.ucl"
812 flash="$pwd/rockbox.ucl"
813 plugins="yes"
814 swcodec=""
815 toolset=$archosbitmaptools
816 t_cpu="sh"
817 t_manufacturer="archos"
818 t_model="ondio"
821 6|av300)
822 target_id=38
823 modelname="av300"
824 target="-DARCHOS_AV300"
825 memory=16 # always
826 arm7tdmicc
827 tool="$rootdir/tools/scramble -mm=C"
828 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
829 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
830 output="cjbm.ajz"
831 appextra="recorder:gui"
832 plugins="yes"
833 swcodec=""
834 # toolset is the tools within the tools directory that we build for
835 # this particular target.
836 toolset="$toolset scramble descramble bmp2rb"
837 # architecture, manufacturer and model for the target-tree build
838 t_cpu="arm"
839 t_manufacturer="archos"
840 t_model="av300"
843 10|h120)
844 target_id=9
845 modelname="h120"
846 target="-DIRIVER_H120"
847 memory=32 # always
848 coldfirecc
849 tool="$rootdir/tools/scramble -add=h120"
850 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
851 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
852 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
853 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
854 output="rockbox.iriver"
855 appextra="recorder:gui"
856 flash="$pwd/rombox.iriver"
857 plugins="yes"
858 swcodec="yes"
859 # toolset is the tools within the tools directory that we build for
860 # this particular target.
861 toolset=$iriverbitmaptools
862 t_cpu="coldfire"
863 t_manufacturer="iriver"
864 t_model="h100"
867 11|h300)
868 target_id=10
869 modelname="h300"
870 target="-DIRIVER_H300"
871 memory=32 # always
872 coldfirecc
873 tool="$rootdir/tools/scramble -add=h300"
874 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
875 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
876 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
877 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
878 output="rockbox.iriver"
879 appextra="recorder:gui"
880 plugins="yes"
881 swcodec="yes"
882 # toolset is the tools within the tools directory that we build for
883 # this particular target.
884 toolset=$iriverbitmaptools
885 t_cpu="coldfire"
886 t_manufacturer="iriver"
887 t_model="h300"
890 12|h100)
891 target_id=11
892 modelname="h100"
893 target="-DIRIVER_H100"
894 memory=16 # always
895 coldfirecc
896 tool="$rootdir/tools/scramble -add=h100"
897 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
898 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
899 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
900 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
901 output="rockbox.iriver"
902 appextra="recorder:gui"
903 flash="$pwd/rombox.iriver"
904 plugins="yes"
905 swcodec="yes"
906 # toolset is the tools within the tools directory that we build for
907 # this particular target.
908 toolset=$iriverbitmaptools
909 t_cpu="coldfire"
910 t_manufacturer="iriver"
911 t_model="h100"
914 13|ifp7xx)
915 target_id=19
916 modelname="ifp7xx"
917 target="-DIRIVER_IFP7XX"
918 memory=1
919 arm7tdmicc short
920 tool="cp"
921 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
922 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
923 output="rockbox.wma"
924 appextra="recorder:gui"
925 plugins="yes"
926 swcodec="yes"
927 # toolset is the tools within the tools directory that we build for
928 # this particular target.
929 toolset=$genericbitmaptools
930 t_cpu="arm"
931 t_manufacturer="pnx0101"
932 t_model="iriver-ifp7xx"
935 14|h10)
936 target_id=22
937 modelname="h10"
938 target="-DIRIVER_H10"
939 memory=32 # always
940 arm7tdmicc
941 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
942 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
943 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
944 output="rockbox.mi4"
945 appextra="recorder:gui"
946 plugins="yes"
947 swcodec="yes"
948 boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
949 bootoutput="H10_20GC.mi4"
950 # toolset is the tools within the tools directory that we build for
951 # this particular target.
952 toolset="$genericbitmaptools scramble"
953 # architecture, manufacturer and model for the target-tree build
954 t_cpu="arm"
955 t_manufacturer="iriver"
956 t_model="h10"
959 15|h10_5gb)
960 target_id=24
961 modelname="h10_5gb"
962 target="-DIRIVER_H10_5GB"
963 memory=32 # always
964 arm7tdmicc
965 tool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
966 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
967 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
968 output="rockbox.mi4"
969 appextra="recorder:gui"
970 plugins="yes"
971 swcodec="yes"
972 boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
973 bootoutput="H10.mi4"
974 # toolset is the tools within the tools directory that we build for
975 # this particular target.
976 toolset="$genericbitmaptools scramble"
977 # architecture, manufacturer and model for the target-tree build
978 t_cpu="arm"
979 t_manufacturer="iriver"
980 t_model="h10"
983 20|ipodcolor)
984 target_id=13
985 modelname="ipodcolor"
986 target="-DIPOD_COLOR"
987 memory=32 # always
988 arm7tdmicc
989 tool="$rootdir/tools/scramble -add=ipco"
990 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
991 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
992 output="rockbox.ipod"
993 appextra="recorder:gui"
994 plugins="yes"
995 swcodec="yes"
996 bootoutput="bootloader-$modelname.ipod"
997 # toolset is the tools within the tools directory that we build for
998 # this particular target.
999 toolset=$ipodbitmaptools
1000 # architecture, manufacturer and model for the target-tree build
1001 t_cpu="arm"
1002 t_manufacturer="ipod"
1003 t_model="color"
1006 21|ipodnano)
1007 target_id=14
1008 modelname="ipodnano"
1009 target="-DIPOD_NANO"
1010 memory=32 # always
1011 arm7tdmicc
1012 tool="$rootdir/tools/scramble -add=nano"
1013 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1014 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1015 output="rockbox.ipod"
1016 appextra="recorder:gui"
1017 plugins="yes"
1018 swcodec="yes"
1019 bootoutput="bootloader-$modelname.ipod"
1020 # toolset is the tools within the tools directory that we build for
1021 # this particular target.
1022 toolset=$ipodbitmaptools
1023 # architecture, manufacturer and model for the target-tree build
1024 t_cpu="arm"
1025 t_manufacturer="ipod"
1026 t_model="nano"
1029 22|ipodvideo)
1030 target_id=15
1031 modelname="ipodvideo"
1032 target="-DIPOD_VIDEO"
1033 arm7tdmicc
1034 tool="$rootdir/tools/scramble -add=ipvd"
1035 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1036 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1037 output="rockbox.ipod"
1038 appextra="recorder:gui"
1039 plugins="yes"
1040 swcodec="yes"
1041 bootoutput="bootloader-$modelname.ipod"
1042 # toolset is the tools within the tools directory that we build for
1043 # this particular target.
1044 toolset=$ipodbitmaptools
1045 # architecture, manufacturer and model for the target-tree build
1046 t_cpu="arm"
1047 t_manufacturer="ipod"
1048 t_model="video"
1051 23|ipod3g)
1052 target_id=16
1053 modelname="ipod3g"
1054 target="-DIPOD_3G"
1055 memory=32 # always
1056 arm7tdmicc
1057 tool="$rootdir/tools/scramble -add=ip3g"
1058 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1059 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1060 output="rockbox.ipod"
1061 appextra="recorder:gui"
1062 plugins="yes"
1063 swcodec="yes"
1064 bootoutput="bootloader-$modelname.ipod"
1065 # toolset is the tools within the tools directory that we build for
1066 # this particular target.
1067 toolset=$ipodbitmaptools
1068 # architecture, manufacturer and model for the target-tree build
1069 t_cpu="arm"
1070 t_manufacturer="ipod"
1071 t_model="3g"
1074 24|ipod4g)
1075 target_id=17
1076 modelname="ipod4g"
1077 target="-DIPOD_4G"
1078 memory=32 # always
1079 arm7tdmicc
1080 tool="$rootdir/tools/scramble -add=ip4g"
1081 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1082 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1083 output="rockbox.ipod"
1084 appextra="recorder:gui"
1085 plugins="yes"
1086 swcodec="yes"
1087 bootoutput="bootloader-$modelname.ipod"
1088 # toolset is the tools within the tools directory that we build for
1089 # this particular target.
1090 toolset=$ipodbitmaptools
1091 # architecture, manufacturer and model for the target-tree build
1092 t_cpu="arm"
1093 t_manufacturer="ipod"
1094 t_model="4g"
1097 25|ipodmini)
1098 target_id=18
1099 modelname="ipodmini"
1100 target="-DIPOD_MINI"
1101 memory=32 # always
1102 arm7tdmicc
1103 tool="$rootdir/tools/scramble -add=mini"
1104 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1105 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1106 output="rockbox.ipod"
1107 appextra="recorder:gui"
1108 plugins="yes"
1109 swcodec="yes"
1110 bootoutput="bootloader-$modelname.ipod"
1111 # toolset is the tools within the tools directory that we build for
1112 # this particular target.
1113 toolset=$ipodbitmaptools
1114 # architecture, manufacturer and model for the target-tree build
1115 t_cpu="arm"
1116 t_manufacturer="ipod"
1117 t_model="mini"
1120 26|ipodmini2g)
1121 target_id=21
1122 modelname="ipodmini2g"
1123 target="-DIPOD_MINI2G"
1124 memory=32 # always
1125 arm7tdmicc
1126 tool="$rootdir/tools/scramble -add=mn2g"
1127 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1128 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1129 output="rockbox.ipod"
1130 appextra="recorder:gui"
1131 plugins="yes"
1132 swcodec="yes"
1133 bootoutput="bootloader-$modelname.ipod"
1134 # toolset is the tools within the tools directory that we build for
1135 # this particular target.
1136 toolset=$ipodbitmaptools
1137 # architecture, manufacturer and model for the target-tree build
1138 t_cpu="arm"
1139 t_manufacturer="ipod"
1140 t_model="mini2g"
1143 27|ipod1g2g)
1144 target_id=29
1145 modelname="ipod1g2g"
1146 target="-DIPOD_1G2G"
1147 memory=32 # always
1148 arm7tdmicc
1149 tool="$rootdir/tools/scramble -add=1g2g"
1150 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1151 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1152 output="rockbox.ipod"
1153 appextra="recorder:gui"
1154 plugins="yes"
1155 swcodec="yes"
1156 bootoutput="bootloader-$modelname.ipod"
1157 # toolset is the tools within the tools directory that we build for
1158 # this particular target.
1159 toolset=$ipodbitmaptools
1160 # architecture, manufacturer and model for the target-tree build
1161 t_cpu="arm"
1162 t_manufacturer="ipod"
1163 t_model="1g2g"
1166 30|x5)
1167 target_id=12
1168 modelname="x5"
1169 target="-DIAUDIO_X5"
1170 memory=16 # always
1171 coldfirecc
1172 tool="$rootdir/tools/scramble -add=iax5"
1173 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1174 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1175 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1176 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1177 output="rockbox.iaudio"
1178 appextra="recorder:gui"
1179 plugins="yes"
1180 swcodec="yes"
1181 # toolset is the tools within the tools directory that we build for
1182 # this particular target.
1183 toolset="$iaudiobitmaptools"
1184 # architecture, manufacturer and model for the target-tree build
1185 t_cpu="coldfire"
1186 t_manufacturer="iaudio"
1187 t_model="x5"
1190 31|m5)
1191 target_id=28
1192 modelname="m5"
1193 target="-DIAUDIO_M5"
1194 memory=16 # always
1195 coldfirecc
1196 tool="$rootdir/tools/scramble -add=iam5"
1197 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1198 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
1199 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1200 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1201 output="rockbox.iaudio"
1202 appextra="recorder:gui"
1203 plugins="yes"
1204 swcodec="yes"
1205 # toolset is the tools within the tools directory that we build for
1206 # this particular target.
1207 toolset="$iaudiobitmaptools"
1208 # architecture, manufacturer and model for the target-tree build
1209 t_cpu="coldfire"
1210 t_manufacturer="iaudio"
1211 t_model="m5"
1214 32|iaudio7)
1215 target_id=32
1216 modelname="iaudio7"
1217 target="-DIAUDIO_7"
1218 memory=16 # always
1219 arm946cc
1220 tool="$rootdir/tools/scramble -add i7"
1221 boottool="$rootdir/tools/scramble -tcc=crc"
1222 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1223 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1224 output="rockbox.iaudio"
1225 appextra="recorder:gui"
1226 plugins="yes"
1227 swcodec="yes"
1228 bootoutput="I7_FW.BIN"
1229 # toolset is the tools within the tools directory that we build for
1230 # this particular target.
1231 toolset="$tccbitmaptools"
1232 # architecture, manufacturer and model for the target-tree build
1233 t_cpu="arm"
1234 t_manufacturer="tcc77x"
1235 t_model="iaudio7"
1238 33|cowond2)
1239 target_id=34
1240 modelname="cowond2"
1241 target="-DCOWON_D2"
1242 memory=32
1243 arm926ejscc
1244 tool="$rootdir/tools/scramble -add=d2"
1245 boottool="$rootdir/tools/scramble -tcc=crc"
1246 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1247 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1248 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1249 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1250 output="rockbox.iaudio"
1251 appextra="recorder:gui"
1252 plugins=""
1253 swcodec="yes"
1254 toolset="$tccbitmaptools"
1255 # architecture, manufacturer and model for the target-tree build
1256 t_cpu="arm"
1257 t_manufacturer="tcc780x"
1258 t_model="cowond2"
1261 34|m3)
1262 target_id=37
1263 modelname="m3"
1264 target="-DIAUDIO_M3"
1265 memory=16 # always
1266 coldfirecc
1267 tool="$rootdir/tools/scramble -add=iam3"
1268 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1269 bmp2rb_native="$rootdir/tools/bmp2rb -f 7"
1270 output="rockbox.iaudio"
1271 appextra="recorder:gui"
1272 plugins=""
1273 swcodec="yes"
1274 # toolset is the tools within the tools directory that we build for
1275 # this particular target.
1276 toolset="$iaudiobitmaptools"
1277 # architecture, manufacturer and model for the target-tree build
1278 t_cpu="coldfire"
1279 t_manufacturer="iaudio"
1280 t_model="m3"
1283 40|gigabeatf)
1284 target_id=20
1285 modelname="gigabeatf"
1286 target="-DGIGABEAT_F"
1287 memory=32 # always
1288 arm9tdmicc
1289 tool="$rootdir/tools/scramble -add=giga"
1290 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1291 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1292 output="rockbox.gigabeat"
1293 appextra="recorder:gui"
1294 plugins="yes"
1295 swcodec="yes"
1296 toolset=$gigabeatbitmaptools
1297 boottool="$rootdir/tools/scramble -gigabeat"
1298 bootoutput="FWIMG01.DAT"
1299 # architecture, manufacturer and model for the target-tree build
1300 t_cpu="arm"
1301 t_manufacturer="s3c2440"
1302 t_model="gigabeat-fx"
1305 41|gigabeats)
1306 target_id=26
1307 modelname="gigabeats"
1308 target="-DGIGABEAT_S"
1309 memory=64
1310 arm1136jfscc
1311 tool="$rootdir/tools/scramble -add=gigs"
1312 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1313 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1314 output="rockbox.gigabeat"
1315 appextra="recorder:gui"
1316 plugins="yes"
1317 swcodec="yes"
1318 toolset="$gigabeatbitmaptools mknkboot"
1319 boottool="$rootdir/tools/scramble -gigabeats"
1320 bootoutput="nk.bin"
1321 # architecture, manufacturer and model for the target-tree build
1322 t_cpu="arm"
1323 t_manufacturer="imx31"
1324 t_model="gigabeat-s"
1327 70|mrobe500)
1328 target_id=36
1329 modelname="mrobe500"
1330 target="-DMROBE_500"
1331 memory=64 # always
1332 arm926ejscc
1333 # tool="$rootdir/tools/scramble -add=m500"
1334 tool="cp "
1335 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1336 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1337 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1338 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1339 output="rockbox.mrobe500"
1340 appextra="recorder:gui"
1341 plugins="yes"
1342 swcodec="yes"
1343 toolset=$gigabeatbitmaptools
1344 boottool="cp "
1345 bootoutput="rockbox.mrboot"
1346 # architecture, manufacturer and model for the target-tree build
1347 t_cpu="arm"
1348 t_manufacturer="tms320dm320"
1349 t_model="mrobe-500"
1352 71|mrobe100)
1353 target_id=33
1354 modelname="mrobe100"
1355 target="-DMROBE_100"
1356 memory=32 # always
1357 arm7tdmicc
1358 tool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1359 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1360 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1361 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1362 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1363 output="rockbox.mi4"
1364 appextra="recorder:gui"
1365 plugins="yes"
1366 swcodec="yes"
1367 boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1368 bootoutput="pp5020.mi4"
1369 # toolset is the tools within the tools directory that we build for
1370 # this particular target.
1371 toolset="$genericbitmaptools scramble"
1372 # architecture, manufacturer and model for the target-tree build
1373 t_cpu="arm"
1374 t_manufacturer="olympus"
1375 t_model="mrobe-100"
1378 80|logikdax)
1379 target_id=31
1380 modelname="logikdax"
1381 target="-DLOGIK_DAX"
1382 memory=2 # always
1383 arm946cc
1384 tool="$rootdir/tools/scramble -add=ldax"
1385 boottool="$rootdir/tools/scramble -tcc=crc"
1386 bootoutput="player.rom"
1387 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1388 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1389 output="rockbox.logik"
1390 appextra="recorder:gui"
1391 plugins=""
1392 swcodec="yes"
1393 # toolset is the tools within the tools directory that we build for
1394 # this particular target.
1395 toolset=$tccbitmaptools
1396 # architecture, manufacturer and model for the target-tree build
1397 t_cpu="arm"
1398 t_manufacturer="tcc77x"
1399 t_model="logikdax"
1402 90|creativezvm)
1403 target_id=35
1404 modelname="creativezvm"
1405 target="-DCREATIVE_ZVM"
1406 memory=32 # always
1407 arm926ejscc
1408 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1409 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1410 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1411 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1412 output="rockbox.zvm"
1413 appextra="recorder:gui"
1414 plugins="yes"
1415 swcodec="yes"
1416 toolset=$gigabeatbitmaptools
1417 boottool="$rootdir/tools/scramble -zvm"
1418 bootoutput="rockbox.zvmboot"
1419 # architecture, manufacturer and model for the target-tree build
1420 t_cpu="arm"
1421 t_manufacturer="tms320dm320"
1422 t_model="creative-zvm"
1425 50|e200)
1426 target_id=23
1427 modelname="e200"
1428 target="-DSANSA_E200"
1429 memory=32 # supposedly
1430 arm7tdmicc
1431 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1432 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1433 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1434 output="rockbox.mi4"
1435 appextra="recorder:gui"
1436 plugins="yes"
1437 swcodec="yes"
1438 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1439 bootoutput="PP5022.mi4"
1440 # toolset is the tools within the tools directory that we build for
1441 # this particular target.
1442 toolset="$genericbitmaptools scramble"
1443 # architecture, manufacturer and model for the target-tree build
1444 t_cpu="arm"
1445 t_manufacturer="sandisk"
1446 t_model="sansa-e200"
1449 51|e200r)
1450 # the e200R model is pretty much identical to the e200, it only has a
1451 # different option to the scramble tool when building a bootloader and
1452 # makes the bootloader output file name in all lower case.
1453 target_id=27
1454 modelname="e200r"
1455 target="-DSANSA_E200"
1456 memory=32 # supposedly
1457 arm7tdmicc
1458 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1459 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1460 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1461 output="rockbox.mi4"
1462 appextra="recorder:gui"
1463 plugins="yes"
1464 swcodec="yes"
1465 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1466 bootoutput="pp5022.mi4"
1467 # toolset is the tools within the tools directory that we build for
1468 # this particular target.
1469 toolset="$genericbitmaptools scramble"
1470 # architecture, manufacturer and model for the target-tree build
1471 t_cpu="arm"
1472 t_manufacturer="sandisk"
1473 t_model="sansa-e200"
1476 52|c200)
1477 target_id=30
1478 modelname="c200"
1479 target="-DSANSA_C200"
1480 memory=32 # supposedly
1481 arm7tdmicc
1482 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1483 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1484 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1485 output="rockbox.mi4"
1486 appextra="recorder:gui"
1487 plugins="yes"
1488 swcodec="yes"
1489 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1490 bootoutput="firmware.mi4"
1491 # toolset is the tools within the tools directory that we build for
1492 # this particular target.
1493 toolset="$genericbitmaptools scramble"
1494 # architecture, manufacturer and model for the target-tree build
1495 t_cpu="arm"
1496 t_manufacturer="sandisk"
1497 t_model="sansa-c200"
1500 60|tpj1022)
1501 target_id=25
1502 modelname="tpj1022"
1503 target="-DELIO_TPJ1022"
1504 memory=32 # always
1505 arm7tdmicc
1506 tool="$rootdir/tools/scramble -add tpj2"
1507 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1508 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1509 output="rockbox.elio"
1510 appextra="recorder:gui"
1511 plugins="yes"
1512 swcodec="yes"
1513 boottool="$rootdir/tools/scramble -mi4v2"
1514 bootoutput="pp5020.mi4"
1515 # toolset is the tools within the tools directory that we build for
1516 # this particular target.
1517 toolset="$genericbitmaptools scramble"
1518 # architecture, manufacturer and model for the target-tree build
1519 t_cpu="arm"
1520 t_manufacturer="tatung"
1521 t_model="tpj1022"
1525 echo "Please select a supported target platform!"
1526 exit
1529 esac
1531 echo "Platform set to $modelname"
1534 #remove start
1535 ############################################################################
1536 # Amount of memory, for those that can differ. They have $memory unset at
1537 # this point.
1540 if [ -z "$memory" ]; then
1542 case $target_id in
1544 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1545 size=`input`;
1546 case $size in
1547 60|64)
1548 memory="64"
1551 memory="32"
1553 esac
1557 echo "Enter size of your RAM (in MB): (defaults to 2)"
1558 size=`input`;
1559 case $size in
1561 memory="8"
1564 memory="2"
1566 esac
1568 esac
1570 echo "Memory size selected: $memory MB"
1572 #remove end
1574 ##################################################################
1575 # Figure out build "type"
1578 # the ifp7x0 is the only platform that supports building a gdb stub like
1579 # this
1580 case $modelname in
1581 ifp7xx)
1582 gdbstub="(G)DB stub, "
1584 e200r|e200)
1585 gdbstub="(I)installer, "
1589 esac
1591 echo ""
1592 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1594 option=`input`;
1596 case $option in
1597 [Ii])
1598 appsdir='\$(ROOTDIR)/bootloader'
1599 apps="bootloader"
1600 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
1601 bootloader="1"
1602 echo "e200R-installer build selected"
1604 [Bb])
1605 if test $t_manufacturer = "archos"; then
1606 # Archos SH-based players do this somewhat differently for
1607 # some reason
1608 appsdir='\$(ROOTDIR)/flash/bootbox'
1609 apps="bootbox"
1610 else
1611 appsdir='\$(ROOTDIR)/bootloader'
1612 apps="bootloader"
1613 flash=""
1614 if test -n "$boottool"; then
1615 tool="$boottool"
1617 if test -n "$bootoutput"; then
1618 output=$bootoutput
1621 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
1622 bootloader="1"
1623 echo "Bootloader build selected"
1625 [Ss])
1626 debug="-DDEBUG"
1627 simulator="yes"
1628 extradefines="-DSIMULATOR"
1629 echo "Simulator build selected"
1631 [Aa])
1632 echo "Advanced build selected"
1633 whichadvanced
1635 [Gg])
1636 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1637 appsdir='\$(ROOTDIR)/gdb'
1638 apps="stub"
1639 case $modelname in
1640 ifp7xx)
1641 output="stub.wma"
1645 esac
1646 echo "GDB stub build selected"
1648 [Mm])
1649 toolset='';
1650 apps="manual"
1651 echo "Manual build selected"
1654 if [ "$modelname" = "e200r" ]; then
1655 echo "Do not use the e200R target for regular builds. Use e200 instead."
1656 exit
1658 debug=""
1659 echo "Normal build selected"
1662 esac
1663 # to be able running "make manual" from non-manual configuration
1664 case $modelname in
1665 fmrecorder)
1666 manualdev="recorderv2fm"
1668 recorderv2)
1669 manualdev="recorderv2fm"
1671 h1??)
1672 manualdev="h1xx"
1674 ipodmini2g)
1675 manualdev="ipodmini"
1678 manualdev=$modelname
1680 esac
1682 if [ -z "$debug" ]; then
1683 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
1686 echo "Using source code root directory: $rootdir"
1688 # this was once possible to change at build-time, but no more:
1689 language="english"
1691 uname=`uname`
1693 if [ "yes" = "$simulator" ]; then
1694 # setup compiler and things for simulator
1695 simcc
1697 if [ -d "archos" ]; then
1698 echo "sub directory archos already present"
1699 else
1700 mkdir archos
1701 echo "created an archos subdirectory for simulating the hard disk"
1705 # Now, figure out version number of the (gcc) compiler we are about to use
1706 gccver=`$CC -dumpversion`;
1708 # figure out the binutil version too and display it, mostly for the build
1709 # system etc to be able to see it easier
1710 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
1712 if [ -z "$gccver" ]; then
1713 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1714 echo "WARNING: this may cause your build to fail since we cannot do the"
1715 echo "WARNING: checks we want now."
1716 else
1718 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1719 # DEPEND on it
1721 num1=`echo $gccver | cut -d . -f1`
1722 num2=`echo $gccver | cut -d . -f2`
1723 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1725 # This makes:
1726 # 3.3.X => 303
1727 # 3.4.X => 304
1728 # 2.95.3 => 295
1730 echo "Using $CC $gccver ($gccnum)"
1732 if test "$gccnum" -ge "400"; then
1733 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1734 # so we ignore that warnings for now
1735 # -Wno-pointer-sign
1736 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
1739 if test "$gccnum" -ge "401"; then
1740 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1741 # will break strict-aliasing rules"
1743 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
1746 if test "$gccnum" -ge "402"; then
1747 # disable warning about "warning: initialized field overwritten" as gcc 4.2
1748 # and later would throw it for several valid cases
1749 GCCOPTS="$GCCOPTS -Wno-override-init"
1752 case $prefix in
1754 # simulator
1756 i586-mingw32msvc-)
1757 # cross-compile for win32
1760 # Verify that the cross-compiler is of a recommended version!
1761 if test "$gccver" != "$gccchoice"; then
1762 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
1763 echo "WARNING: version $gccchoice!"
1764 echo "WARNING: This may cause your build to fail since it may be a version"
1765 echo "WARNING: that isn't functional or known to not be the best choice."
1766 echo "WARNING: If you suffer from build problems, you know that this is"
1767 echo "WARNING: a likely source for them..."
1770 esac
1775 echo "Using $LD $ldver"
1777 # check the compiler for SH platforms
1778 if test "$CC" = "sh-elf-gcc"; then
1779 if test "$gccnum" -lt "400"; then
1780 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1781 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1782 else
1783 # figure out patch status
1784 gccpatch=`$CC --version`;
1786 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
1787 echo "gcc $gccver is rockbox patched"
1788 # then convert -O to -Os to get smaller binaries!
1789 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1790 else
1791 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1792 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1797 if test "$CC" = "m68k-elf-gcc"; then
1798 # convert -O to -Os to get smaller binaries!
1799 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1802 if test "$1" = "--ccache"; then
1803 echo "Enable ccache for building"
1804 ccache="ccache"
1805 else
1806 if test "$1" != "--no-ccache"; then
1807 ccache=`findtool ccache`
1808 if test -n "$ccache"; then
1809 echo "Found and uses ccache ($ccache)"
1814 if test -n "$ccache"; then
1815 CC="$ccache $CC"
1818 if test "X$endian" = "Xbig"; then
1819 defendian="ROCKBOX_BIG_ENDIAN"
1820 else
1821 defendian="ROCKBOX_LITTLE_ENDIAN"
1824 sed > autoconf.h \
1825 -e "s,@ENDIAN@,${defendian},g" \
1826 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1827 -e "s,@config_rtc@,$config_rtc,g" \
1828 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1829 <<EOF
1830 /* This header was made by configure */
1831 #ifndef __BUILD_AUTOCONF_H
1832 #define __BUILD_AUTOCONF_H
1834 /* Define endianess for the target or simulator platform */
1835 #define @ENDIAN@ 1
1837 /* Define this if you build rockbox to support the logf logging and display */
1838 #undef ROCKBOX_HAS_LOGF
1840 /* optional defines for RTC mod for h1x0 */
1841 @config_rtc@
1842 @have_rtc_alarm@
1844 #endif /* __BUILD_AUTOCONF_H */
1847 if test -n "$t_cpu"; then
1848 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1849 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1850 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1851 GCCOPTS="$GCCOPTS"
1854 if test "$simulator" = "yes"; then
1855 # add simul make stuff on the #SIMUL# line
1856 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1857 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1858 else
1859 # delete the lines that match
1860 simmagic1='/@SIMUL1@/D'
1861 simmagic2='/@SIMUL2@/D'
1864 if test "$swcodec" = "yes"; then
1865 voicetoolset="rbspeexenc voicefont wavtrim"
1866 else
1867 voicetoolset="voicefont wavtrim"
1870 if test "$apps" = "apps"; then
1871 # only when we build "real" apps we build the .lng files
1872 buildlangs="langs"
1875 sed > Makefile \
1876 -e "s,@ROOTDIR@,${rootdir},g" \
1877 -e "s,@DEBUG@,${debug},g" \
1878 -e "s,@MEMORY@,${memory},g" \
1879 -e "s,@TARGET_ID@,${target_id},g" \
1880 -e "s,@TARGET@,${target},g" \
1881 -e "s,@CPU@,${t_cpu},g" \
1882 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1883 -e "s,@MODELNAME@,${modelname},g" \
1884 -e "s,@LANGUAGE@,${language},g" \
1885 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1886 -e "s,@PWD@,${pwd},g" \
1887 -e "s,@CC@,${CC},g" \
1888 -e "s,@LD@,${LD},g" \
1889 -e "s,@AR@,${AR},g" \
1890 -e "s,@AS@,${AS},g" \
1891 -e "s,@OC@,${OC},g" \
1892 -e "s,@WINDRES@,${WINDRES},g" \
1893 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1894 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1895 -e "s,@RANLIB@,${RANLIB},g" \
1896 -e "s,@TOOL@,${tool},g" \
1897 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1898 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1899 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1900 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1901 -e "s,@OUTPUT@,${output},g" \
1902 -e "s,@APPEXTRA@,${appextra},g" \
1903 -e "s,@ARCHOSROM@,${archosrom},g" \
1904 -e "s,@FLASHFILE@,${flash},g" \
1905 -e "s,@PLUGINS@,${plugins},g" \
1906 -e "s,@CODECS@,${swcodec},g" \
1907 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1908 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1909 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1910 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1911 -e "s!@LDOPTS@!${LDOPTS}!g" \
1912 -e "s,@LOADADDRESS@,${loadaddress},g" \
1913 -e "s,@EXTRADEF@,${extradefines},g" \
1914 -e "s,@APPSDIR@,${appsdir},g" \
1915 -e "s,@FIRMDIR@,${firmdir},g" \
1916 -e "s,@TOOLSDIR@,${toolsdir},g" \
1917 -e "s,@APPS@,${apps},g" \
1918 -e "s,@SIMVER@,${simver},g" \
1919 -e "s,@GCCVER@,${gccver},g" \
1920 -e "s,@GCCNUM@,${gccnum},g" \
1921 -e "s,@UNAME@,${uname},g" \
1922 -e "s,@ENDIAN@,${defendian},g" \
1923 -e "s,@TOOLSET@,${toolset},g" \
1924 -e "${simmagic1}" \
1925 -e "${simmagic2}" \
1926 -e "s,@MANUALDEV@,${manualdev},g" \
1927 -e "s,@ENCODER@,${ENC_CMD},g" \
1928 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
1929 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
1930 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
1931 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
1932 -e "s,@LANGS@,${buildlangs},g" \
1933 <<EOF
1934 ## Automaticly generated. http://www.rockbox.org/
1936 ifndef V
1937 SILENT=@
1938 else
1939 VERBOSEOPT=-v
1940 endif
1942 # old 'make' versions don't have the built-in 'info' function
1943 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1944 ifeq (\$(call info),old)
1945 export info=echo "\$\$(1)";
1946 endif
1948 export ROOTDIR=@ROOTDIR@
1949 export FIRMDIR=@FIRMDIR@
1950 export APPSDIR=@APPSDIR@
1951 export TOOLSDIR=@TOOLSDIR@
1952 export DOCSDIR=\$(ROOTDIR)/docs
1953 export MANUALDIR=\${ROOTDIR}/manual
1954 export DEBUG=@DEBUG@
1955 export MODELNAME=@MODELNAME@
1956 export ARCHOSROM=@ARCHOSROM@
1957 export FLASHFILE=@FLASHFILE@
1958 export TARGET_ID=@TARGET_ID@
1959 export TARGET=@TARGET@
1960 export CPU=@CPU@
1961 export MANUFACTURER=@MANUFACTURER@
1962 export OBJDIR=@PWD@
1963 export BUILDDIR=@PWD@
1964 export LANGUAGE=@LANGUAGE@
1965 export VOICELANGUAGE=@VOICELANGUAGE@
1966 export MEMORYSIZE=@MEMORY@
1967 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1968 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1969 export MKFIRMWARE=@TOOL@
1970 export BMP2RB_MONO=@BMP2RB_MONO@
1971 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1972 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1973 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1974 export BINARY=@OUTPUT@
1975 export APPEXTRA=@APPEXTRA@
1976 export ENABLEDPLUGINS=@PLUGINS@
1977 export SOFTWARECODECS=@CODECS@
1978 export EXTRA_DEFINES=@EXTRADEF@
1979 export HOSTCC=gcc
1980 export HOSTAR=ar
1981 export CC=@CC@
1982 export LD=@LD@
1983 export AR=@AR@
1984 export AS=@AS@
1985 export OC=@OC@
1986 export WINDRES=@WINDRES@
1987 export DLLTOOL=@DLLTOOL@
1988 export DLLWRAP=@DLLWRAP@
1989 export RANLIB=@RANLIB@
1990 export PROFILE_OPTS=@PROFILE_OPTS@
1991 export SIMVER=@SIMVER@
1992 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1993 export GCCOPTS=@GCCOPTS@
1994 export TARGET_INC=@TARGET_INC@
1995 export LOADADDRESS=@LOADADDRESS@
1996 export SHARED_FLAG=@SHARED_FLAG@
1997 export LDOPTS=@LDOPTS@
1998 export GCCVER=@GCCVER@
1999 export GCCNUM=@GCCNUM@
2000 export UNAME=@UNAME@
2001 export MANUALDEV=@MANUALDEV@
2002 export TTS_OPTS=@TTS_OPTS@
2003 export TTS_ENGINE=@TTS_ENGINE@
2004 export ENC_OPTS=@ENC_OPTS@
2005 export ENCODER=@ENCODER@
2007 # Do not print "Entering directory ..."
2008 MAKEFLAGS += --no-print-directory
2010 .PHONY: all clean tags zip tools manual bin build info langs
2012 all: info
2014 info: build
2015 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
2017 build: tools @LANGS@
2018 @SIMUL1@
2019 @SIMUL2@
2020 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2021 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
2023 bin: tools @LANGS@
2024 @SIMUL1@
2025 @SIMUL2@
2026 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2027 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
2029 rocks: tools
2030 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
2032 veryclean: clean toolsclean
2034 toolsclean:
2035 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
2037 clean:
2038 \$(SILENT)echo Cleaning build directory
2039 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
2040 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
2041 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
2042 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
2043 voicefontids *.wav *.mp3 *.voice max_language_size.h
2045 tools:
2046 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
2048 voicetools:
2049 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
2051 tags:
2052 \$(SILENT)rm -f TAGS
2053 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
2054 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
2055 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
2056 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
2058 fontzip:
2059 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
2061 zip:
2062 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2063 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2065 mapzip:
2066 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
2068 fullzip:
2069 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2070 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
2072 7zip:
2073 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2074 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2076 tar:
2077 \$(SILENT)rm -f rockbox.tar
2078 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2079 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2081 bzip2: tar
2082 \$(SILENT)bzip2 -f9 rockbox.tar
2084 gzip: tar
2085 \$(SILENT)gzip -f9 rockbox.tar
2087 langs: features
2088 \$(SILENT)mkdir -p \$(BUILDDIR)/apps/lang
2089 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/lang OBJDIR=\$(BUILDDIR)/apps/lang
2091 manual: manual-pdf
2092 manual-pdf:
2093 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
2094 manual-html:
2095 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
2096 manual-zhtml: manual-zip
2097 manual-txt:
2098 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2099 manual-ztxt:
2100 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2101 manual-zip:
2102 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2104 features:
2105 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2107 help:
2108 @echo "A few helpful make targets"
2109 @echo ""
2110 @echo "all - builds a full Rockbox (default), including tools"
2111 @echo "bin - builds only the Rockbox.<target name> file"
2112 @echo "rocks - builds only plugins and codecs"
2113 @echo "clean - cleans a build directory (not tools)"
2114 @echo "veryclean - cleans the build and tools directories"
2115 @echo "manual - builds a manual"
2116 @echo "manual-html - HTML manual"
2117 @echo "manual-zip - HTML manual (zipped)"
2118 @echo "manual-txt - txt manual"
2119 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2120 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2121 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2122 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2123 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2124 @echo "fontzip - creates rockbox-fonts.zip"
2125 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2126 @echo "tools - builds the tools only"
2127 @echo "voicetools - builds the voice tools only"
2128 @echo "install - installs your build (for simulator builds only)"
2132 if [ "yes" = "$simulator" ]; then
2134 cat >> Makefile <<EOF
2136 install:
2137 @echo "installing a full setup in your archos dir"
2138 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
2143 if [ "yes" = "$voice" ]; then
2145 cat >> Makefile <<EOF
2147 voice: voicetools features
2148 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2149 for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/voice.pl -V -l=\$\$lang -t=\$(MODELNAME)\$\$feat -i=\$(TARGET_ID) -e="\$(ENCODER)" -E="\$(ENC_OPTS)" -s=\$(TTS_ENGINE) -S="\$(TTS_OPTS)"; done \\
2154 echo "Created Makefile"