Some entropy decoder tweaks. Also removed unnecessary 'tmp' variables.
[kugel-rb.git] / tools / configure
blob443ea9fbc6ada4868c6621504b98fddf453cdd86
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 # add cross-compiler option(s)
46 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
47 LDOPTS="`sdl-config --libs` -mconsole"
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
67 # check whether caller wants literal return value if not found
68 if [ "$2" = "--lit" ]; then
69 echo "$file"
73 # parse the argument list, returns the value after the = in case of a
74 # option=value type option, returns 0 in case of --ccache or --no-ccache,
75 # returns 1 if the searched argument type wasn't fount in the argument list
76 # Usage [var = ]`parse_args <argumenttype>`, e.g. `parse_args --target`
78 # var definitons below are needed so that parse_args can see the arguments
79 arg1=$1 arg2=$2 arg3=$3 arg4=$4 arg5=$5 arg6=$6 arg7=$7 arg8=$8 arg9=$9
81 parse_args() {
82 ret="1"
83 for i in $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9
85 if [ "$1" = "--ccache" ]; then
86 if [ "$i" = "--ccache" ]; then
87 ret="0"
89 elif [ "$1" = "--no-ccache" ]; then
90 if [ "$i" = "--no-ccache" ]; then
91 ret="0"
93 elif [ "$1" = `echo $i|cut -d'=' -f1` ]; then
94 ret=`echo $i|cut -d'=' -f2`
96 done
97 echo "$ret"
100 simcc () {
102 # default tool setup for native building
103 prefixtools ""
105 simver=sdl
106 GCCOPTS='-W -Wall -g -fno-builtin'
108 output="rockboxui" # use this as default output binary name
110 # generic sdl-config checker
111 sdl=`findtool sdl-config`
113 if [ -z "$sdl" ]; then
114 echo "configure didn't find sdl-config, which indicates that you"
115 echo "don't have SDL (properly) installed. Please correct and"
116 echo "re-run configure!"
117 exit
120 # default share option, override below if needed
121 SHARED_FLAG="-shared"
123 case $uname in
124 CYGWIN*)
125 echo "Cygwin host detected"
127 # sdl version
128 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
129 LDOPTS="`sdl-config --libs` -mconsole"
131 output="rockboxui.exe" # use this as output binary name
134 Linux)
135 echo "Linux host detected"
136 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
137 # Enable crosscompiling if sdl-config is from Windows SDL
138 crosswincc
139 else
140 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
141 LDOPTS="`sdl-config --libs`"
145 FreeBSD)
146 echo "FreeBSD host detected"
147 # sdl version
148 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
149 LDOPTS="`sdl-config --libs`"
152 Darwin)
153 echo "Darwin host detected"
154 # sdl version
155 GCCOPTS="$GCCOPTS `sdl-config --cflags`"
156 LDOPTS="`sdl-config --libs`"
157 SHARED_FLAG="-dynamiclib -Wl\,-single_module"
161 echo "Unsupported system: $uname, fix configure and retry"
162 exit
164 esac
166 GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
168 if test "X$crosscompile" != "Xyes"; then
169 if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "amd64" ]; then
170 # fPIC is needed to make shared objects link
171 # setting visibility to hidden is necessary to avoid strange crashes
172 # due to symbol clashing
173 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
176 id=$$
177 cat >/tmp/conftest-$id.c <<EOF
178 #include <stdio.h>
179 int main(int argc, char **argv)
181 int var=0;
182 char *varp = (char *)&var;
183 *varp=1;
185 printf("%d\n", var);
186 return 0;
190 $CC -o /tmp/conftest-$id /tmp/conftest-$id.c 2>/dev/null
192 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
193 # big endian
194 endian="big"
195 else
196 # little endian
197 endian="little"
199 echo "Simulator environment deemed $endian endian"
201 # use wildcard here to make it work even if it was named *.exe like
202 # on cygwin
203 rm -f /tmp/conftest-$id*
208 # functions for setting up cross-compiler names and options
209 # also set endianess and what the exact recommended gcc version is
210 # the gcc version should most likely match what versions we build with
211 # rockboxdev.sh
213 shcc () {
214 prefixtools sh-elf-
215 GCCOPTS="$CCOPTS -m1"
216 GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
217 endian="big"
218 gccchoice="4.0.3"
221 calmrisccc () {
222 prefixtools calmrisc16-unknown-elf-
223 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
224 GCCOPTIMIZE="-fomit-frame-pointer"
225 endian="big"
228 coldfirecc () {
229 prefixtools m68k-elf-
230 GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
231 GCCOPTIMIZE="-fomit-frame-pointer"
232 endian="big"
233 gccchoice="3.4.6"
236 arm7tdmicc () {
237 prefixtools arm-elf-
238 GCCOPTS="$CCOPTS -mcpu=arm7tdmi"
239 if test "X$1" != "Xshort"; then
240 GCCOPTS="$GCCOPTS -mlong-calls"
242 GCCOPTIMIZE="-fomit-frame-pointer"
243 endian="little"
244 gccchoice="4.0.3"
247 arm9tdmicc () {
248 prefixtools arm-elf-
249 GCCOPTS="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
250 GCCOPTIMIZE="-fomit-frame-pointer"
251 endian="little"
252 gccchoice="4.0.3"
255 arm940tbecc () {
256 prefixtools arm-elf-
257 GCCOPTS="$CCOPTS -mbig-endian -mcpu=arm940t -mlong-calls"
258 GCCOPTIMIZE="-fomit-frame-pointer"
259 endian="big"
260 gccchoice="4.0.3"
263 arm946cc () {
264 prefixtools arm-elf-
265 GCCOPTS="$CCOPTS -mcpu=arm9e -mlong-calls"
266 GCCOPTIMIZE="-fomit-frame-pointer"
267 endian="little"
268 gccchoice="4.0.3"
271 arm926ejscc () {
272 prefixtools arm-elf-
273 GCCOPTS="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
274 GCCOPTIMIZE="-fomit-frame-pointer"
275 endian="little"
276 gccchoice="4.0.3"
279 arm1136jfscc () {
280 prefixtools arm-elf-
281 GCCOPTS="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
282 GCCOPTIMIZE="-fomit-frame-pointer"
283 endian="little"
284 gccchoice="4.0.3"
287 mipselcc () {
288 prefixtools mipsel-elf-
289 GCCOPTS="$CCOPTS -march=mips32 -mno-mips16 -mno-abicalls -mlong-calls"
290 GCCOPTIMIZE="-fomit-frame-pointer"
291 GCCOPTS="$GCCOPTS -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -msoft-float -G 0"
292 endian="little"
293 gccchoice="4.1.2"
296 whichadvanced () {
297 ##################################################################
298 # Prompt for specific developer options
300 echo ""
301 echo "Enter your developer options (press enter when done)"
302 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
303 if [ "$memory" = "2" ]; then
304 echo -n ", (8)MB MOD"
306 if [ "$modelname" = "h120" ]; then
307 echo -n ", (R)TC MOD"
309 echo ""
311 cont=1
313 while [ $cont = "1" ]; do
315 option=`input`;
317 case $option in
318 [Dd])
319 if [ "yes" = "$profile" ]; then
320 echo "Debug is incompatible with profiling"
321 else
322 echo "define DEBUG"
323 use_debug="yes"
326 [Ll])
327 echo "logf() support enabled"
328 logf="yes"
330 [Ss])
331 echo "Simulator build enabled"
332 simulator="yes"
334 [Pp])
335 if [ "yes" = "$use_debug" ]; then
336 echo "Profiling is incompatible with debug"
337 else
338 echo "Profiling support is enabled"
339 profile="yes"
342 [Vv])
343 echo "Voice build selected"
344 voice="yes"
347 if [ "$memory" = "2" ]; then
348 memory="8"
349 echo "Memory size selected: 8MB"
350 else
351 cont=0
354 [Rr])
355 if [ "$modelname" = "h120" ]; then
356 config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
357 have_rtc_alarm="#define HAVE_RTC_ALARM"
358 echo "RTC functions enabled (DS1339/DS3231)"
359 else
360 cont=0
364 cont=0
366 esac
367 done
368 echo "done"
370 if [ "yes" = "$voice" ]; then
371 # Ask about languages to build
372 echo "Select a number for the language to use (default is english)"
373 # The multiple-language feature is currently broken
374 # echo "You may enter a comma-separated list of languages to build"
376 picklang
377 voicelanguage=`whichlang`
379 if [ -z "$voicelanguage" ]; then
380 # pick a default
381 voicelanguage="english"
383 echo "Voice language set to $voicelanguage"
385 # Configure encoder and TTS engine for each language
386 for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
387 voiceconfig "$thislang"
388 done
390 if [ "yes" = "$use_debug" ]; then
391 debug="-DDEBUG"
392 GCCOPTS="$GCCOPTS -g -DDEBUG"
394 if [ "yes" = "$logf" ]; then
395 use_logf="#define ROCKBOX_HAS_LOGF 1"
397 if [ "yes" = "$simulator" ]; then
398 debug="-DDEBUG"
399 extradefines="$extradefines -DSIMULATOR"
401 if [ "yes" = "$profile" ]; then
402 extradefines="$extradefines -DRB_PROFILE"
403 PROFILE_OPTS="-finstrument-functions"
407 # Configure voice settings
408 voiceconfig () {
409 thislang=$1
410 echo "Building $thislang voice for $modelname. Select options"
411 echo ""
413 if [ -n "`findtool flite`" ]; then
414 FLITE="F(l)ite "
415 FLITE_OPTS=""
416 DEFAULT_TTS="flite"
417 DEFAULT_TTS_OPTS=$FLITE_OPTS
418 DEFAULT_NOISEFLOOR="500"
419 DEFAULT_CHOICE="L"
421 if [ -n "`findtool espeak`" ]; then
422 ESPEAK="(e)Speak "
423 ESPEAK_OPTS=""
424 DEFAULT_TTS="espeak"
425 DEFAULT_TTS_OPTS=$ESPEAK_OPTS
426 DEFAULT_NOISEFLOOR="500"
427 DEFAULT_CHOICE="e"
429 if [ -n "`findtool festival`" ]; then
430 FESTIVAL="(F)estival "
431 case "$thislang" in
432 "italiano")
433 FESTIVAL_OPTS="--language italian"
435 "espanol")
436 FESTIVAL_OPTS="--language spanish"
438 "finnish")
439 FESTIVAL_OPTS="--language finnish"
441 "czech")
442 FESTIVAL_OPTS="--language czech"
445 FESTIVAL_OPTS=""
447 esac
448 DEFAULT_TTS="festival"
449 DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
450 DEFAULT_NOISEFLOOR="500"
451 DEFAULT_CHOICE="F"
453 if [ -n "`findtool swift`" ]; then
454 SWIFT="S(w)ift "
455 SWIFT_OPTS=""
456 DEFAULT_TTS="swift"
457 DEFAULT_TTS_OPTS=$SWIFT_OPTS
458 DEFAULT_NOISEFLOOR="500"
459 DEFAULT_CHOICE="w"
461 # Allow SAPI if Windows is in use
462 if [ -n "`findtool winver`" ]; then
463 SAPI="(S)API "
464 SAPI_OPTS=""
465 DEFAULT_TTS="sapi"
466 DEFAULT_TTS_OPTS=$SAPI_OPTS
467 DEFAULT_NOISEFLOOR="500"
468 DEFAULT_CHOICE="S"
471 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
472 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
473 exit
476 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
477 option=`input`
478 case "$option" in
479 [Ll])
480 TTS_ENGINE="flite"
481 NOISEFLOOR="500" # TODO: check this value
482 TTS_OPTS=$FLITE_OPTS
484 [Ee])
485 TTS_ENGINE="espeak"
486 NOISEFLOOR="500"
487 TTS_OPTS=$ESPEAK_OPTS
489 [Ff])
490 TTS_ENGINE="festival"
491 NOISEFLOOR="500"
492 TTS_OPTS=$FESTIVAL_OPTS
494 [Ss])
495 TTS_ENGINE="sapi"
496 NOISEFLOOR="500"
497 TTS_OPTS=$SAPI_OPTS
499 [Ww])
500 TTS_ENGINE="swift"
501 NOISEFLOOR="500"
502 TTS_OPTS=$SWIFT_OPTS
505 TTS_ENGINE=$DEFAULT_TTS
506 TTS_OPTS=$DEFAULT_TTS_OPTS
507 NOISEFLOOR=$DEFAULT_NOISEFLOOR
508 esac
509 echo "Using $TTS_ENGINE for TTS"
511 # Allow the user to input manual commandline options
512 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
513 USER_TTS_OPTS=`input`
514 if [ -n "$USER_TTS_OPTS" ]; then
515 TTS_OPTS="$USER_TTS_OPTS"
518 echo ""
520 if [ "$swcodec" = "yes" ]; then
521 ENCODER="rbspeexenc"
522 ENC_CMD="rbspeexenc"
523 ENC_OPTS="-q 4 -c 10"
524 else
525 if [ -n "`findtool lame`" ]; then
526 ENCODER="lame"
527 ENC_CMD="lame"
528 ENC_OPTS="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
529 else
530 echo "You need LAME in the system path to build voice files for"
531 echo "HWCODEC targets."
532 exit
536 echo "Using $ENCODER for encoding voice clips"
538 # Allow the user to input manual commandline options
539 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
540 USER_ENC_OPTS=`input`
541 if [ -n "$USER_ENC_OPTS" ]; then
542 ENC_OPTS=$USER_ENC_OPTS
545 TEMPDIR="${pwd}"
546 if [ -n "`findtool cygpath`" ]; then
547 TEMPDIR=`cygpath . -a -w`
551 picklang() {
552 # figure out which languages that are around
553 for file in $rootdir/apps/lang/*.lang; do
554 clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
555 langs="$langs $clean"
556 done
558 num=1
559 for one in $langs; do
560 echo "$num. $one"
561 num=`expr $num + 1`
562 done
564 read pick
567 whichlang() {
568 output=""
569 # Allow the user to pass a comma-separated list of langauges
570 for thispick in `echo $pick | sed 's/,/ /g'`; do
571 num=1
572 for one in $langs; do
573 # Accept both the language number and name
574 if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
575 if [ "$output" = "" ]; then
576 output=$one
577 else
578 output=$output,$one
581 num=`expr $num + 1`
582 done
583 done
584 echo $output
587 opt=$1
589 if test "$opt" = "--help"; then
590 echo "Rockbox configure script."
591 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
592 echo "Do *NOT* run this within the tools directory!"
593 echo ""
594 cat <<EOF
595 Usage: configure [OPTION]...
596 Options:
597 --target=TARGET Sets the target, TARGET can be either the target ID or
598 corresponding string. Run without this option to see all
599 available targets.
601 --ram=RAM Sets the RAM for certain targets. Even though any number
602 is accepted, not every number is correct. The default
603 value will be applied, if you entered a wrong number
604 (which depends on the target). Watch the output. Run
605 without this option if you are not sure which the right
606 number is.
608 --type=TYPE Sets the build type. The shortcut is also valid.
609 Run without this option to see available types.
610 --ccache Enable ccache use (done by default these days)
611 --no-ccache Disable ccache use
612 --help Shows this message (must not be used with other options)
616 exit
619 if test -r "configure"; then
620 # this is a check for a configure script in the current directory, it there
621 # is one, try to figure out if it is this one!
623 if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
624 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
625 echo "It will only cause you pain and grief. Instead do this:"
626 echo ""
627 echo " cd .."
628 echo " mkdir build-dir"
629 echo " cd build-dir"
630 echo " ../tools/configure"
631 echo ""
632 echo "Much happiness will arise from this. Enjoy"
633 exit
637 # get our current directory
638 pwd=`pwd`;
640 if { echo $pwd | grep " "; } then
641 echo "You're running this script in a path that contains space. The build"
642 echo "system is unfortunately not clever enough to deal with this. Please"
643 echo "run the script from a different path, rename the path or fix the build"
644 echo "system!"
645 exit
648 if [ -z "$rootdir" ]; then
649 ##################################################################
650 # Figure out where the source code root is!
652 rootdir=`dirname $0`/../
654 #####################################################################
655 # Convert the possibly relative directory name to an absolute version
657 now=`pwd`
658 cd $rootdir
659 rootdir=`pwd`
661 # cd back to the build dir
662 cd $now
665 apps="apps"
666 appsdir='\$(ROOTDIR)/apps'
667 firmdir='\$(ROOTDIR)/firmware'
668 toolsdir='\$(ROOTDIR)/tools'
671 ##################################################################
672 # Figure out target platform
675 if [ "1" != `parse_args --target` ]; then
676 buildfor=`parse_args --target`;
677 else
678 echo "Enter target platform:"
679 cat <<EOF
680 ==Archos== ==iriver== ==Apple iPod==
681 0) Player/Studio 10) H120/H140 20) Color/Photo
682 1) Recorder 11) H320/H340 21) Nano
683 2) FM Recorder 12) iHP-100/110/115 22) Video
684 3) Recorder v2 13) iFP-790 23) 3G
685 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
686 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
687 6) AV300 26) Mini 2G
688 27) 1G, 2G
690 ==iAudio== ==Toshiba== ==SanDisk==
691 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
692 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
693 32) 7 52) Sansa c200
694 33) Cowon D2 53) Sansa m200
695 34) M3/M3L 54) Sansa c100
696 55) Sansa Clip
697 56) Sansa e200v2
698 57) Sansa m200v2
699 58) Sansa Fuze
701 ==Tatung== ==Olympus== ==Logik==
702 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
703 71) M:Robe 100
705 ==Creative== ==Philips== ==Meizu==
706 90) Zen Vision:M 30GB 100) GoGear SA9200 110) M6SL
707 91) Zen Vision:M 60GB 101) GoGear HDD1630 111) M6SP
708 92) Zen Vision 112) M3
710 ==Onda==
711 120) VX747
712 121) VX767
715 buildfor=`input`;
718 # Set of tools built for all target platforms:
719 toolset="rdf2binary convbdf codepages"
721 # Toolsets for some target families:
722 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
723 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
724 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
725 ipodbitmaptools="$toolset scramble bmp2rb"
726 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
727 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
728 # generic is used by IFP, Meizu and Onda
729 genericbitmaptools="$toolset bmp2rb"
730 # scramble is used by all other targets
731 scramblebitmaptools="$genericbitmaptools scramble"
734 # ---- For each target ----
736 # *Variables*
737 # target_id: a unique number identifying this target, IS NOT the menu number.
738 # Just use the currently highest number+1 when you add a new
739 # target.
740 # modelname: short model name used all over to identify this target
741 # memory: number of megabytes of RAM this target has. If the amount can
742 # be selected by the size prompt, let memory be unset here
743 # target: -Ddefine passed to the build commands to make the correct
744 # config-*.h file get included etc
745 # tool: the tool that takes a plain binary and converts that into a
746 # working "firmware" file for your target
747 # output: the final output file name
748 # boottool: the tool that takes a plain binary and generates a bootloader
749 # file for your target (or blank to use $tool)
750 # bootoutput:the final output file name for the bootloader (or blank to use
751 # $output)
752 # appextra: passed to the APPEXTRA variable in the Makefiles.
753 # TODO: add proper explanation
754 # archosrom: used only for Archos targets that build a special flashable .ucl
755 # image.
756 # flash: name of output for flashing, for targets where there's a special
757 # file output for this.
758 # plugins: set to 'yes' to build the plugins. Early development builds can
759 # set this to no in the early stages to have an easier life for a
760 # while
761 # swcodec: set 'yes' on swcodec targets
762 # toolset: lists what particular tools in the tools/ directory that this
763 # target needs to have built prior to building Rockbox
765 # *Functions*
766 # *cc: sets up gcc and compiler options for your target builds. Note
767 # that if you select a simulator build, the compiler selection is
768 # overridden later in the script.
770 case $buildfor in
772 0|player)
773 target_id=1
774 modelname="player"
775 target="-DARCHOS_PLAYER"
776 shcc
777 tool="$rootdir/tools/scramble"
778 output="archos.mod"
779 appextra="player:gui"
780 archosrom="$pwd/rombox.ucl"
781 flash="$pwd/rockbox.ucl"
782 plugins="yes"
783 swcodec=""
785 # toolset is the tools within the tools directory that we build for
786 # this particular target.
787 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
789 # Note: the convbdf is present in the toolset just because: 1) the
790 # firmware/Makefile assumes it is present always, and 2) we will need it when we
791 # build the player simulator
793 t_cpu="sh"
794 t_manufacturer="archos"
795 t_model="player"
798 1|recorder)
799 target_id=2
800 modelname="recorder"
801 target="-DARCHOS_RECORDER"
802 shcc
803 tool="$rootdir/tools/scramble"
804 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
805 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
806 output="ajbrec.ajz"
807 appextra="recorder:gui"
808 #archosrom="$pwd/rombox.ucl"
809 flash="$pwd/rockbox.ucl"
810 plugins="yes"
811 swcodec=""
812 # toolset is the tools within the tools directory that we build for
813 # this particular target.
814 toolset=$archosbitmaptools
815 t_cpu="sh"
816 t_manufacturer="archos"
817 t_model="recorder"
820 2|fmrecorder)
821 target_id=3
822 modelname="fmrecorder"
823 target="-DARCHOS_FMRECORDER"
824 shcc
825 tool="$rootdir/tools/scramble -fm"
826 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
827 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
828 output="ajbrec.ajz"
829 appextra="recorder:gui"
830 #archosrom="$pwd/rombox.ucl"
831 flash="$pwd/rockbox.ucl"
832 plugins="yes"
833 swcodec=""
834 # toolset is the tools within the tools directory that we build for
835 # this particular target.
836 toolset=$archosbitmaptools
837 t_cpu="sh"
838 t_manufacturer="archos"
839 t_model="fm_v2"
842 3|recorderv2)
843 target_id=4
844 modelname="recorderv2"
845 target="-DARCHOS_RECORDERV2"
846 shcc
847 tool="$rootdir/tools/scramble -v2"
848 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
849 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
850 output="ajbrec.ajz"
851 appextra="recorder:gui"
852 #archosrom="$pwd/rombox.ucl"
853 flash="$pwd/rockbox.ucl"
854 plugins="yes"
855 swcodec=""
856 # toolset is the tools within the tools directory that we build for
857 # this particular target.
858 toolset=$archosbitmaptools
859 t_cpu="sh"
860 t_manufacturer="archos"
861 t_model="fm_v2"
864 4|ondiosp)
865 target_id=7
866 modelname="ondiosp"
867 target="-DARCHOS_ONDIOSP"
868 shcc
869 tool="$rootdir/tools/scramble -osp"
870 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
871 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
872 output="ajbrec.ajz"
873 appextra="recorder:gui"
874 archosrom="$pwd/rombox.ucl"
875 flash="$pwd/rockbox.ucl"
876 plugins="yes"
877 swcodec=""
878 # toolset is the tools within the tools directory that we build for
879 # this particular target.
880 toolset=$archosbitmaptools
881 t_cpu="sh"
882 t_manufacturer="archos"
883 t_model="ondio"
886 5|ondiofm)
887 target_id=8
888 modelname="ondiofm"
889 target="-DARCHOS_ONDIOFM"
890 shcc
891 tool="$rootdir/tools/scramble -ofm"
892 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
893 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
894 output="ajbrec.ajz"
895 appextra="recorder:gui"
896 #archosrom="$pwd/rombox.ucl"
897 flash="$pwd/rockbox.ucl"
898 plugins="yes"
899 swcodec=""
900 toolset=$archosbitmaptools
901 t_cpu="sh"
902 t_manufacturer="archos"
903 t_model="ondio"
906 6|av300)
907 target_id=38
908 modelname="av300"
909 target="-DARCHOS_AV300"
910 memory=16 # always
911 arm7tdmicc
912 tool="$rootdir/tools/scramble -mm=C"
913 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
914 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
915 output="cjbm.ajz"
916 appextra="recorder:gui"
917 plugins="yes"
918 swcodec=""
919 # toolset is the tools within the tools directory that we build for
920 # this particular target.
921 toolset="$toolset scramble descramble bmp2rb"
922 # architecture, manufacturer and model for the target-tree build
923 t_cpu="arm"
924 t_manufacturer="archos"
925 t_model="av300"
928 10|h120)
929 target_id=9
930 modelname="h120"
931 target="-DIRIVER_H120"
932 memory=32 # always
933 coldfirecc
934 tool="$rootdir/tools/scramble -add=h120"
935 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
936 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
937 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
938 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
939 output="rockbox.iriver"
940 appextra="recorder:gui"
941 flash="$pwd/rombox.iriver"
942 plugins="yes"
943 swcodec="yes"
944 # toolset is the tools within the tools directory that we build for
945 # this particular target.
946 toolset=$iriverbitmaptools
947 t_cpu="coldfire"
948 t_manufacturer="iriver"
949 t_model="h100"
952 11|h300)
953 target_id=10
954 modelname="h300"
955 target="-DIRIVER_H300"
956 memory=32 # always
957 coldfirecc
958 tool="$rootdir/tools/scramble -add=h300"
959 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
960 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
961 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
962 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
963 output="rockbox.iriver"
964 appextra="recorder:gui"
965 plugins="yes"
966 swcodec="yes"
967 # toolset is the tools within the tools directory that we build for
968 # this particular target.
969 toolset=$iriverbitmaptools
970 t_cpu="coldfire"
971 t_manufacturer="iriver"
972 t_model="h300"
975 12|h100)
976 target_id=11
977 modelname="h100"
978 target="-DIRIVER_H100"
979 memory=16 # always
980 coldfirecc
981 tool="$rootdir/tools/scramble -add=h100"
982 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
983 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
984 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
985 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
986 output="rockbox.iriver"
987 appextra="recorder:gui"
988 flash="$pwd/rombox.iriver"
989 plugins="yes"
990 swcodec="yes"
991 # toolset is the tools within the tools directory that we build for
992 # this particular target.
993 toolset=$iriverbitmaptools
994 t_cpu="coldfire"
995 t_manufacturer="iriver"
996 t_model="h100"
999 13|ifp7xx)
1000 target_id=19
1001 modelname="ifp7xx"
1002 target="-DIRIVER_IFP7XX"
1003 memory=1
1004 arm7tdmicc short
1005 tool="cp"
1006 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1007 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1008 output="rockbox.wma"
1009 appextra="recorder:gui"
1010 plugins="yes"
1011 swcodec="yes"
1012 # toolset is the tools within the tools directory that we build for
1013 # this particular target.
1014 toolset=$genericbitmaptools
1015 t_cpu="arm"
1016 t_manufacturer="pnx0101"
1017 t_model="iriver-ifp7xx"
1020 14|h10)
1021 target_id=22
1022 modelname="h10"
1023 target="-DIRIVER_H10"
1024 memory=32 # always
1025 arm7tdmicc
1026 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1027 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1028 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1029 output="rockbox.mi4"
1030 appextra="recorder:gui"
1031 plugins="yes"
1032 swcodec="yes"
1033 boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1034 bootoutput="H10_20GC.mi4"
1035 # toolset is the tools within the tools directory that we build for
1036 # this particular target.
1037 toolset=$scramblebitmaptools
1038 # architecture, manufacturer and model for the target-tree build
1039 t_cpu="arm"
1040 t_manufacturer="iriver"
1041 t_model="h10"
1044 15|h10_5gb)
1045 target_id=24
1046 modelname="h10_5gb"
1047 target="-DIRIVER_H10_5GB"
1048 memory=32 # always
1049 arm7tdmicc
1050 tool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1051 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1052 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1053 output="rockbox.mi4"
1054 appextra="recorder:gui"
1055 plugins="yes"
1056 swcodec="yes"
1057 boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1058 bootoutput="H10.mi4"
1059 # toolset is the tools within the tools directory that we build for
1060 # this particular target.
1061 toolset=$scramblebitmaptools
1062 # architecture, manufacturer and model for the target-tree build
1063 t_cpu="arm"
1064 t_manufacturer="iriver"
1065 t_model="h10"
1068 20|ipodcolor)
1069 target_id=13
1070 modelname="ipodcolor"
1071 target="-DIPOD_COLOR"
1072 memory=32 # always
1073 arm7tdmicc
1074 tool="$rootdir/tools/scramble -add=ipco"
1075 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1076 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1077 output="rockbox.ipod"
1078 appextra="recorder:gui"
1079 plugins="yes"
1080 swcodec="yes"
1081 bootoutput="bootloader-$modelname.ipod"
1082 # toolset is the tools within the tools directory that we build for
1083 # this particular target.
1084 toolset=$ipodbitmaptools
1085 # architecture, manufacturer and model for the target-tree build
1086 t_cpu="arm"
1087 t_manufacturer="ipod"
1088 t_model="color"
1091 21|ipodnano)
1092 target_id=14
1093 modelname="ipodnano"
1094 target="-DIPOD_NANO"
1095 memory=32 # always
1096 arm7tdmicc
1097 tool="$rootdir/tools/scramble -add=nano"
1098 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1099 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1100 output="rockbox.ipod"
1101 appextra="recorder:gui"
1102 plugins="yes"
1103 swcodec="yes"
1104 bootoutput="bootloader-$modelname.ipod"
1105 # toolset is the tools within the tools directory that we build for
1106 # this particular target.
1107 toolset=$ipodbitmaptools
1108 # architecture, manufacturer and model for the target-tree build
1109 t_cpu="arm"
1110 t_manufacturer="ipod"
1111 t_model="nano"
1114 22|ipodvideo)
1115 target_id=15
1116 modelname="ipodvideo"
1117 target="-DIPOD_VIDEO"
1118 arm7tdmicc
1119 tool="$rootdir/tools/scramble -add=ipvd"
1120 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1121 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1122 output="rockbox.ipod"
1123 appextra="recorder:gui"
1124 plugins="yes"
1125 swcodec="yes"
1126 bootoutput="bootloader-$modelname.ipod"
1127 # toolset is the tools within the tools directory that we build for
1128 # this particular target.
1129 toolset=$ipodbitmaptools
1130 # architecture, manufacturer and model for the target-tree build
1131 t_cpu="arm"
1132 t_manufacturer="ipod"
1133 t_model="video"
1136 23|ipod3g)
1137 target_id=16
1138 modelname="ipod3g"
1139 target="-DIPOD_3G"
1140 memory=32 # always
1141 arm7tdmicc
1142 tool="$rootdir/tools/scramble -add=ip3g"
1143 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1144 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1145 output="rockbox.ipod"
1146 appextra="recorder:gui"
1147 plugins="yes"
1148 swcodec="yes"
1149 bootoutput="bootloader-$modelname.ipod"
1150 # toolset is the tools within the tools directory that we build for
1151 # this particular target.
1152 toolset=$ipodbitmaptools
1153 # architecture, manufacturer and model for the target-tree build
1154 t_cpu="arm"
1155 t_manufacturer="ipod"
1156 t_model="3g"
1159 24|ipod4g)
1160 target_id=17
1161 modelname="ipod4g"
1162 target="-DIPOD_4G"
1163 memory=32 # always
1164 arm7tdmicc
1165 tool="$rootdir/tools/scramble -add=ip4g"
1166 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1167 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1168 output="rockbox.ipod"
1169 appextra="recorder:gui"
1170 plugins="yes"
1171 swcodec="yes"
1172 bootoutput="bootloader-$modelname.ipod"
1173 # toolset is the tools within the tools directory that we build for
1174 # this particular target.
1175 toolset=$ipodbitmaptools
1176 # architecture, manufacturer and model for the target-tree build
1177 t_cpu="arm"
1178 t_manufacturer="ipod"
1179 t_model="4g"
1182 25|ipodmini)
1183 target_id=18
1184 modelname="ipodmini"
1185 target="-DIPOD_MINI"
1186 memory=32 # always
1187 arm7tdmicc
1188 tool="$rootdir/tools/scramble -add=mini"
1189 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1190 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1191 output="rockbox.ipod"
1192 appextra="recorder:gui"
1193 plugins="yes"
1194 swcodec="yes"
1195 bootoutput="bootloader-$modelname.ipod"
1196 # toolset is the tools within the tools directory that we build for
1197 # this particular target.
1198 toolset=$ipodbitmaptools
1199 # architecture, manufacturer and model for the target-tree build
1200 t_cpu="arm"
1201 t_manufacturer="ipod"
1202 t_model="mini"
1205 26|ipodmini2g)
1206 target_id=21
1207 modelname="ipodmini2g"
1208 target="-DIPOD_MINI2G"
1209 memory=32 # always
1210 arm7tdmicc
1211 tool="$rootdir/tools/scramble -add=mn2g"
1212 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1213 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1214 output="rockbox.ipod"
1215 appextra="recorder:gui"
1216 plugins="yes"
1217 swcodec="yes"
1218 bootoutput="bootloader-$modelname.ipod"
1219 # toolset is the tools within the tools directory that we build for
1220 # this particular target.
1221 toolset=$ipodbitmaptools
1222 # architecture, manufacturer and model for the target-tree build
1223 t_cpu="arm"
1224 t_manufacturer="ipod"
1225 t_model="mini2g"
1228 27|ipod1g2g)
1229 target_id=29
1230 modelname="ipod1g2g"
1231 target="-DIPOD_1G2G"
1232 memory=32 # always
1233 arm7tdmicc
1234 tool="$rootdir/tools/scramble -add=1g2g"
1235 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1236 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1237 output="rockbox.ipod"
1238 appextra="recorder:gui"
1239 plugins="yes"
1240 swcodec="yes"
1241 bootoutput="bootloader-$modelname.ipod"
1242 # toolset is the tools within the tools directory that we build for
1243 # this particular target.
1244 toolset=$ipodbitmaptools
1245 # architecture, manufacturer and model for the target-tree build
1246 t_cpu="arm"
1247 t_manufacturer="ipod"
1248 t_model="1g2g"
1251 30|x5)
1252 target_id=12
1253 modelname="x5"
1254 target="-DIAUDIO_X5"
1255 memory=16 # always
1256 coldfirecc
1257 tool="$rootdir/tools/scramble -add=iax5"
1258 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1259 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1260 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1261 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1262 output="rockbox.iaudio"
1263 appextra="recorder:gui"
1264 plugins="yes"
1265 swcodec="yes"
1266 # toolset is the tools within the tools directory that we build for
1267 # this particular target.
1268 toolset="$iaudiobitmaptools"
1269 # architecture, manufacturer and model for the target-tree build
1270 t_cpu="coldfire"
1271 t_manufacturer="iaudio"
1272 t_model="x5"
1275 31|m5)
1276 target_id=28
1277 modelname="m5"
1278 target="-DIAUDIO_M5"
1279 memory=16 # always
1280 coldfirecc
1281 tool="$rootdir/tools/scramble -add=iam5"
1282 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1283 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
1284 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1285 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1286 output="rockbox.iaudio"
1287 appextra="recorder:gui"
1288 plugins="yes"
1289 swcodec="yes"
1290 # toolset is the tools within the tools directory that we build for
1291 # this particular target.
1292 toolset="$iaudiobitmaptools"
1293 # architecture, manufacturer and model for the target-tree build
1294 t_cpu="coldfire"
1295 t_manufacturer="iaudio"
1296 t_model="m5"
1299 32|iaudio7)
1300 target_id=32
1301 modelname="iaudio7"
1302 target="-DIAUDIO_7"
1303 memory=16 # always
1304 arm946cc
1305 tool="$rootdir/tools/scramble -add=i7"
1306 boottool="$rootdir/tools/scramble -tcc=crc"
1307 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1308 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1309 output="rockbox.iaudio"
1310 appextra="recorder:gui"
1311 plugins="yes"
1312 swcodec="yes"
1313 bootoutput="I7_FW.BIN"
1314 # toolset is the tools within the tools directory that we build for
1315 # this particular target.
1316 toolset="$tccbitmaptools"
1317 # architecture, manufacturer and model for the target-tree build
1318 t_cpu="arm"
1319 t_manufacturer="tcc77x"
1320 t_model="iaudio7"
1323 33|cowond2)
1324 target_id=34
1325 modelname="cowond2"
1326 target="-DCOWON_D2"
1327 memory=32
1328 arm926ejscc
1329 tool="$rootdir/tools/scramble -add=d2"
1330 boottool="$rootdir/tools/scramble -tcc=crc"
1331 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1332 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1333 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1334 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1335 output="rockbox.iaudio"
1336 appextra="recorder:gui"
1337 plugins="yes"
1338 swcodec="yes"
1339 toolset="$tccbitmaptools"
1340 # architecture, manufacturer and model for the target-tree build
1341 t_cpu="arm"
1342 t_manufacturer="tcc780x"
1343 t_model="cowond2"
1346 34|m3)
1347 target_id=37
1348 modelname="m3"
1349 target="-DIAUDIO_M3"
1350 memory=16 # always
1351 coldfirecc
1352 tool="$rootdir/tools/scramble -add=iam3"
1353 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1354 bmp2rb_native="$rootdir/tools/bmp2rb -f 7"
1355 output="rockbox.iaudio"
1356 appextra="recorder:gui"
1357 plugins="yes"
1358 swcodec="yes"
1359 # toolset is the tools within the tools directory that we build for
1360 # this particular target.
1361 toolset="$iaudiobitmaptools"
1362 # architecture, manufacturer and model for the target-tree build
1363 t_cpu="coldfire"
1364 t_manufacturer="iaudio"
1365 t_model="m3"
1368 40|gigabeatf)
1369 target_id=20
1370 modelname="gigabeatf"
1371 target="-DGIGABEAT_F"
1372 memory=32 # always
1373 arm9tdmicc
1374 tool="$rootdir/tools/scramble -add=giga"
1375 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1376 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1377 output="rockbox.gigabeat"
1378 appextra="recorder:gui"
1379 plugins="yes"
1380 swcodec="yes"
1381 toolset=$gigabeatbitmaptools
1382 boottool="$rootdir/tools/scramble -gigabeat"
1383 bootoutput="FWIMG01.DAT"
1384 # architecture, manufacturer and model for the target-tree build
1385 t_cpu="arm"
1386 t_manufacturer="s3c2440"
1387 t_model="gigabeat-fx"
1390 41|gigabeats)
1391 target_id=26
1392 modelname="gigabeats"
1393 target="-DGIGABEAT_S"
1394 memory=64
1395 arm1136jfscc
1396 tool="$rootdir/tools/scramble -add=gigs"
1397 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1398 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1399 output="rockbox.gigabeat"
1400 appextra="recorder:gui"
1401 plugins="yes"
1402 swcodec="yes"
1403 toolset="$gigabeatbitmaptools mknkboot"
1404 boottool="$rootdir/tools/scramble -gigabeats"
1405 bootoutput="nk.bin"
1406 # architecture, manufacturer and model for the target-tree build
1407 t_cpu="arm"
1408 t_manufacturer="imx31"
1409 t_model="gigabeat-s"
1412 70|mrobe500)
1413 target_id=36
1414 modelname="mrobe500"
1415 target="-DMROBE_500"
1416 memory=64 # always
1417 arm926ejscc
1418 # tool="$rootdir/tools/scramble -add=m500"
1419 tool="cp "
1420 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1421 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1422 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1423 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1424 output="rockbox.mrobe500"
1425 appextra="recorder:gui"
1426 plugins="yes"
1427 swcodec="yes"
1428 toolset=$gigabeatbitmaptools
1429 boottool="cp "
1430 bootoutput="rockbox.mrboot"
1431 # architecture, manufacturer and model for the target-tree build
1432 t_cpu="arm"
1433 t_manufacturer="tms320dm320"
1434 t_model="mrobe-500"
1437 71|mrobe100)
1438 target_id=33
1439 modelname="mrobe100"
1440 target="-DMROBE_100"
1441 memory=32 # always
1442 arm7tdmicc
1443 tool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1444 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1445 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1446 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1447 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1448 output="rockbox.mi4"
1449 appextra="recorder:gui"
1450 plugins="yes"
1451 swcodec="yes"
1452 boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1453 bootoutput="pp5020.mi4"
1454 # toolset is the tools within the tools directory that we build for
1455 # this particular target.
1456 toolset=$scramblebitmaptools
1457 # architecture, manufacturer and model for the target-tree build
1458 t_cpu="arm"
1459 t_manufacturer="olympus"
1460 t_model="mrobe-100"
1463 80|logikdax)
1464 target_id=31
1465 modelname="logikdax"
1466 target="-DLOGIK_DAX"
1467 memory=2 # always
1468 arm946cc
1469 tool="$rootdir/tools/scramble -add=ldax"
1470 boottool="$rootdir/tools/scramble -tcc=crc"
1471 bootoutput="player.rom"
1472 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1473 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1474 output="rockbox.logik"
1475 appextra="recorder:gui"
1476 plugins=""
1477 swcodec="yes"
1478 # toolset is the tools within the tools directory that we build for
1479 # this particular target.
1480 toolset=$tccbitmaptools
1481 # architecture, manufacturer and model for the target-tree build
1482 t_cpu="arm"
1483 t_manufacturer="tcc77x"
1484 t_model="logikdax"
1487 90|creativezvm30gb)
1488 target_id=35
1489 modelname="creativezvm30"
1490 target="-DCREATIVE_ZVM"
1491 memory=64
1492 arm926ejscc
1493 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1494 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1495 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1496 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1497 tool="$rootdir/tools/scramble -creative=zvm"
1498 USE_ELF="yes"
1499 output="rockbox.zvm"
1500 appextra="recorder:gui"
1501 plugins=""
1502 swcodec="yes"
1503 toolset=$ipodbitmaptools
1504 boottool="$rootdir/tools/scramble -creative=zvm -no-ciff"
1505 bootoutput="rockbox.zvmboot"
1506 # architecture, manufacturer and model for the target-tree build
1507 t_cpu="arm"
1508 t_manufacturer="tms320dm320"
1509 t_model="creative-zvm"
1512 91|creativezvm60gb)
1513 target_id=40
1514 modelname="creativezvm60"
1515 target="-DCREATIVE_ZVM60GB"
1516 memory=64
1517 arm926ejscc
1518 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1519 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1520 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1521 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1522 tool="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1523 USE_ELF="yes"
1524 output="rockbox.zvm60"
1525 appextra="recorder:gui"
1526 plugins=""
1527 swcodec="yes"
1528 toolset=$ipodbitmaptools
1529 boottool="$rootdir/tools/scramble -creative=zvm60"
1530 bootoutput="rockbox.zvm60boot"
1531 # architecture, manufacturer and model for the target-tree build
1532 t_cpu="arm"
1533 t_manufacturer="tms320dm320"
1534 t_model="creative-zvm"
1537 92|creativezenvision)
1538 target_id=39
1539 modelname="creativezv"
1540 target="-DCREATIVE_ZV"
1541 memory=64
1542 arm926ejscc
1543 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1544 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1545 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1546 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1547 tool="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1548 USE_ELF="yes"
1549 output="rockbox.zv"
1550 appextra="recorder:gui"
1551 plugins=""
1552 swcodec="yes"
1553 toolset=$ipodbitmaptools
1554 boottool="$rootdir/tools/scramble -creative=zenvision"
1555 bootoutput="rockbox.zvboot"
1556 # architecture, manufacturer and model for the target-tree build
1557 t_cpu="arm"
1558 t_manufacturer="tms320dm320"
1559 t_model="creative-zvm"
1562 50|e200)
1563 target_id=23
1564 modelname="e200"
1565 target="-DSANSA_E200"
1566 memory=32 # supposedly
1567 arm7tdmicc
1568 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1569 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1570 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1571 output="rockbox.mi4"
1572 appextra="recorder:gui"
1573 plugins="yes"
1574 swcodec="yes"
1575 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1576 bootoutput="PP5022.mi4"
1577 # toolset is the tools within the tools directory that we build for
1578 # this particular target.
1579 toolset=$scramblebitmaptools
1580 # architecture, manufacturer and model for the target-tree build
1581 t_cpu="arm"
1582 t_manufacturer="sandisk"
1583 t_model="sansa-e200"
1586 51|e200r)
1587 # the e200R model is pretty much identical to the e200, it only has a
1588 # different option to the scramble tool when building a bootloader and
1589 # makes the bootloader output file name in all lower case.
1590 target_id=27
1591 modelname="e200r"
1592 target="-DSANSA_E200"
1593 memory=32 # supposedly
1594 arm7tdmicc
1595 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1596 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1597 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1598 output="rockbox.mi4"
1599 appextra="recorder:gui"
1600 plugins="yes"
1601 swcodec="yes"
1602 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1603 bootoutput="pp5022.mi4"
1604 # toolset is the tools within the tools directory that we build for
1605 # this particular target.
1606 toolset=$scramblebitmaptools
1607 # architecture, manufacturer and model for the target-tree build
1608 t_cpu="arm"
1609 t_manufacturer="sandisk"
1610 t_model="sansa-e200"
1613 52|c200)
1614 target_id=30
1615 modelname="c200"
1616 target="-DSANSA_C200"
1617 memory=32 # supposedly
1618 arm7tdmicc
1619 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1620 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1621 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1622 output="rockbox.mi4"
1623 appextra="recorder:gui"
1624 plugins="yes"
1625 swcodec="yes"
1626 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1627 bootoutput="firmware.mi4"
1628 # toolset is the tools within the tools directory that we build for
1629 # this particular target.
1630 toolset=$scramblebitmaptools
1631 # architecture, manufacturer and model for the target-tree build
1632 t_cpu="arm"
1633 t_manufacturer="sandisk"
1634 t_model="sansa-c200"
1637 53|m200)
1638 target_id=48
1639 modelname="m200"
1640 target="-DSANSA_M200"
1641 memory=1 # always
1642 arm946cc
1643 tool="$rootdir/tools/scramble -add=m200"
1644 boottool="$rootdir/tools/scramble -tcc=crc"
1645 bootoutput="player.rom"
1646 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1647 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1648 output="rockbox.m200"
1649 appextra="recorder:gui"
1650 plugins=""
1651 swcodec="yes"
1652 # toolset is the tools within the tools directory that we build for
1653 # this particular target.
1654 toolset=$tccbitmaptools
1655 # architecture, manufacturer and model for the target-tree build
1656 t_cpu="arm"
1657 t_manufacturer="tcc77x"
1658 t_model="m200"
1661 54|c100)
1662 target_id=42
1663 modelname="c100"
1664 target="-DSANSA_C100"
1665 memory=32 # unsure, must check
1666 arm946cc
1667 tool="$rootdir/tools/scramble -add=c100"
1668 boottool="$rootdir/tools/scramble -tcc=crc"
1669 bootoutput="player.rom"
1670 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1671 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1672 output="rockbox.c100"
1673 appextra="recorder:gui"
1674 plugins=""
1675 # toolset is the tools within the tools directory that we build for
1676 # this particular target.
1677 toolset=$tccbitmaptools
1678 # architecture, manufacturer and model for the target-tree build
1679 t_cpu="arm"
1680 t_manufacturer="tcc77x"
1681 t_model="c100"
1684 55|Clip|clip)
1685 target_id=50
1686 modelname="clip"
1687 target="-DSANSA_CLIP"
1688 memory=2
1689 arm9tdmicc
1690 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1691 bmp2rb_native="$bmp2rb_mono"
1692 tool="$rootdir/tools/scramble -add=clip"
1693 output="rockbox.sansa"
1694 bootoutput="bootloader-clip.sansa"
1695 appextra="recorder:gui"
1696 plugins=""
1697 swcodec="yes"
1698 toolset=$scramblebitmaptools
1699 t_cpu="arm"
1700 t_manufacturer="as3525"
1701 t_model="sansa-clip"
1705 56|e200v2)
1706 target_id=51
1707 modelname="e200v2"
1708 target="-DSANSA_E200V2"
1709 memory=8
1710 arm9tdmicc
1711 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1712 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1713 tool="$rootdir/tools/scramble -add=e2v2"
1714 output="rockbox.sansa"
1715 bootoutput="bootloader-e200v2.sansa"
1716 appextra="recorder:gui"
1717 plugins="yes"
1718 swcodec="yes"
1719 toolset=$scramblebitmaptools
1720 t_cpu="arm"
1721 t_manufacturer="as3525"
1722 t_model="sansa-e200v2"
1726 57|m200v2)
1727 target_id=52
1728 modelname="m200v2"
1729 target="-DSANSA_M200V2"
1730 memory=2
1731 arm9tdmicc
1732 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1733 bmp2rb_native="$bmp2rb_mono"
1734 tool="$rootdir/tools/scramble -add=m2v2"
1735 output="rockbox.sansa"
1736 bootoutput="bootloader-m200v2.sansa"
1737 appextra="recorder:gui"
1738 plugins=""
1739 toolset=$scramblebitmaptools
1740 t_cpu="arm"
1741 t_manufacturer="as3525"
1742 t_model="sansa-m200v2"
1746 58|fuze)
1747 target_id=53
1748 modelname="fuze"
1749 target="-DSANSA_FUZE"
1750 memory=2
1751 arm9tdmicc
1752 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1753 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1754 tool="$rootdir/tools/scramble -add=fuze"
1755 output="rockbox.sansa"
1756 bootoutput="bootloader-fuze.sansa"
1757 appextra="recorder:gui"
1758 plugins="yes"
1759 swcodec="yes"
1760 toolset=$scramblebitmaptools
1761 t_cpu="arm"
1762 t_manufacturer="as3525"
1763 t_model="sansa-fuze"
1767 60|tpj1022)
1768 target_id=25
1769 modelname="tpj1022"
1770 target="-DELIO_TPJ1022"
1771 memory=32 # always
1772 arm7tdmicc
1773 tool="$rootdir/tools/scramble -add tpj2"
1774 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1775 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1776 output="rockbox.elio"
1777 appextra="recorder:gui"
1778 plugins="yes"
1779 swcodec="yes"
1780 boottool="$rootdir/tools/scramble -mi4v2"
1781 bootoutput="pp5020.mi4"
1782 # toolset is the tools within the tools directory that we build for
1783 # this particular target.
1784 toolset=$scramblebitmaptools
1785 # architecture, manufacturer and model for the target-tree build
1786 t_cpu="arm"
1787 t_manufacturer="tatung"
1788 t_model="tpj1022"
1791 100|sa9200)
1792 target_id=41
1793 modelname="sa9200"
1794 target="-DPHILIPS_SA9200"
1795 memory=32 # supposedly
1796 arm7tdmicc
1797 tool="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1798 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1799 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1800 output="rockbox.mi4"
1801 appextra="recorder:gui"
1802 plugins=""
1803 swcodec="yes"
1804 boottool="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1805 bootoutput="FWImage.ebn"
1806 # toolset is the tools within the tools directory that we build for
1807 # this particular target.
1808 toolset=$scramblebitmaptools
1809 # architecture, manufacturer and model for the target-tree build
1810 t_cpu="arm"
1811 t_manufacturer="philips"
1812 t_model="sa9200"
1815 101|hdd1630)
1816 target_id=43
1817 modelname="hdd1630"
1818 target="-DPHILIPS_HDD1630"
1819 memory=32 # supposedly
1820 arm7tdmicc
1821 tool="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1822 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1823 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1824 output="rockbox.mi4"
1825 appextra="recorder:gui"
1826 plugins=""
1827 swcodec="yes"
1828 boottool="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1829 bootoutput="FWImage.ebn"
1830 # toolset is the tools within the tools directory that we build for
1831 # this particular target.
1832 toolset=$scramblebitmaptools
1833 # architecture, manufacturer and model for the target-tree build
1834 t_cpu="arm"
1835 t_manufacturer="philips"
1836 t_model="hdd1630"
1839 110|meizum6sl)
1840 target_id=49
1841 modelname="meizum6sl"
1842 target="-DMEIZU_M6SL"
1843 memory=16 # always
1844 arm940tbecc
1845 tool="cp"
1846 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1847 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1848 output="rockbox.meizu"
1849 appextra="recorder:gui"
1850 plugins="no" #FIXME
1851 swcodec="yes"
1852 toolset=$genericbitmaptools
1853 boottool="cp"
1854 bootoutput="rockboot.ebn"
1855 # architecture, manufacturer and model for the target-tree build
1856 t_cpu="arm"
1857 t_manufacturer="s5l8700"
1858 t_model="meizu-m6sl"
1861 111|meizum6sp)
1862 target_id=46
1863 modelname="meizum6sp"
1864 target="-DMEIZU_M6SP"
1865 memory=16 # always
1866 arm940tbecc
1867 tool="cp"
1868 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1869 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1870 output="rockbox.meizu"
1871 appextra="recorder:gui"
1872 plugins="no" #FIXME
1873 swcodec="yes"
1874 toolset=$genericbitmaptools
1875 boottool="cp"
1876 bootoutput="rockboot.ebn"
1877 # architecture, manufacturer and model for the target-tree build
1878 t_cpu="arm"
1879 t_manufacturer="s5l8700"
1880 t_model="meizu-m6sp"
1883 112|meizum3)
1884 target_id=47
1885 modelname="meizum3"
1886 target="-DMEIZU_M3"
1887 memory=16 # always
1888 arm940tbecc
1889 tool="cp"
1890 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1891 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1892 output="rockbox.meizu"
1893 appextra="recorder:gui"
1894 plugins="no" #FIXME
1895 swcodec="yes"
1896 toolset=$genericbitmaptools
1897 boottool="cp"
1898 bootoutput="rockboot.ebn"
1899 # architecture, manufacturer and model for the target-tree build
1900 t_cpu="arm"
1901 t_manufacturer="s5l8700"
1902 t_model="meizu-m3"
1905 120|ondavx747)
1906 target_id=44
1907 modelname="ondavx747"
1908 target="-DONDA_VX747"
1909 memory=16 #FIXME
1910 mipselcc
1911 tool="cp"
1912 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1913 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1914 output="rockbox.vx747"
1915 appextra="recorder:gui"
1916 plugins="no" #FIXME
1917 swcodec="yes"
1918 toolset=$genericbitmaptools
1919 boottool="cp"
1920 bootoutput="rockboot.vx747"
1921 # architecture, manufacturer and model for the target-tree build
1922 t_cpu="mips"
1923 t_manufacturer="ingenic_jz47xx"
1924 t_model="onda_vx747"
1927 121|ondavx767)
1928 target_id=45
1929 modelname="ondavx767"
1930 target="-DONDA_VX767"
1931 memory=16 #FIXME
1932 mipselcc
1933 tool="cp"
1934 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1935 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1936 output="rockbox.vx767"
1937 appextra="recorder:gui"
1938 plugins="no" #FIXME
1939 swcodec="yes"
1940 toolset=$genericbitmaptools
1941 boottool="cp"
1942 bootoutput="rockboot.vx767"
1943 # architecture, manufacturer and model for the target-tree build
1944 t_cpu="mips"
1945 t_manufacturer="ingenic_jz47xx"
1946 t_model="onda_vx767"
1949 echo "Please select a supported target platform!"
1950 exit
1953 esac
1955 echo "Platform set to $modelname"
1958 #remove start
1959 ############################################################################
1960 # Amount of memory, for those that can differ. They have $memory unset at
1961 # this point.
1964 if [ -z "$memory" ]; then
1965 case $target_id in
1967 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1968 if [ "1" != `parse_args --ram` ]; then
1969 size=`parse_args --ram`;
1970 else
1971 size=`input`;
1973 case $size in
1974 60|64)
1975 memory="64"
1978 memory="32"
1980 esac
1983 echo "Enter size of your RAM (in MB): (Defaults to 2)"
1984 if [ "1" != `parse_args --ram` ]; then
1985 size=`parse_args --ram`;
1986 else
1987 size=`input`;
1989 case $size in
1991 memory="8"
1994 memory="2"
1996 esac
1998 esac
1999 echo "Memory size selected: $memory MB"
2000 echo ""
2002 #remove end
2004 ##################################################################
2005 # Figure out build "type"
2008 # the ifp7x0 is the only platform that supports building a gdb stub like
2009 # this
2010 case $modelname in
2011 ifp7xx)
2012 gdbstub="(G)DB stub, "
2014 e200r|e200)
2015 gdbstub="(I)installer, "
2017 c200)
2018 gdbstub="(E)raser, "
2022 esac
2023 if [ "1" != `parse_args --type` ]; then
2024 option=`parse_args --type`;
2025 else
2026 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2027 option=`input`;
2030 case $option in
2031 [Ii])
2032 appsdir='\$(ROOTDIR)/bootloader'
2033 apps="bootloader"
2034 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2035 bootloader="1"
2036 echo "e200R-installer build selected"
2038 [Ee])
2039 appsdir='\$(ROOTDIR)/bootloader'
2040 apps="bootloader"
2041 echo "C2(4)0 or C2(5)0"
2042 variant=`input`
2043 case $variant in
2045 extradefines="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2046 echo "c240 eraser build selected"
2049 extradefines="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2050 echo "c240 eraser build selected"
2052 esac
2053 bootloader="1"
2054 echo "c200 eraser build selected"
2056 [Bb])
2057 if test $t_manufacturer = "archos"; then
2058 # Archos SH-based players do this somewhat differently for
2059 # some reason
2060 appsdir='\$(ROOTDIR)/flash/bootbox'
2061 apps="bootbox"
2062 else
2063 appsdir='\$(ROOTDIR)/bootloader'
2064 apps="bootloader"
2065 flash=""
2066 if test -n "$boottool"; then
2067 tool="$boottool"
2069 if test -n "$bootoutput"; then
2070 output=$bootoutput
2073 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
2074 bootloader="1"
2075 echo "Bootloader build selected"
2077 [Ss])
2078 debug="-DDEBUG"
2079 simulator="yes"
2080 extradefines="-DSIMULATOR"
2081 echo "Simulator build selected"
2083 [Aa])
2084 echo "Advanced build selected"
2085 whichadvanced
2087 [Gg])
2088 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2089 appsdir='\$(ROOTDIR)/gdb'
2090 apps="stub"
2091 case $modelname in
2092 ifp7xx)
2093 output="stub.wma"
2097 esac
2098 echo "GDB stub build selected"
2100 [Mm])
2101 toolset='';
2102 apps="manual"
2103 echo "Manual build selected"
2106 if [ "$modelname" = "e200r" ]; then
2107 echo "Do not use the e200R target for regular builds. Use e200 instead."
2108 exit
2110 debug=""
2111 echo "Normal build selected"
2114 esac
2115 # to be able running "make manual" from non-manual configuration
2116 case $modelname in
2117 fmrecorder)
2118 manualdev="recorderv2fm"
2120 recorderv2)
2121 manualdev="recorderv2fm"
2123 h1??)
2124 manualdev="h1xx"
2126 ipodmini2g)
2127 manualdev="ipodmini"
2130 manualdev=$modelname
2132 esac
2134 if [ -z "$debug" ]; then
2135 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
2138 echo "Using source code root directory: $rootdir"
2140 # this was once possible to change at build-time, but no more:
2141 language="english"
2143 uname=`uname`
2145 if [ "yes" = "$simulator" ]; then
2146 # setup compiler and things for simulator
2147 simcc
2149 if [ -d "archos" ]; then
2150 echo "sub directory archos already present"
2151 else
2152 mkdir archos
2153 echo "created an archos subdirectory for simulating the hard disk"
2157 # Now, figure out version number of the (gcc) compiler we are about to use
2158 gccver=`$CC -dumpversion`;
2160 # figure out the binutil version too and display it, mostly for the build
2161 # system etc to be able to see it easier
2162 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2164 if [ -z "$gccver" ]; then
2165 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2166 echo "WARNING: this may cause your build to fail since we cannot do the"
2167 echo "WARNING: checks we want now."
2168 else
2170 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2171 # DEPEND on it
2173 num1=`echo $gccver | cut -d . -f1`
2174 num2=`echo $gccver | cut -d . -f2`
2175 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2177 # This makes:
2178 # 3.3.X => 303
2179 # 3.4.X => 304
2180 # 2.95.3 => 295
2182 echo "Using $CC $gccver ($gccnum)"
2184 if test "$gccnum" -ge "400"; then
2185 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2186 # so we ignore that warnings for now
2187 # -Wno-pointer-sign
2188 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
2191 if test "$gccnum" -ge "401"; then
2192 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2193 # will break strict-aliasing rules"
2195 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
2198 if test "$gccnum" -ge "402"; then
2199 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2200 # and later would throw it for several valid cases
2201 GCCOPTS="$GCCOPTS -Wno-override-init"
2204 case $prefix in
2206 # simulator
2208 i586-mingw32msvc-)
2209 # cross-compile for win32
2212 # Verify that the cross-compiler is of a recommended version!
2213 if test "$gccver" != "$gccchoice"; then
2214 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2215 echo "WARNING: version $gccchoice!"
2216 echo "WARNING: This may cause your build to fail since it may be a version"
2217 echo "WARNING: that isn't functional or known to not be the best choice."
2218 echo "WARNING: If you suffer from build problems, you know that this is"
2219 echo "WARNING: a likely source for them..."
2222 esac
2227 echo "Using $LD $ldver"
2229 # check the compiler for SH platforms
2230 if test "$CC" = "sh-elf-gcc"; then
2231 if test "$gccnum" -lt "400"; then
2232 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2233 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2234 else
2235 # figure out patch status
2236 gccpatch=`$CC --version`;
2238 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
2239 echo "gcc $gccver is rockbox patched"
2240 # then convert -O to -Os to get smaller binaries!
2241 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2242 else
2243 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2244 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2249 if test "$CC" = "m68k-elf-gcc"; then
2250 # convert -O to -Os to get smaller binaries!
2251 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2254 if [ "1" != `parse_args --ccache` ]; then
2255 echo "Enable ccache for building"
2256 ccache="ccache"
2257 else
2258 if [ "1" = `parse_args --no-ccache` ]; then
2259 ccache=`findtool ccache`
2260 if test -n "$ccache"; then
2261 echo "Found and uses ccache ($ccache)"
2266 # figure out the full path to the various commands if possible
2267 HOSTCC=`findtool gcc --lit`
2268 HOSTAR=`findtool ar --lit`
2269 CC=`findtool ${CC} --lit`
2270 LD=`findtool ${AR} --lit`
2271 AR=`findtool ${AR} --lit`
2272 AS=`findtool ${AS} --lit`
2273 OC=`findtool ${OC} --lit`
2274 WINDRES=`findtool ${WINDRES} --lit`
2275 DLLTOOL=`findtool ${DLLTOOL} --lit`
2276 DLLWRAP=`findtool ${DLLWRAP} --lit`
2277 RANLIB=`findtool ${RANLIB} --lit`
2279 if test -n "$ccache"; then
2280 CC="$ccache $CC"
2283 if test "X$endian" = "Xbig"; then
2284 defendian="ROCKBOX_BIG_ENDIAN"
2285 else
2286 defendian="ROCKBOX_LITTLE_ENDIAN"
2289 sed > autoconf.h \
2290 -e "s,@ENDIAN@,${defendian},g" \
2291 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2292 -e "s,@config_rtc@,$config_rtc,g" \
2293 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2294 <<EOF
2295 /* This header was made by configure */
2296 #ifndef __BUILD_AUTOCONF_H
2297 #define __BUILD_AUTOCONF_H
2299 /* Define endianess for the target or simulator platform */
2300 #define @ENDIAN@ 1
2302 /* Define this if you build rockbox to support the logf logging and display */
2303 #undef ROCKBOX_HAS_LOGF
2305 /* optional defines for RTC mod for h1x0 */
2306 @config_rtc@
2307 @have_rtc_alarm@
2309 #endif /* __BUILD_AUTOCONF_H */
2312 if test -n "$t_cpu"; then
2313 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2314 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2315 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2316 GCCOPTS="$GCCOPTS"
2319 if test "$simulator" = "yes"; then
2320 # add simul make stuff on the #SIMUL# line
2321 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2322 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2323 else
2324 # delete the lines that match
2325 simmagic1='/@SIMUL1@/D'
2326 simmagic2='/@SIMUL2@/D'
2329 if test "$swcodec" = "yes"; then
2330 voicetoolset="rbspeexenc voicefont wavtrim"
2331 else
2332 voicetoolset="voicefont wavtrim"
2335 if test "$apps" = "apps"; then
2336 # only when we build "real" apps we build the .lng files
2337 buildlangs="langs"
2340 sed > Makefile \
2341 -e "s,@ROOTDIR@,${rootdir},g" \
2342 -e "s,@DEBUG@,${debug},g" \
2343 -e "s,@MEMORY@,${memory},g" \
2344 -e "s,@TARGET_ID@,${target_id},g" \
2345 -e "s,@TARGET@,${target},g" \
2346 -e "s,@CPU@,${t_cpu},g" \
2347 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2348 -e "s,@MODELNAME@,${modelname},g" \
2349 -e "s,@LANGUAGE@,${language},g" \
2350 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2351 -e "s,@PWD@,${pwd},g" \
2352 -e "s,@HOSTCC@,${HOSTCC},g" \
2353 -e "s,@HOSTAR@,${HOSTAR},g" \
2354 -e "s,@CC@,${CC},g" \
2355 -e "s,@LD@,${LD},g" \
2356 -e "s,@AR@,${AR},g" \
2357 -e "s,@AS@,${AS},g" \
2358 -e "s,@OC@,${OC},g" \
2359 -e "s,@WINDRES@,${WINDRES},g" \
2360 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2361 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2362 -e "s,@RANLIB@,${RANLIB},g" \
2363 -e "s,@TOOL@,${tool},g" \
2364 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2365 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2366 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2367 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2368 -e "s,@OUTPUT@,${output},g" \
2369 -e "s,@APPEXTRA@,${appextra},g" \
2370 -e "s,@ARCHOSROM@,${archosrom},g" \
2371 -e "s,@FLASHFILE@,${flash},g" \
2372 -e "s,@PLUGINS@,${plugins},g" \
2373 -e "s,@CODECS@,${swcodec},g" \
2374 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2375 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2376 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2377 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2378 -e "s!@LDOPTS@!${LDOPTS}!g" \
2379 -e "s,@LOADADDRESS@,${loadaddress},g" \
2380 -e "s,@EXTRADEF@,${extradefines},g" \
2381 -e "s,@APPSDIR@,${appsdir},g" \
2382 -e "s,@FIRMDIR@,${firmdir},g" \
2383 -e "s,@TOOLSDIR@,${toolsdir},g" \
2384 -e "s,@APPS@,${apps},g" \
2385 -e "s,@SIMVER@,${simver},g" \
2386 -e "s,@GCCVER@,${gccver},g" \
2387 -e "s,@GCCNUM@,${gccnum},g" \
2388 -e "s,@UNAME@,${uname},g" \
2389 -e "s,@ENDIAN@,${defendian},g" \
2390 -e "s,@TOOLSET@,${toolset},g" \
2391 -e "${simmagic1}" \
2392 -e "${simmagic2}" \
2393 -e "s,@MANUALDEV@,${manualdev},g" \
2394 -e "s,@ENCODER@,${ENC_CMD},g" \
2395 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2396 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2397 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2398 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2399 -e "s,@LANGS@,${buildlangs},g" \
2400 -e "s,@USE_ELF@,${USE_ELF},g" \
2401 <<EOF
2402 ## Automatically generated. http://www.rockbox.org/
2404 ifndef V
2405 SILENT=@
2406 else
2407 VERBOSEOPT=-v
2408 endif
2410 # old 'make' versions don't have the built-in 'info' function
2411 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
2412 ifeq (\$(call info),old)
2413 export info=echo "\$\$(1)";
2414 endif
2416 export ROOTDIR=@ROOTDIR@
2417 export FIRMDIR=@FIRMDIR@
2418 export APPSDIR=@APPSDIR@
2419 export TOOLSDIR=@TOOLSDIR@
2420 export DOCSDIR=\$(ROOTDIR)/docs
2421 export MANUALDIR=\${ROOTDIR}/manual
2422 export DEBUG=@DEBUG@
2423 export MODELNAME=@MODELNAME@
2424 export ARCHOSROM=@ARCHOSROM@
2425 export FLASHFILE=@FLASHFILE@
2426 export TARGET_ID=@TARGET_ID@
2427 export TARGET=@TARGET@
2428 export CPU=@CPU@
2429 export MANUFACTURER=@MANUFACTURER@
2430 export OBJDIR=@PWD@
2431 export BUILDDIR=@PWD@
2432 export LANGUAGE=@LANGUAGE@
2433 export VOICELANGUAGE=@VOICELANGUAGE@
2434 export MEMORYSIZE=@MEMORY@
2435 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
2436 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2437 export MKFIRMWARE=@TOOL@
2438 export BMP2RB_MONO=@BMP2RB_MONO@
2439 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2440 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2441 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2442 export BINARY=@OUTPUT@
2443 export APPEXTRA=@APPEXTRA@
2444 export ENABLEDPLUGINS=@PLUGINS@
2445 export SOFTWARECODECS=@CODECS@
2446 export EXTRA_DEFINES=@EXTRADEF@
2447 export HOSTCC=@HOSTCC@
2448 export HOSTAR=@HOSTAR@
2449 export CC=@CC@
2450 export LD=@LD@
2451 export AR=@AR@
2452 export AS=@AS@
2453 export OC=@OC@
2454 export WINDRES=@WINDRES@
2455 export DLLTOOL=@DLLTOOL@
2456 export DLLWRAP=@DLLWRAP@
2457 export RANLIB=@RANLIB@
2458 export PROFILE_OPTS=@PROFILE_OPTS@
2459 export SIMVER=@SIMVER@
2460 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2461 export GCCOPTS=@GCCOPTS@
2462 export TARGET_INC=@TARGET_INC@
2463 export LOADADDRESS=@LOADADDRESS@
2464 export SHARED_FLAG=@SHARED_FLAG@
2465 export LDOPTS=@LDOPTS@
2466 export GCCVER=@GCCVER@
2467 export GCCNUM=@GCCNUM@
2468 export UNAME=@UNAME@
2469 export MANUALDEV=@MANUALDEV@
2470 export TTS_OPTS=@TTS_OPTS@
2471 export TTS_ENGINE=@TTS_ENGINE@
2472 export ENC_OPTS=@ENC_OPTS@
2473 export ENCODER=@ENCODER@
2474 export USE_ELF=@USE_ELF@
2476 # Do not print "Entering directory ..."
2477 MAKEFLAGS += --no-print-directory
2479 .PHONY: all clean tags zip tools manual bin build info langs
2481 all: info
2483 info: build
2484 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
2486 build: tools @LANGS@
2487 @SIMUL1@
2488 @SIMUL2@
2489 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2490 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
2492 bin: tools @LANGS@
2493 @SIMUL1@
2494 @SIMUL2@
2495 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2496 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
2498 rocks: tools
2499 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
2501 veryclean: clean toolsclean
2503 toolsclean:
2504 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
2506 clean:
2507 \$(SILENT)echo Cleaning build directory
2508 \$(SILENT)rm -rf rockbox.zip rockbox.7z rockbox.tar rockbox.tar.gz \
2509 rockbox.tar.bz2 TAGS @APPS@ firmware comsim sim lang.[ch] \
2510 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
2511 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
2512 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
2513 voicefontids *.wav *.mp3 *.voice max_language_size.h
2515 tools:
2516 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
2518 voicetools:
2519 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
2521 tags:
2522 \$(SILENT)rm -f TAGS
2523 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
2524 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
2525 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
2526 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
2528 fontzip:
2529 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
2531 zip:
2532 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2533 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2535 mapzip:
2536 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
2538 fullzip:
2539 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2540 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
2542 7zip:
2543 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2544 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a -mx=9" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2546 tar:
2547 \$(SILENT)rm -f rockbox.tar
2548 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2549 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2551 bzip2: tar
2552 \$(SILENT)bzip2 -f9 rockbox.tar
2554 gzip: tar
2555 \$(SILENT)gzip -f9 rockbox.tar
2557 langs: features
2558 \$(SILENT)mkdir -p \$(BUILDDIR)/apps/lang
2559 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/lang OBJDIR=\$(BUILDDIR)/apps/lang
2561 manual: manual-pdf
2562 manual-pdf:
2563 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
2564 manual-html:
2565 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
2566 manual-zhtml: manual-zip
2567 manual-txt:
2568 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2569 manual-ztxt:
2570 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2571 manual-zip:
2572 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2574 features: tools
2575 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2577 help:
2578 @echo "A few helpful make targets"
2579 @echo ""
2580 @echo "all - builds a full Rockbox (default), including tools"
2581 @echo "bin - builds only the Rockbox.<target name> file"
2582 @echo "rocks - builds only plugins and codecs"
2583 @echo "clean - cleans a build directory (not tools)"
2584 @echo "veryclean - cleans the build and tools directories"
2585 @echo "manual - builds a manual"
2586 @echo "manual-html - HTML manual"
2587 @echo "manual-zip - HTML manual (zipped)"
2588 @echo "manual-txt - txt manual"
2589 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2590 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2591 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2592 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2593 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2594 @echo "fontzip - creates rockbox-fonts.zip"
2595 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2596 @echo "tools - builds the tools only"
2597 @echo "voicetools - builds the voice tools only"
2598 @echo "install - installs your build (for simulator builds only, no fonts)"
2599 @echo "fullinstall - installs your build (for simulator builds only, with fonts)"
2603 if [ "yes" = "$simulator" ]; then
2605 cat >> Makefile <<EOF
2607 install:
2608 @echo "installing your build in your archos dir"
2609 \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2610 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 0 \$(TARGET) \$(BINARY)
2612 fullinstall:
2613 @echo "installing a full setup in your archos dir"
2614 \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2615 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 2 \$(TARGET) \$(BINARY)
2620 if [ "yes" = "$voice" ]; then
2622 cat >> Makefile <<EOF
2624 voice: voicetools features
2625 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2626 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 \\
2631 echo "Created Makefile"