mpegplayer: End of data would not be detected correctly if mpeg parser was in a sync...
[kugel-rb.git] / tools / configure
blobf0004fd2bad16e36fcda7905d278e1acd74ada18
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*
177 shcc () {
178 prefixtools sh-elf-
179 GCCOPTS="$CCOPTS -m1"
180 GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
181 endian="big"
184 calmrisccc () {
185 prefixtools calmrisc16-unknown-elf-
186 GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
187 GCCOPTIMIZE="-fomit-frame-pointer"
188 endian="big"
191 coldfirecc () {
192 prefixtools m68k-elf-
193 GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
194 GCCOPTIMIZE="-fomit-frame-pointer"
195 endian="big"
198 arm7tdmicc () {
199 prefixtools arm-elf-
200 GCCOPTS="$CCOPTS -mcpu=arm7tdmi"
201 if test "X$1" != "Xshort"; then
202 GCCOPTS="$GCCOPTS -mlong-calls"
204 GCCOPTIMIZE="-fomit-frame-pointer"
205 endian="little"
208 arm9tdmicc () {
209 prefixtools arm-elf-
210 GCCOPTS="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
211 GCCOPTIMIZE="-fomit-frame-pointer"
212 endian="little"
215 arm946cc () {
216 prefixtools arm-elf-
217 GCCOPTS="$CCOPTS -mcpu=arm9e -mlong-calls"
218 GCCOPTIMIZE="-fomit-frame-pointer"
219 endian="little"
222 arm926ejscc () {
223 prefixtools arm-elf-
224 GCCOPTS="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
225 GCCOPTIMIZE="-fomit-frame-pointer"
226 endian="little"
229 whichadvanced () {
230 ##################################################################
231 # Prompt for specific developer options
233 echo ""
234 echo "Enter your developer options (press enter when done)"
235 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
236 if [ "$memory" = "2" ]; then
237 echo -n ", (8)MB MOD"
239 if [ "$modelname" = "h120" ]; then
240 echo -n ", (R)TC MOD"
242 echo ""
244 cont=1
246 while [ $cont = "1" ]; do
248 option=`input`;
250 case $option in
251 [Dd])
252 if [ "yes" = "$profile" ]; then
253 echo "Debug is incompatible with profiling"
254 else
255 echo "define DEBUG"
256 use_debug="yes"
259 [Ll])
260 echo "logf() support enabled"
261 logf="yes"
263 [Ss])
264 echo "Simulator build enabled"
265 simulator="yes"
267 [Pp])
268 if [ "yes" = "$use_debug" ]; then
269 echo "Profiling is incompatible with debug"
270 else
271 echo "Profiling support is enabled"
272 profile="yes"
275 [Vv])
276 echo "Voice build selected"
277 voice="yes"
280 if [ "$memory" = "2" ]; then
281 memory="8"
282 echo "Memory size selected: 8MB"
283 else
284 cont=0
287 [Rr])
288 if [ "$modelname" = "h120" ]; then
289 config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
290 have_rtc_alarm="#define HAVE_RTC_ALARM"
291 echo "RTC functions enabled (DS1339/DS3231)"
292 else
293 cont=0
297 cont=0
299 esac
300 done
301 echo "done"
303 if [ "yes" = "$voice" ]; then
304 # Ask about languages to build
305 echo "Select a number for the language to use (default is english)"
306 # The multiple-language feature is currently broken
307 # echo "You may enter a comma-separated list of languages to build"
309 picklang
310 voicelanguage=`whichlang`
312 if [ -z "$voicelanguage" ]; then
313 # pick a default
314 voicelanguage="english"
316 echo "Voice language set to $voicelanguage"
318 # Configure encoder and TTS engine for each language
319 for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
320 voiceconfig "$thislang"
321 done
323 if [ "yes" = "$use_debug" ]; then
324 debug="-DDEBUG"
325 GCCOPTS="$GCCOPTS -g -DDEBUG"
327 if [ "yes" = "$logf" ]; then
328 use_logf="#define ROCKBOX_HAS_LOGF 1"
330 if [ "yes" = "$simulator" ]; then
331 debug="-DDEBUG"
332 extradefines="$extradefines -DSIMULATOR"
334 if [ "yes" = "$profile" ]; then
335 extradefines="$extradefines -DRB_PROFILE"
336 PROFILE_OPTS="-finstrument-functions"
340 # Configure voice settings
341 voiceconfig () {
342 thislang=$1
343 echo "Building $thislang voice for $modelname. Select options"
344 echo ""
346 if [ -f "`which flite`" ]; then
347 FLITE="F(l)ite "
348 FLITE_OPTS=""
349 DEFAULT_TTS="flite"
350 DEFAULT_TTS_OPTS=$FLITE_OPTS
351 DEFAULT_NOISEFLOOR="500"
352 DEFAULT_CHOICE="L"
354 if [ -f "`which espeak`" ]; then
355 ESPEAK="(e)Speak "
356 ESPEAK_OPTS=""
357 DEFAULT_TTS="espeak"
358 DEFAULT_TTS_OPTS=$ESPEAK_OPTS
359 DEFAULT_NOISEFLOOR="500"
360 DEFAULT_CHOICE="e"
362 if [ -f "`which festival`" ]; then
363 FESTIVAL="(F)estival "
364 case "$thislang" in
365 "italiano")
366 FESTIVAL_OPTS="--language italian"
368 "espanol")
369 FESTIVAL_OPTS="--language spanish"
371 "finnish")
372 FESTIVAL_OPTS="--language finnish"
374 "czech")
375 FESTIVAL_OPTS="--language czech"
378 FESTIVAL_OPTS=""
380 esac
381 DEFAULT_TTS="festival"
382 DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
383 DEFAULT_NOISEFLOOR="500"
384 DEFAULT_CHOICE="F"
386 if [ -f "`which swift`" ]; then
387 SWIFT="S(w)ift "
388 SWIFT_OPTS=""
389 DEFAULT_TTS="swift"
390 DEFAULT_TTS_OPTS=$SWIFT_OPTS
391 DEFAULT_NOISEFLOOR="500"
392 DEFAULT_CHOICE="w"
394 # Allow SAPI if Windows is in use
395 if [ -f "`which winver`" ]; then
396 SAPI="(S)API "
397 SAPI_OPTS=""
398 DEFAULT_TTS="sapi"
399 DEFAULT_TTS_OPTS=$SAPI_OPTS
400 DEFAULT_NOISEFLOOR="500"
401 DEFAULT_CHOICE="S"
404 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
405 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
406 exit
409 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
410 option=`input`
411 case "$option" in
412 [Ll])
413 TTS_ENGINE="flite"
414 NOISEFLOOR="500" # TODO: check this value
415 TTS_OPTS=$FLITE_OPTS
417 [Ee])
418 TTS_ENGINE="espeak"
419 NOISEFLOOR="500"
420 TTS_OPTS=$ESPEAK_OPTS
422 [Ff])
423 TTS_ENGINE="festival"
424 NOISEFLOOR="500"
425 TTS_OPTS=$FESTIVAL_OPTS
427 [Ss])
428 TTS_ENGINE="sapi"
429 NOISEFLOOR="500"
430 TTS_OPTS=$SAPI_OPTS
432 [Ww])
433 TTS_ENGINE="swift"
434 NOISEFLOOR="500"
435 TTS_OPTS=$SWIFT_OPTS
438 TTS_ENGINE=$DEFAULT_TTS
439 TTS_OPTS=$DEFAULT_TTS_OPTS
440 NOISEFLOOR=$DEFAULT_NOISEFLOOR
441 esac
442 echo "Using $TTS_ENGINE for TTS"
444 # Allow the user to input manual commandline options
445 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
446 USER_TTS_OPTS=`input`
447 if [ -n "$USER_TTS_OPTS" ]; then
448 TTS_OPTS="$USER_TTS_OPTS"
451 echo ""
453 if [ "$swcodec" = "yes" ]; then
454 ENCODER="rbspeexenc"
455 ENC_CMD="rbspeexenc"
456 ENC_OPTS="-q 4 -c 10"
457 else
458 if [ -f "`which lame`" ]; then
459 ENCODER="lame"
460 ENC_CMD="lame"
461 ENC_OPTS="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
462 else
463 echo "You need LAME in the system path to build voice files for"
464 echo "HWCODEC targets."
465 exit
469 echo "Using $ENCODER for encoding voice clips"
471 # Allow the user to input manual commandline options
472 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
473 USER_ENC_OPTS=`input`
474 if [ -n "$USER_ENC_OPTS" ]; then
475 ENC_OPTS=$USER_ENC_OPTS
478 TEMPDIR="${pwd}"
479 if [ -f "`which cygpath`" ]; then
480 TEMPDIR=`cygpath . -a -w`
484 picklang() {
485 # figure out which languages that are around
486 for file in $rootdir/apps/lang/*.lang; do
487 clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
488 langs="$langs $clean"
489 done
491 num=1
492 for one in $langs; do
493 echo "$num. $one"
494 num=`expr $num + 1`
495 done
497 read pick
500 whichlang() {
501 output=""
502 # Allow the user to pass a comma-separated list of langauges
503 for thispick in `echo $pick | sed 's/,/ /g'`; do
504 num=1
505 for one in $langs; do
506 # Accept both the language number and name
507 if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
508 if [ "$output" = "" ]; then
509 output=$one
510 else
511 output=$output,$one
514 num=`expr $num + 1`
515 done
516 done
517 echo $output
520 opt=$1
522 if test "$opt" = "--help"; then
523 echo "Rockbox configure script."
524 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
525 echo "Do *NOT* run this within the tools directory!"
526 echo ""
527 echo "Usage: configure [--ccache][--no-ccache]"
528 exit
531 if test -r "configure"; then
532 # this is a check for a configure script in the current directory, it there
533 # is one, try to figure out if it is this one!
535 if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
536 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
537 echo "It will only cause you pain and grief. Instead do this:"
538 echo ""
539 echo " cd .."
540 echo " mkdir build-dir"
541 echo " cd build-dir"
542 echo " ../tools/configure"
543 echo ""
544 echo "Much happiness will arise from this. Enjoy"
545 exit
549 # get our current directory
550 pwd=`pwd`;
552 if { echo $pwd | grep " "; } then
553 echo "You're running this script in a path that contains space. The build"
554 echo "system is unfortunately not clever enough to deal with this. Please"
555 echo "run the script from a different path, rename the path or fix the build"
556 echo "system!"
557 exit
560 if [ -z "$rootdir" ]; then
561 ##################################################################
562 # Figure out where the source code root is!
564 rootdir=`dirname $0`/../
566 #####################################################################
567 # Convert the possibly relative directory name to an absolute version
569 now=`pwd`
570 cd $rootdir
571 rootdir=`pwd`
573 # cd back to the build dir
574 cd $now
577 apps="apps"
578 appsdir='\$(ROOTDIR)/apps'
579 firmdir='\$(ROOTDIR)/firmware'
580 toolsdir='\$(ROOTDIR)/tools'
583 ##################################################################
584 # Figure out target platform
587 echo "Enter target platform:"
588 cat <<EOF
589 ==Archos== ==iriver== ==Apple iPod==
590 0) Player/Studio 10) H120/H140 20) Color/Photo
591 1) Recorder 11) H320/H340 21) Nano
592 2) FM Recorder 12) iHP-100/110/115 22) Video
593 3) Recorder v2 13) iFP-790 23) 3G
594 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
595 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
596 6) AV300 26) Mini 2G
597 27) 1G, 2G
599 ==iAudio== ==Toshiba== ==SanDisk==
600 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
601 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
602 32) 7 52) Sansa c200
603 33) Cowon D2
605 ==Tatung== ==Olympus== ==Logik==
606 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
607 71) M:Robe 100
610 buildfor=`input`;
612 # Set of tools built for all target platforms:
613 toolset="rdf2binary convbdf codepages"
615 # Toolsets for some target families:
616 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
617 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
618 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
619 ipodbitmaptools="$toolset scramble bmp2rb"
620 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
621 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
622 # generic is used by IFP, H10, Sansa-e200
623 genericbitmaptools="$toolset bmp2rb"
626 # ---- For each target ----
628 # *Variables*
629 # target_id: a unique number identifying this target, IS NOT the menu number.
630 # Just use the currently highest number+1 when you add a new
631 # target.
632 # modelname: short model name used all over to identify this target
633 # memory: number of megabytes of RAM this target has. If the amount can
634 # be selected by the size prompt, let memory be unset here
635 # target: -Ddefine passed to the build commands to make the correct
636 # config-*.h file get included etc
637 # tool: the tool that takes a plain binary and converts that into a
638 # working "firmware" file for your target
639 # output: the final output file name
640 # boottool: the tool that takes a plain binary and generates a bootloader
641 # file for your target (or blank to use $tool)
642 # bootoutput:the final output file name for the bootloader (or blank to use
643 # $output)
644 # appextra: passed to the APPEXTRA variable in the Makefiles.
645 # TODO: add proper explanation
646 # archosrom: used only for Archos targets that build a special flashable .ucl
647 # image.
648 # flash: name of output for flashing, for targets where there's a special
649 # file output for this.
650 # plugins: set to 'yes' to build the plugins. Early development builds can
651 # set this to no in the early stages to have an easier life for a
652 # while
653 # swcodec: set 'yes' on swcodec targets
654 # toolset: lists what particular tools in the tools/ directory that this
655 # target needs to have built prior to building Rockbox
657 # *Functions*
658 # *cc: sets up gcc and compiler options for your target builds. Note
659 # that if you select a simulator build, the compiler selection is
660 # overridden later in the script.
662 case $buildfor in
664 0|player)
665 target_id=1
666 modelname="player"
667 target="-DARCHOS_PLAYER"
668 shcc
669 tool="$rootdir/tools/scramble"
670 output="archos.mod"
671 appextra="player:gui"
672 archosrom="$pwd/rombox.ucl"
673 flash="$pwd/rockbox.ucl"
674 plugins="yes"
675 swcodec=""
677 # toolset is the tools within the tools directory that we build for
678 # this particular target.
679 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
681 # Note: the convbdf is present in the toolset just because: 1) the
682 # firmware/Makefile assumes it is present always, and 2) we will need it when we
683 # build the player simulator
685 t_cpu="sh"
686 t_manufacturer="archos"
687 t_model="player"
690 1|recorder)
691 target_id=2
692 modelname="recorder"
693 target="-DARCHOS_RECORDER"
694 shcc
695 tool="$rootdir/tools/scramble"
696 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
697 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
698 output="ajbrec.ajz"
699 appextra="recorder:gui"
700 #archosrom="$pwd/rombox.ucl"
701 flash="$pwd/rockbox.ucl"
702 plugins="yes"
703 swcodec=""
704 # toolset is the tools within the tools directory that we build for
705 # this particular target.
706 toolset=$archosbitmaptools
707 t_cpu="sh"
708 t_manufacturer="archos"
709 t_model="recorder"
712 2|fmrecorder)
713 target_id=3
714 modelname="fmrecorder"
715 target="-DARCHOS_FMRECORDER"
716 shcc
717 tool="$rootdir/tools/scramble -fm"
718 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
719 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
720 output="ajbrec.ajz"
721 appextra="recorder:gui"
722 #archosrom="$pwd/rombox.ucl"
723 flash="$pwd/rockbox.ucl"
724 plugins="yes"
725 swcodec=""
726 # toolset is the tools within the tools directory that we build for
727 # this particular target.
728 toolset=$archosbitmaptools
729 t_cpu="sh"
730 t_manufacturer="archos"
731 t_model="fm_v2"
734 3|recorderv2)
735 target_id=4
736 modelname="recorderv2"
737 target="-DARCHOS_RECORDERV2"
738 shcc
739 tool="$rootdir/tools/scramble -v2"
740 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
741 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
742 output="ajbrec.ajz"
743 appextra="recorder:gui"
744 #archosrom="$pwd/rombox.ucl"
745 flash="$pwd/rockbox.ucl"
746 plugins="yes"
747 swcodec=""
748 # toolset is the tools within the tools directory that we build for
749 # this particular target.
750 toolset=$archosbitmaptools
751 t_cpu="sh"
752 t_manufacturer="archos"
753 t_model="fm_v2"
756 4|ondiosp)
757 target_id=7
758 modelname="ondiosp"
759 target="-DARCHOS_ONDIOSP"
760 shcc
761 tool="$rootdir/tools/scramble -osp"
762 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
763 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
764 output="ajbrec.ajz"
765 appextra="recorder:gui"
766 archosrom="$pwd/rombox.ucl"
767 flash="$pwd/rockbox.ucl"
768 plugins="yes"
769 swcodec=""
770 # toolset is the tools within the tools directory that we build for
771 # this particular target.
772 toolset=$archosbitmaptools
773 t_cpu="sh"
774 t_manufacturer="archos"
775 t_model="ondio"
778 5|ondiofm)
779 target_id=8
780 modelname="ondiofm"
781 target="-DARCHOS_ONDIOFM"
782 shcc
783 tool="$rootdir/tools/scramble -ofm"
784 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
785 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
786 output="ajbrec.ajz"
787 appextra="recorder:gui"
788 #archosrom="$pwd/rombox.ucl"
789 flash="$pwd/rockbox.ucl"
790 plugins="yes"
791 swcodec=""
792 toolset=$archosbitmaptools
793 t_cpu="sh"
794 t_manufacturer="archos"
795 t_model="ondio"
798 6|av300)
799 target_id=26
800 modelname="av300"
801 target="-DARCHOS_AV300"
802 memory=16 # always
803 arm7tdmicc
804 tool="$rootdir/tools/scramble -mm=C"
805 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
806 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
807 output="cjbm.ajz"
808 appextra="recorder:gui"
809 plugins="yes"
810 swcodec=""
811 # toolset is the tools within the tools directory that we build for
812 # this particular target.
813 toolset="$toolset scramble descramble bmp2rb"
814 # architecture, manufacturer and model for the target-tree build
815 t_cpu="arm"
816 t_manufacturer="archos"
817 t_model="av300"
820 10|h120)
821 target_id=9
822 modelname="h120"
823 target="-DIRIVER_H120"
824 memory=32 # always
825 coldfirecc
826 tool="$rootdir/tools/scramble -add=h120"
827 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
828 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
829 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
830 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
831 output="rockbox.iriver"
832 appextra="recorder:gui"
833 flash="$pwd/rombox.iriver"
834 plugins="yes"
835 swcodec="yes"
836 # toolset is the tools within the tools directory that we build for
837 # this particular target.
838 toolset=$iriverbitmaptools
839 t_cpu="coldfire"
840 t_manufacturer="iriver"
841 t_model="h100"
844 11|h300)
845 target_id=10
846 modelname="h300"
847 target="-DIRIVER_H300"
848 memory=32 # always
849 coldfirecc
850 tool="$rootdir/tools/scramble -add=h300"
851 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
852 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
853 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
854 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
855 output="rockbox.iriver"
856 appextra="recorder:gui"
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="h300"
867 12|h100)
868 target_id=11
869 modelname="h100"
870 target="-DIRIVER_H100"
871 memory=16 # always
872 coldfirecc
873 tool="$rootdir/tools/scramble -add=h100"
874 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
875 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
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="h100"
890 13|ifp7xx)
891 target_id=19
892 modelname="ifp7xx"
893 target="-DIRIVER_IFP7XX"
894 memory=1
895 arm7tdmicc short
896 tool="cp"
897 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
898 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
899 output="rockbox.wma"
900 appextra="recorder:gui"
901 plugins="yes"
902 swcodec="yes"
903 # toolset is the tools within the tools directory that we build for
904 # this particular target.
905 toolset=$genericbitmaptools
906 t_cpu="arm"
907 t_manufacturer="pnx0101"
908 t_model="iriver-ifp7xx"
911 14|h10)
912 target_id=22
913 modelname="h10"
914 target="-DIRIVER_H10"
915 memory=32 # always
916 arm7tdmicc
917 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
918 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
919 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
920 output="rockbox.mi4"
921 appextra="recorder:gui"
922 plugins="yes"
923 swcodec="yes"
924 boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
925 bootoutput="H10_20GC.mi4"
926 # toolset is the tools within the tools directory that we build for
927 # this particular target.
928 toolset="$genericbitmaptools scramble"
929 # architecture, manufacturer and model for the target-tree build
930 t_cpu="arm"
931 t_manufacturer="iriver"
932 t_model="h10"
935 15|h10_5gb)
936 target_id=24
937 modelname="h10_5gb"
938 target="-DIRIVER_H10_5GB"
939 memory=32 # always
940 arm7tdmicc
941 tool="$rootdir/tools/scramble -mi4v2 -model=h105 -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 -mi4v2 -model=h105 -type=RBBL"
949 bootoutput="H10.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 20|ipodcolor)
960 target_id=13
961 modelname="ipodcolor"
962 target="-DIPOD_COLOR"
963 memory=32 # always
964 arm7tdmicc
965 tool="$rootdir/tools/scramble -add=ipco"
966 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
967 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
968 output="rockbox.ipod"
969 appextra="recorder:gui"
970 plugins="yes"
971 swcodec="yes"
972 bootoutput="bootloader-$modelname.ipod"
973 # toolset is the tools within the tools directory that we build for
974 # this particular target.
975 toolset=$ipodbitmaptools
976 # architecture, manufacturer and model for the target-tree build
977 t_cpu="arm"
978 t_manufacturer="ipod"
979 t_model="color"
982 21|ipodnano)
983 target_id=14
984 modelname="ipodnano"
985 target="-DIPOD_NANO"
986 memory=32 # always
987 arm7tdmicc
988 tool="$rootdir/tools/scramble -add=nano"
989 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
990 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
991 output="rockbox.ipod"
992 appextra="recorder:gui"
993 plugins="yes"
994 swcodec="yes"
995 bootoutput="bootloader-$modelname.ipod"
996 # toolset is the tools within the tools directory that we build for
997 # this particular target.
998 toolset=$ipodbitmaptools
999 # architecture, manufacturer and model for the target-tree build
1000 t_cpu="arm"
1001 t_manufacturer="ipod"
1002 t_model="nano"
1005 22|ipodvideo)
1006 target_id=15
1007 modelname="ipodvideo"
1008 target="-DIPOD_VIDEO"
1009 arm7tdmicc
1010 tool="$rootdir/tools/scramble -add=ipvd"
1011 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1012 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1013 output="rockbox.ipod"
1014 appextra="recorder:gui"
1015 plugins="yes"
1016 swcodec="yes"
1017 bootoutput="bootloader-$modelname.ipod"
1018 # toolset is the tools within the tools directory that we build for
1019 # this particular target.
1020 toolset=$ipodbitmaptools
1021 # architecture, manufacturer and model for the target-tree build
1022 t_cpu="arm"
1023 t_manufacturer="ipod"
1024 t_model="video"
1027 23|ipod3g)
1028 target_id=16
1029 modelname="ipod3g"
1030 target="-DIPOD_3G"
1031 memory=32 # always
1032 arm7tdmicc
1033 tool="$rootdir/tools/scramble -add=ip3g"
1034 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1035 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1036 output="rockbox.ipod"
1037 appextra="recorder:gui"
1038 plugins="yes"
1039 swcodec="yes"
1040 bootoutput="bootloader-$modelname.ipod"
1041 # toolset is the tools within the tools directory that we build for
1042 # this particular target.
1043 toolset=$ipodbitmaptools
1044 # architecture, manufacturer and model for the target-tree build
1045 t_cpu="arm"
1046 t_manufacturer="ipod"
1047 t_model="3g"
1050 24|ipod4g)
1051 target_id=17
1052 modelname="ipod4g"
1053 target="-DIPOD_4G"
1054 memory=32 # always
1055 arm7tdmicc
1056 tool="$rootdir/tools/scramble -add=ip4g"
1057 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1058 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1059 output="rockbox.ipod"
1060 appextra="recorder:gui"
1061 plugins="yes"
1062 swcodec="yes"
1063 bootoutput="bootloader-$modelname.ipod"
1064 # toolset is the tools within the tools directory that we build for
1065 # this particular target.
1066 toolset=$ipodbitmaptools
1067 # architecture, manufacturer and model for the target-tree build
1068 t_cpu="arm"
1069 t_manufacturer="ipod"
1070 t_model="4g"
1073 25|ipodmini)
1074 target_id=18
1075 modelname="ipodmini"
1076 target="-DIPOD_MINI"
1077 memory=32 # always
1078 arm7tdmicc
1079 tool="$rootdir/tools/scramble -add=mini"
1080 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1081 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1082 output="rockbox.ipod"
1083 appextra="recorder:gui"
1084 plugins="yes"
1085 swcodec="yes"
1086 bootoutput="bootloader-$modelname.ipod"
1087 # toolset is the tools within the tools directory that we build for
1088 # this particular target.
1089 toolset=$ipodbitmaptools
1090 # architecture, manufacturer and model for the target-tree build
1091 t_cpu="arm"
1092 t_manufacturer="ipod"
1093 t_model="mini"
1096 26|ipodmini2g)
1097 target_id=21
1098 modelname="ipodmini2g"
1099 target="-DIPOD_MINI2G"
1100 memory=32 # always
1101 arm7tdmicc
1102 tool="$rootdir/tools/scramble -add=mn2g"
1103 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1104 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1105 output="rockbox.ipod"
1106 appextra="recorder:gui"
1107 plugins="yes"
1108 swcodec="yes"
1109 bootoutput="bootloader-$modelname.ipod"
1110 # toolset is the tools within the tools directory that we build for
1111 # this particular target.
1112 toolset=$ipodbitmaptools
1113 # architecture, manufacturer and model for the target-tree build
1114 t_cpu="arm"
1115 t_manufacturer="ipod"
1116 t_model="mini2g"
1119 27|ipod1g2g)
1120 target_id=29
1121 modelname="ipod1g2g"
1122 target="-DIPOD_1G2G"
1123 memory=32 # always
1124 arm7tdmicc
1125 tool="$rootdir/tools/scramble -add=1g2g"
1126 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1127 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1128 output="rockbox.ipod"
1129 appextra="recorder:gui"
1130 plugins="yes"
1131 swcodec="yes"
1132 bootoutput="bootloader-$modelname.ipod"
1133 # toolset is the tools within the tools directory that we build for
1134 # this particular target.
1135 toolset=$ipodbitmaptools
1136 # architecture, manufacturer and model for the target-tree build
1137 t_cpu="arm"
1138 t_manufacturer="ipod"
1139 t_model="1g2g"
1142 30|x5)
1143 target_id=12
1144 modelname="x5"
1145 target="-DIAUDIO_X5"
1146 memory=16 # always
1147 coldfirecc
1148 tool="$rootdir/tools/scramble -add=iax5"
1149 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1150 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1151 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1152 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1153 output="rockbox.iaudio"
1154 appextra="recorder:gui"
1155 plugins="yes"
1156 swcodec="yes"
1157 # toolset is the tools within the tools directory that we build for
1158 # this particular target.
1159 toolset="$iaudiobitmaptools"
1160 # architecture, manufacturer and model for the target-tree build
1161 t_cpu="coldfire"
1162 t_manufacturer="iaudio"
1163 t_model="x5"
1166 31|m5)
1167 target_id=28
1168 modelname="m5"
1169 target="-DIAUDIO_M5"
1170 memory=16 # always
1171 coldfirecc
1172 tool="$rootdir/tools/scramble -add=iam5"
1173 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1174 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
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="m5"
1190 40|gigabeatf)
1191 target_id=20
1192 modelname="gigabeatf"
1193 target="-DGIGABEAT_F"
1194 memory=32 # always
1195 arm9tdmicc
1196 tool="$rootdir/tools/scramble -add=giga"
1197 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1198 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1199 output="rockbox.gigabeat"
1200 appextra="recorder:gui"
1201 plugins="yes"
1202 swcodec="yes"
1203 toolset=$gigabeatbitmaptools
1204 boottool="$rootdir/tools/scramble -gigabeat"
1205 bootoutput="FWIMG01.DAT"
1206 # architecture, manufacturer and model for the target-tree build
1207 t_cpu="arm"
1208 t_manufacturer="s3c2440"
1209 t_model="gigabeat-fx"
1212 41|gigabeats)
1213 target_id=26
1214 modelname="gigabeats"
1215 target="-DGIGABEAT_S"
1216 memory=32 # always
1217 arm9tdmicc
1218 tool="$rootdir/tools/scramble -add=gigs"
1219 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1220 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1221 output="rockbox.gigabeat"
1222 appextra="recorder:gui"
1223 plugins=""
1224 swcodec="yes"
1225 toolset="$gigabeatbitmaptools mknkboot"
1226 boottool="$rootdir/tools/scramble -gigabeats"
1227 bootoutput="nk.bin"
1228 # architecture, manufacturer and model for the target-tree build
1229 t_cpu="arm"
1230 t_manufacturer="imx31"
1231 t_model="gigabeat-s"
1234 70|mrobe500)
1235 target_id=20
1236 modelname="mrobe500"
1237 target="-DMROBE_500"
1238 memory=64 # always
1239 arm926ejscc
1240 # tool="$rootdir/tools/scramble -add=m500"
1241 tool="cp "
1242 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1243 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1244 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1245 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1246 output="rockbox.mrobe500"
1247 appextra="recorder:gui"
1248 plugins="yes"
1249 swcodec="yes"
1250 toolset=$gigabeatbitmaptools
1251 boottool="cp "
1252 bootoutput="rockbox.mrboot"
1253 # architecture, manufacturer and model for the target-tree build
1254 t_cpu="arm"
1255 t_manufacturer="tms320dm320"
1256 t_model="mrobe-500"
1259 71|mrobe100)
1260 target_id=33
1261 modelname="mrobe100"
1262 target="-DMROBE_100"
1263 memory=32 # always
1264 arm7tdmicc
1265 tool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1266 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1267 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1268 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1269 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1270 output="rockbox.mi4"
1271 appextra="recorder:gui"
1272 plugins="yes"
1273 swcodec="yes"
1274 boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1275 bootoutput="pp5020.mi4"
1276 # toolset is the tools within the tools directory that we build for
1277 # this particular target.
1278 toolset="$genericbitmaptools scramble"
1279 # architecture, manufacturer and model for the target-tree build
1280 t_cpu="arm"
1281 t_manufacturer="olympus"
1282 t_model="mrobe-100"
1285 80|logikdax)
1286 target_id=31
1287 modelname="logikdax"
1288 target="-DLOGIK_DAX"
1289 memory=2 # always
1290 arm946cc
1291 tool="$rootdir/tools/scramble -add=ldax"
1292 boottool="$rootdir/tools/scramble -tcc=crc"
1293 bootoutput="player.rom"
1294 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1295 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1296 output="rockbox.logik"
1297 appextra="recorder:gui"
1298 plugins="no"
1299 swcodec="yes"
1300 # toolset is the tools within the tools directory that we build for
1301 # this particular target.
1302 toolset=$tccbitmaptools
1303 # architecture, manufacturer and model for the target-tree build
1304 t_cpu="arm"
1305 t_manufacturer="tcc77x"
1306 t_model="logikdax"
1309 50|e200)
1310 target_id=23
1311 modelname="e200"
1312 target="-DSANSA_E200"
1313 memory=32 # supposedly
1314 arm7tdmicc
1315 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1316 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1317 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1318 output="rockbox.mi4"
1319 appextra="recorder:gui"
1320 plugins="yes"
1321 swcodec="yes"
1322 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1323 bootoutput="PP5022.mi4"
1324 # toolset is the tools within the tools directory that we build for
1325 # this particular target.
1326 toolset="$genericbitmaptools scramble"
1327 # architecture, manufacturer and model for the target-tree build
1328 t_cpu="arm"
1329 t_manufacturer="sandisk"
1330 t_model="sansa-e200"
1333 51|e200r)
1334 # the e200R model is pretty much identical to the e200, it only has a
1335 # different option to the scramble tool when building a bootloader and
1336 # makes the bootloader output file name in all lower case.
1337 target_id=27
1338 modelname="e200r"
1339 target="-DSANSA_E200"
1340 memory=32 # supposedly
1341 arm7tdmicc
1342 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1343 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1344 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1345 output="rockbox.mi4"
1346 appextra="recorder:gui"
1347 plugins="yes"
1348 swcodec="yes"
1349 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1350 bootoutput="pp5022.mi4"
1351 # toolset is the tools within the tools directory that we build for
1352 # this particular target.
1353 toolset="$genericbitmaptools scramble"
1354 # architecture, manufacturer and model for the target-tree build
1355 t_cpu="arm"
1356 t_manufacturer="sandisk"
1357 t_model="sansa-e200"
1360 52|c200)
1361 target_id=30
1362 modelname="c200"
1363 target="-DSANSA_C200"
1364 memory=32 # supposedly
1365 arm7tdmicc
1366 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1367 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1368 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1369 output="rockbox.mi4"
1370 appextra="recorder:gui"
1371 plugins="yes"
1372 swcodec="yes"
1373 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1374 bootoutput="firmware.mi4"
1375 # toolset is the tools within the tools directory that we build for
1376 # this particular target.
1377 toolset="$genericbitmaptools scramble"
1378 # architecture, manufacturer and model for the target-tree build
1379 t_cpu="arm"
1380 t_manufacturer="sandisk"
1381 t_model="sansa-c200"
1384 60|tpj1022)
1385 target_id=25
1386 modelname="tpj1022"
1387 target="-DELIO_TPJ1022"
1388 memory=32 # always
1389 arm7tdmicc
1390 tool="$rootdir/tools/scramble -add tpj2"
1391 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1392 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1393 output="rockbox.elio"
1394 appextra="recorder:gui"
1395 plugins="yes"
1396 swcodec="yes"
1397 boottool="$rootdir/tools/scramble -mi4v2"
1398 bootoutput="pp5020.mi4"
1399 # toolset is the tools within the tools directory that we build for
1400 # this particular target.
1401 toolset="$genericbitmaptools scramble"
1402 # architecture, manufacturer and model for the target-tree build
1403 t_cpu="arm"
1404 t_manufacturer="tatung"
1405 t_model="tpj1022"
1408 32|iaudio7)
1409 target_id=32
1410 modelname="iaudio7"
1411 target="-DIAUDIO_7"
1412 memory=16 # always
1413 arm946cc
1414 tool="$rootdir/tools/scramble -add i7"
1415 boottool="$rootdir/tools/scramble -tcc=crc"
1416 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1417 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1418 output="rockbox.iaudio"
1419 appextra="recorder:gui"
1420 plugins="yes"
1421 swcodec="yes"
1422 bootoutput="I7_FW.BIN"
1423 # toolset is the tools within the tools directory that we build for
1424 # this particular target.
1425 toolset="$tccbitmaptools"
1426 # architecture, manufacturer and model for the target-tree build
1427 t_cpu="arm"
1428 t_manufacturer="tcc77x"
1429 t_model="iaudio7"
1432 33|cowond2)
1433 target_id=34
1434 modelname="cowond2"
1435 target="-DCOWON_D2"
1436 memory=32
1437 arm926ejscc
1438 tool="cp "
1439 boottool="$rootdir/tools/scramble -tcc=crc"
1440 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1441 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1442 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1443 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1444 output="rockbox.iaudio"
1445 appextra="recorder:gui"
1446 plugins="no"
1447 swcodec="yes"
1448 toolset="$tccbitmaptools"
1449 # architecture, manufacturer and model for the target-tree build
1450 t_cpu="arm"
1451 t_manufacturer="tcc780x"
1452 t_model="cowond2"
1456 echo "Please select a supported target platform!"
1457 exit
1460 esac
1462 echo "Platform set to $modelname"
1465 #remove start
1466 ############################################################################
1467 # Amount of memory, for those that can differ. They have $memory unset at
1468 # this point.
1471 if [ -z "$memory" ]; then
1473 case $target_id in
1475 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1476 size=`input`;
1477 case $size in
1478 60|64)
1479 memory="64"
1482 memory="32"
1484 esac
1488 echo "Enter size of your RAM (in MB): (defaults to 2)"
1489 size=`input`;
1490 case $size in
1492 memory="8"
1495 memory="2"
1497 esac
1499 esac
1501 echo "Memory size selected: $memory MB"
1503 #remove end
1505 ##################################################################
1506 # Figure out build "type"
1509 # the ifp7x0 is the only platform that supports building a gdb stub like
1510 # this
1511 case $modelname in
1512 ifp7xx)
1513 gdbstub="(G)DB stub, "
1515 e200r|e200)
1516 gdbstub="(I)installer, "
1520 esac
1522 echo ""
1523 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1525 option=`input`;
1527 case $option in
1528 [Ii])
1529 appsdir='\$(ROOTDIR)/bootloader'
1530 apps="bootloader"
1531 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
1532 bootloader="1"
1533 echo "e200R-installer build selected"
1535 [Bb])
1536 if test $t_manufacturer = "archos"; then
1537 # Archos SH-based players do this somewhat differently for
1538 # some reason
1539 appsdir='\$(ROOTDIR)/flash/bootbox'
1540 apps="bootbox"
1541 else
1542 appsdir='\$(ROOTDIR)/bootloader'
1543 apps="bootloader"
1544 flash=""
1545 if test -n "$boottool"; then
1546 tool="$boottool"
1548 if test -n "$bootoutput"; then
1549 output=$bootoutput
1552 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
1553 bootloader="1"
1554 echo "Bootloader build selected"
1556 [Ss])
1557 debug="-DDEBUG"
1558 simulator="yes"
1559 extradefines="-DSIMULATOR"
1560 echo "Simulator build selected"
1562 [Aa])
1563 echo "Advanced build selected"
1564 whichadvanced
1566 [Gg])
1567 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1568 appsdir='\$(ROOTDIR)/gdb'
1569 apps="stub"
1570 case $modelname in
1571 ifp7xx)
1572 output="stub.wma"
1576 esac
1577 echo "GDB stub build selected"
1579 [Mm])
1580 appsdir='\$(ROOTDIR)/manual'
1581 firmdir='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ig:res target
1582 toolsdir=$firmdir;
1583 toolset='';
1584 apps="manual"
1585 echo "Manual build selected"
1588 if [ "$modelname" = "e200r" ]; then
1589 echo "Do not use the e200R target for regular builds. Use e200 instead."
1590 exit
1592 debug=""
1593 echo "Normal build selected"
1596 esac
1597 # to be able running "make manual" from non-manual configuration
1598 case $modelname in
1599 fmrecorder)
1600 manualdev="recorderv2fm"
1602 recorderv2)
1603 manualdev="recorderv2fm"
1605 h1??)
1606 manualdev="h1xx"
1608 ipodmini2g)
1609 manualdev="ipodmini"
1612 manualdev=$modelname
1614 esac
1616 if [ -z "$debug" ]; then
1617 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
1620 echo "Using source code root directory: $rootdir"
1622 # this was once possible to change at build-time, but no more:
1623 language="english"
1625 uname=`uname`
1627 if [ "yes" = "$simulator" ]; then
1628 # setup compiler and things for simulator
1629 simcc
1631 if [ -d "archos" ]; then
1632 echo "sub directory archos already present"
1633 else
1634 mkdir archos
1635 echo "created an archos subdirectory for simulating the hard disk"
1639 # Now, figure out version number of the (gcc) compiler we are about to use
1640 gccver=`$CC -dumpversion`;
1642 # figure out the binutil version too and display it, mostly for the build
1643 # system etc to be able to see it easier
1644 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
1646 if [ -z "$gccver" ]; then
1647 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1648 echo "WARNING: this may cause your build to fail since we cannot do the"
1649 echo "WARNING: checks we want now."
1650 else
1652 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1653 # DEPEND on it
1655 num1=`echo $gccver | cut -d . -f1`
1656 num2=`echo $gccver | cut -d . -f2`
1657 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1659 # This makes:
1660 # 3.3.X => 303
1661 # 3.4.X => 304
1662 # 2.95.3 => 295
1664 echo "Using $CC $gccver ($gccnum)"
1666 if test "$gccnum" -ge "400"; then
1667 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1668 # so we ignore that warnings for now
1669 # -Wno-pointer-sign
1670 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
1673 if test "$gccnum" -ge "401"; then
1674 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1675 # will break strict-aliasing rules"
1677 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
1680 if test "$gccnum" -ge "402"; then
1681 # disable warning about "warning: initialized field overwritten" as gcc 4.2
1682 # and later would throw it for several valid cases
1683 GCCOPTS="$GCCOPTS -Wno-override-init"
1688 echo "Using $LD $ldver"
1690 # check the compiler for SH platforms
1691 if test "$CC" = "sh-elf-gcc"; then
1692 if test "$gccnum" -lt "400"; then
1693 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1694 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1695 else
1696 # figure out patch status
1697 gccpatch=`$CC --version`;
1699 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
1700 echo "gcc $gccver is rockbox patched"
1701 # then convert -O to -Os to get smaller binaries!
1702 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1703 else
1704 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1705 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1710 if test "$CC" = "m68k-elf-gcc"; then
1711 # convert -O to -Os to get smaller binaries!
1712 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1715 if test "$1" = "--ccache"; then
1716 echo "Enable ccache for building"
1717 ccache="ccache"
1718 else
1719 if test "$1" != "--no-ccache"; then
1720 ccache=`findtool ccache`
1721 if test -n "$ccache"; then
1722 echo "Found and uses ccache ($ccache)"
1727 if test -n "$ccache"; then
1728 CC="$ccache $CC"
1731 if test "X$endian" = "Xbig"; then
1732 defendian="ROCKBOX_BIG_ENDIAN"
1733 else
1734 defendian="ROCKBOX_LITTLE_ENDIAN"
1737 sed > autoconf.h \
1738 -e "s,@ENDIAN@,${defendian},g" \
1739 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1740 -e "s,@config_rtc@,$config_rtc,g" \
1741 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1742 <<EOF
1743 /* This header was made by configure */
1744 #ifndef __BUILD_AUTOCONF_H
1745 #define __BUILD_AUTOCONF_H
1747 /* Define endianess for the target or simulator platform */
1748 #define @ENDIAN@ 1
1750 /* Define this if you build rockbox to support the logf logging and display */
1751 #undef ROCKBOX_HAS_LOGF
1753 /* optional defines for RTC mod for h1x0 */
1754 @config_rtc@
1755 @have_rtc_alarm@
1757 #endif /* __BUILD_AUTOCONF_H */
1760 if test -n "$t_cpu"; then
1761 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1762 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1763 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1764 GCCOPTS="$GCCOPTS"
1767 if test "$simulator" = "yes"; then
1768 # add simul make stuff on the #SIMUL# line
1769 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1770 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1771 else
1772 # delete the lines that match
1773 simmagic1='/@SIMUL1@/D'
1774 simmagic2='/@SIMUL2@/D'
1777 if test "$swcodec" = "yes"; then
1778 voicetoolset="rbspeexenc voicefont wavtrim"
1779 else
1780 voicetoolset="voicefont wavtrim"
1783 sed > Makefile \
1784 -e "s,@ROOTDIR@,${rootdir},g" \
1785 -e "s,@DEBUG@,${debug},g" \
1786 -e "s,@MEMORY@,${memory},g" \
1787 -e "s,@TARGET_ID@,${target_id},g" \
1788 -e "s,@TARGET@,${target},g" \
1789 -e "s,@CPU@,${t_cpu},g" \
1790 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1791 -e "s,@MODELNAME@,${modelname},g" \
1792 -e "s,@LANGUAGE@,${language},g" \
1793 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1794 -e "s,@PWD@,${pwd},g" \
1795 -e "s,@CC@,${CC},g" \
1796 -e "s,@LD@,${LD},g" \
1797 -e "s,@AR@,${AR},g" \
1798 -e "s,@AS@,${AS},g" \
1799 -e "s,@OC@,${OC},g" \
1800 -e "s,@WINDRES@,${WINDRES},g" \
1801 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1802 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1803 -e "s,@RANLIB@,${RANLIB},g" \
1804 -e "s,@TOOL@,${tool},g" \
1805 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1806 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1807 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1808 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1809 -e "s,@OUTPUT@,${output},g" \
1810 -e "s,@APPEXTRA@,${appextra},g" \
1811 -e "s,@ARCHOSROM@,${archosrom},g" \
1812 -e "s,@FLASHFILE@,${flash},g" \
1813 -e "s,@PLUGINS@,${plugins},g" \
1814 -e "s,@CODECS@,${swcodec},g" \
1815 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1816 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1817 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1818 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1819 -e "s!@LDOPTS@!${LDOPTS}!g" \
1820 -e "s,@LOADADDRESS@,${loadaddress},g" \
1821 -e "s,@EXTRADEF@,${extradefines},g" \
1822 -e "s,@APPSDIR@,${appsdir},g" \
1823 -e "s,@FIRMDIR@,${firmdir},g" \
1824 -e "s,@TOOLSDIR@,${toolsdir},g" \
1825 -e "s,@APPS@,${apps},g" \
1826 -e "s,@SIMVER@,${simver},g" \
1827 -e "s,@GCCVER@,${gccver},g" \
1828 -e "s,@GCCNUM@,${gccnum},g" \
1829 -e "s,@UNAME@,${uname},g" \
1830 -e "s,@ENDIAN@,${defendian},g" \
1831 -e "s,@TOOLSET@,${toolset},g" \
1832 -e "${simmagic1}" \
1833 -e "${simmagic2}" \
1834 -e "s,@MANUALDEV@,${manualdev},g" \
1835 -e "s,@ENCODER@,${ENC_CMD},g" \
1836 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
1837 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
1838 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
1839 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
1840 <<EOF
1841 ## Automaticly generated. http://www.rockbox.org/
1843 ifndef V
1844 SILENT=@
1845 else
1846 VERBOSEOPT=-v
1847 endif
1849 # old 'make' versions don't have the built-in 'info' function
1850 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1851 ifeq (\$(call info),old)
1852 export info=echo "\$\$(1)";
1853 endif
1855 export ROOTDIR=@ROOTDIR@
1856 export FIRMDIR=@FIRMDIR@
1857 export APPSDIR=@APPSDIR@
1858 export TOOLSDIR=@TOOLSDIR@
1859 export DOCSDIR=\$(ROOTDIR)/docs
1860 export MANUALDIR=\${ROOTDIR}/manual
1861 export DEBUG=@DEBUG@
1862 export MODELNAME=@MODELNAME@
1863 export ARCHOSROM=@ARCHOSROM@
1864 export FLASHFILE=@FLASHFILE@
1865 export TARGET_ID=@TARGET_ID@
1866 export TARGET=@TARGET@
1867 export CPU=@CPU@
1868 export MANUFACTURER=@MANUFACTURER@
1869 export OBJDIR=@PWD@
1870 export BUILDDIR=@PWD@
1871 export LANGUAGE=@LANGUAGE@
1872 export VOICELANGUAGE=@VOICELANGUAGE@
1873 export MEMORYSIZE=@MEMORY@
1874 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1875 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1876 export MKFIRMWARE=@TOOL@
1877 export BMP2RB_MONO=@BMP2RB_MONO@
1878 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1879 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1880 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1881 export BINARY=@OUTPUT@
1882 export APPEXTRA=@APPEXTRA@
1883 export ENABLEDPLUGINS=@PLUGINS@
1884 export SOFTWARECODECS=@CODECS@
1885 export EXTRA_DEFINES=@EXTRADEF@
1886 export HOSTCC=gcc
1887 export HOSTAR=ar
1888 export CC=@CC@
1889 export LD=@LD@
1890 export AR=@AR@
1891 export AS=@AS@
1892 export OC=@OC@
1893 export WINDRES=@WINDRES@
1894 export DLLTOOL=@DLLTOOL@
1895 export DLLWRAP=@DLLWRAP@
1896 export RANLIB=@RANLIB@
1897 export PROFILE_OPTS=@PROFILE_OPTS@
1898 export SIMVER=@SIMVER@
1899 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1900 export GCCOPTS=@GCCOPTS@
1901 export TARGET_INC=@TARGET_INC@
1902 export LOADADDRESS=@LOADADDRESS@
1903 export SHARED_FLAG=@SHARED_FLAG@
1904 export LDOPTS=@LDOPTS@
1905 export GCCVER=@GCCVER@
1906 export GCCNUM=@GCCNUM@
1907 export UNAME=@UNAME@
1908 export MANUALDEV=@MANUALDEV@
1909 export TTS_OPTS=@TTS_OPTS@
1910 export TTS_ENGINE=@TTS_ENGINE@
1911 export ENC_OPTS=@ENC_OPTS@
1912 export ENCODER=@ENCODER@
1914 # Do not print "Entering directory ..."
1915 MAKEFLAGS += --no-print-directory
1917 .PHONY: all clean tags zip tools manual bin build info
1919 all: info
1921 info: build
1922 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1924 build: tools
1925 @SIMUL1@
1926 @SIMUL2@
1927 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1928 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1930 bin: tools
1931 @SIMUL1@
1932 @SIMUL2@
1933 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1934 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1936 rocks: tools
1937 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1939 veryclean: clean toolsclean
1941 toolsclean:
1942 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1944 clean:
1945 \$(SILENT)echo Cleaning build directory
1946 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1947 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1948 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1949 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
1950 voicefontids *.wav *.mp3 *.voice
1952 tools:
1953 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
1955 voicetools:
1956 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
1958 tags:
1959 \$(SILENT)rm -f TAGS
1960 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1961 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1962 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1963 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1965 fontzip:
1966 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1968 zip:
1969 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1970 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1972 mapzip:
1973 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1975 fullzip:
1976 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1977 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1979 7zip:
1980 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1981 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1983 tar:
1984 \$(SILENT)rm -f rockbox.tar
1985 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1986 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1988 bzip2: tar
1989 \$(SILENT)bzip2 -f9 rockbox.tar
1991 gzip: tar
1992 \$(SILENT)gzip -f9 rockbox.tar
1994 manual: manual-pdf
1995 manual-pdf:
1996 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1997 manual-html:
1998 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1999 manual-zhtml: manual-zip
2000 manual-txt:
2001 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2002 manual-ztxt:
2003 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2004 manual-zip:
2005 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2007 features:
2008 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2010 help:
2011 @echo "A few helpful make targets"
2012 @echo ""
2013 @echo "all - builds a full Rockbox (default), including tools"
2014 @echo "bin - builds only the Rockbox.<target name> file"
2015 @echo "clean - cleans a build directory (not tools)"
2016 @echo "veryclean - cleans the build and tools directories"
2017 @echo "manual - builds a manual"
2018 @echo "manual-html - HTML manual"
2019 @echo "manual-zip - HTML manual (zipped)"
2020 @echo "manual-txt - txt manual"
2021 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2022 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2023 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2024 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2025 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2026 @echo "fontzip - creates rockbox-fonts.zip"
2027 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2028 @echo "tools - builds the tools only"
2029 @echo "voicetools - builds the voice tools only"
2030 @echo "install - installs your build (for simulator builds only)"
2034 if [ "yes" = "$simulator" ]; then
2036 cat >> Makefile <<EOF
2038 install:
2039 @echo "installing a full setup in your archos dir"
2040 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
2045 if [ "yes" = "$voice" ]; then
2047 cat >> Makefile <<EOF
2049 voice: voicetools features
2050 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2051 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 \\
2056 echo "Created Makefile"