Fix FS#8138 - Gigabeat clock time is lost at midnight on Saturdays
[Rockbox.git] / tools / configure
blobe3a69945e3d934bd1271aa1197e49ca67d21561b
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 whichadvanced () {
223 ##################################################################
224 # Prompt for specific developer options
226 echo ""
227 echo "Enter your developer options (press enter when done)"
228 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
229 if [ "$memory" = "2" ]; then
230 echo -n ", (8)MB MOD"
232 if [ "$archos" = "h120" ]; then
233 echo -n ", (R)TC MOD"
235 echo ""
237 cont=1
239 while [ $cont = "1" ]; do
241 option=`input`;
243 case $option in
244 [Dd])
245 if [ "yes" = "$profile" ]; then
246 echo "Debug is incompatible with profiling"
247 else
248 echo "define DEBUG"
249 use_debug="yes"
252 [Ll])
253 echo "logf() support enabled"
254 logf="yes"
256 [Ss])
257 echo "Simulator build enabled"
258 simulator="yes"
260 [Pp])
261 if [ "yes" = "$use_debug" ]; then
262 echo "Profiling is incompatible with debug"
263 else
264 echo "Profiling support is enabled"
265 profile="yes"
268 [Vv])
269 echo "Voice build selected"
270 voice="yes"
273 if [ "$memory" = "2" ]; then
274 memory="8"
275 echo "Memory size selected: 8MB"
276 else
277 cont=0
280 [Rr])
281 if [ "$archos" = "h120" ]; then
282 config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
283 have_rtc_alarm="#define HAVE_RTC_ALARM"
284 echo "RTC functions enabled (DS1339/DS3231)"
285 else
286 cont=0
290 cont=0
292 esac
293 done
294 echo "done"
296 if [ "yes" = "$voice" ]; then
297 toolset="${toolset} voicefont wavtrim"
299 # Ask about languages to build
300 echo "Select a number for the language to use (default is english)"
301 # The multiple-language feature is currently broken
302 # echo "You may enter a comma-separated list of languages to build"
304 picklang
305 voicelanguage=`whichlang`
307 if [ -z "$voicelanguage" ]; then
308 # pick a default
309 voicelanguage="english"
311 echo "Voice language set to $voicelanguage"
313 # Configure encoder and TTS engine for each language
314 for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
315 voiceconfig "$thislang"
316 done
318 if [ "yes" = "$use_debug" ]; then
319 debug="-DDEBUG"
320 GCCOPTS="$GCCOPTS -g -DDEBUG"
322 if [ "yes" = "$logf" ]; then
323 use_logf="#define ROCKBOX_HAS_LOGF 1"
325 if [ "yes" = "$simulator" ]; then
326 debug="-DDEBUG"
327 extradefines="$extradefines -DSIMULATOR"
329 if [ "yes" = "$profile" ]; then
330 extradefines="$extradefines -DRB_PROFILE"
331 PROFILE_OPTS="-finstrument-functions"
335 # Configure voice settings
336 voiceconfig () {
337 thislang=$1
338 echo "Building $thislang voice for $archos. Select options"
339 echo ""
341 if [ -f "`which flite`" ]; then
342 FLITE="F(l)ite "
343 FLITE_OPTS=""
344 DEFAULT_TTS="flite"
345 DEFAULT_TTS_OPTS=$FLITE_OPTS
346 DEFAULT_NOISEFLOOR="500"
347 DEFAULT_CHOICE="L"
349 if [ -f "`which espeak`" ]; then
350 ESPEAK="(e)Speak "
351 ESPEAK_OPTS=""
352 DEFAULT_TTS="espeak"
353 DEFAULT_TTS_OPTS=$ESPEAK_OPTS
354 DEFAULT_NOISEFLOOR="500"
355 DEFAULT_CHOICE="e"
357 if [ -f "`which festival`" ]; then
358 FESTIVAL="(F)estival "
359 case "$thislang" in
360 "italiano")
361 FESTIVAL_OPTS="--language italian"
363 "espanol")
364 FESTIVAL_OPTS="--language spanish"
366 "finnish")
367 FESTIVAL_OPTS="--language finnish"
369 "czech")
370 FESTIVAL_OPTS="--language czech"
373 FESTIVAL_OPTS=""
375 esac
376 DEFAULT_TTS="festival"
377 DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
378 DEFAULT_NOISEFLOOR="500"
379 DEFAULT_CHOICE="F"
381 if [ -f "`which swift`" ]; then
382 SWIFT="S(w)ift "
383 SWIFT_OPTS=""
384 DEFAULT_TTS="swift"
385 DEFAULT_TTS_OPTS=$SWIFT_OPTS
386 DEFAULT_NOISEFLOOR="500"
387 DEFAULT_CHOICE="w"
389 # Allow SAPI if Windows is in use
390 if [ -f "`which winver`" ]; then
391 SAPI="(S)API "
392 SAPI_OPTS=""
393 DEFAULT_TTS="sapi"
394 DEFAULT_TTS_OPTS=$SAPI_OPTS
395 DEFAULT_NOISEFLOOR="500"
396 DEFAULT_CHOICE="S"
399 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
400 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
401 exit
404 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
405 option=`input`
406 case "$option" in
407 [Ll])
408 TTS_ENGINE="flite"
409 NOISEFLOOR="500" # TODO: check this value
410 TTS_OPTS=$FLITE_OPTS
412 [Ee])
413 TTS_ENGINE="espeak"
414 NOISEFLOOR="500"
415 TTS_OPTS=$ESPEAK_OPTS
417 [Ff])
418 TTS_ENGINE="festival"
419 NOISEFLOOR="500"
420 TTS_OPTS=$FESTIVAL_OPTS
422 [Ss])
423 TTS_ENGINE="sapi"
424 NOISEFLOOR="500"
425 TTS_OPTS=$SAPI_OPTS
427 [Ww])
428 TTS_ENGINE="swift"
429 NOISEFLOOR="500"
430 TTS_OPTS=$SWIFT_OPTS
433 TTS_ENGINE=$DEFAULT_TTS
434 TTS_OPTS=$DEFAULT_TTS_OPTS
435 NOISEFLOOR=$DEFAULT_NOISEFLOOR
436 esac
437 echo "Using $TTS_ENGINE for TTS"
439 # Allow the user to input manual commandline options
440 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
441 USER_TTS_OPTS=`input`
442 if [ -n "$USER_TTS_OPTS" ]; then
443 TTS_OPTS="$USER_TTS_OPTS"
446 echo ""
448 if [ -f "`which oggenc`" ]; then
449 OGGENC="(O)ggenc "
450 DEFAULT_ENC="oggenc"
451 VORBIS_OPTS="-q0 --downmix"
452 DEFAULT_ENC_OPTS=$VORBIS_OPTS
453 DEFAULT_CHOICE="O"
455 if [ -f "`which speexenc`" ]; then
456 SPEEXENC="(S)peexenc "
457 DEFAULT_ENC="speexenc"
458 SPEEX_OPTS="" # TODO: find appropriate options for speex
459 DEFAULT_ENC_OPTS=$SPEEX_OPTS
460 DEFAULT_CHOICE="S"
462 if [ -f "`which lame`" ]; then
463 LAME="(L)ame "
464 DEFAULT_ENC="lame"
465 LAME_OPTS="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
466 DEFAULT_ENC_OPTS=$LAME_OPTS
467 DEFAULT_CHOICE="L"
470 if [ "$LAME" = "" ]; then
471 echo "You currently need to have Lame installed to build voice files"
474 # echo "Encoder to use: ${LAME}${OGGENC}${SPEEXENC}(${DEFAULT_CHOICE})?"
475 # echo ""
476 # echo "Note: Use Lame - the other options won't work"
477 # option=`input`
478 option="l"
479 case "$option" in
480 [Oo])
481 ENCODER="oggenc"
482 ENC_OPTS=$VORBIS_OPTS
484 [Ss])
485 ENCODER="speexenc"
486 ENC_OPTS=$SPEEX_OPTS
488 [Ll])
489 ENCODER="lame"
490 ENC_OPTS=$LAME_OPTS
493 ENCODER=$DEFAULT_ENC
494 ENC_OPTS=$DEFAULT_ENC_OPTS
495 esac
496 echo "Using $ENCODER for encoding voice clips"
498 # Allow the user to input manual commandline options
499 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
500 USER_ENC_OPTS=`input`
501 if [ -n "$USER_ENC_OPTS" ]; then
502 ENC_OPTS=$USER_ENC_OPTS
505 TEMPDIR="${pwd}"
506 if [ -f "`which cygpath`" ]; then
507 TEMPDIR=`cygpath . -a -w`
511 picklang() {
512 # figure out which languages that are around
513 for file in $rootdir/apps/lang/*.lang; do
514 clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
515 langs="$langs $clean"
516 done
518 num=1
519 for one in $langs; do
520 echo "$num. $one"
521 num=`expr $num + 1`
522 done
524 read pick
527 whichlang() {
528 output=""
529 # Allow the user to pass a comma-separated list of langauges
530 for thispick in `echo $pick | sed 's/,/ /g'`; do
531 num=1
532 for one in $langs; do
533 # Accept both the language number and name
534 if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
535 if [ "$output" = "" ]; then
536 output=$one
537 else
538 output=$output,$one
541 num=`expr $num + 1`
542 done
543 done
544 echo $output
547 opt=$1
549 if test "$opt" = "--help"; then
550 echo "Rockbox configure script."
551 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
552 echo "Do *NOT* run this within the tools directory!"
553 echo ""
554 echo "Usage: configure [--ccache][--no-ccache]"
555 exit
558 if test -r "configure"; then
559 # this is a check for a configure script in the current directory, it there
560 # is one, try to figure out if it is this one!
562 if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
563 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
564 echo "It will only cause you pain and grief. Instead do this:"
565 echo ""
566 echo " cd .."
567 echo " mkdir build-dir"
568 echo " cd build-dir"
569 echo " ../tools/configure"
570 echo ""
571 echo "Much happiness will arise from this. Enjoy"
572 exit
576 # get our current directory
577 pwd=`pwd`;
579 if { echo $pwd | grep " "; } then
580 echo "You're running this script in a path that contains space. The build"
581 echo "system is unfortunately not clever enough to deal with this. Please"
582 echo "run the script from a different path, rename the path or fix the build"
583 echo "system!"
584 exit
587 if [ -z "$rootdir" ]; then
588 ##################################################################
589 # Figure out where the source code root is!
591 rootdir=`dirname $0`/../
593 #####################################################################
594 # Convert the possibly relative directory name to an absolute version
596 now=`pwd`
597 cd $rootdir
598 rootdir=`pwd`
600 # cd back to the build dir
601 cd $now
604 apps="apps"
605 appsdir='\$(ROOTDIR)/apps'
606 firmdir='\$(ROOTDIR)/firmware'
607 toolsdir='\$(ROOTDIR)/tools'
610 ##################################################################
611 # Figure out target platform
614 echo "Enter target platform:"
615 cat <<EOF
616 ==Archos== ==iriver== ==Apple iPod==
617 0) Player/Studio 10) H120/H140 20) Color/Photo
618 1) Recorder 11) H320/H340 21) Nano
619 2) FM Recorder 12) iHP-100/110/115 22) Video
620 3) Recorder v2 13) iFP-790 23) 3G
621 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
622 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
623 6) AV300 26) Mini 2G
624 27) 1G, 2G
626 ==iAudio== ==Toshiba== ==SanDisk==
627 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
628 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
629 32) 7 52) Sansa c200
631 ==Tatung== ==Olympus== ==Logik==
632 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
635 buildfor=`input`;
637 # Set of tools built for all target platforms:
638 toolset="rdf2binary convbdf codepages"
640 # Toolsets for some target families:
641 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
642 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
643 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
644 ipodbitmaptools="$toolset scramble ipod_fw bmp2rb"
645 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
646 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
647 # generic is used by IFP, H10, Sansa-e200
648 genericbitmaptools="$toolset bmp2rb"
651 # ---- For each target ----
653 # *Variables*
654 # target_id: a unique number identifying this target, DOES NOT necessarily
655 # have to be the menu number. Just use the currently highest
656 # number+1 when you add a new target.
657 # archos: short model name used all over to identify this target
658 # memory: number of megabytes of RAM this target has. If the amount can
659 # be selected by the size prompt, let memory be unset here
660 # target: -Ddefine passed to the build commands to make the correct
661 # config-*.h file get included etc
662 # tool: the tool that takes a plain binary and converts that into a
663 # working "firmware" file for your target
664 # output: the final output file name
665 # boottool: the tool that takes a plain binary and generates a bootloader
666 # file for your target (or blank to use $tool)
667 # bootoutput:the final output file name for the bootloader (or blank to use
668 # $output)
669 # appextra: passed to the APPEXTRA variable in the Makefiles.
670 # TODO: add proper explanation
671 # archosrom: used only for Archos targets that build a special flashable .ucl
672 # image. Set to blank for other builds.
673 # flash: the same as archosrom. These two should be merged
674 # plugins: set to 'yes' to build the plugins. Early development builds can
675 # set this to no in the early stages to have an easier life for a
676 # while
677 # swcodec: set 'yes' on swcodec targets
678 # toolset: lists what particular tools in the tools/ directory that this
679 # target needs to have built prior to building Rockbox
681 # *Functions*
682 # *cc: sets up gcc and compiler options for your target builds. Note
683 # that if you select a simulator build, the compiler selection is
684 # overridden later in the script.
686 case $buildfor in
688 0|player)
689 target_id=1
690 archos="player"
691 target="-DARCHOS_PLAYER"
692 shcc
693 tool="$rootdir/tools/scramble"
694 output="archos.mod"
695 appextra="player:gui"
696 archosrom="$pwd/rombox.ucl"
697 flash="$pwd/rockbox.ucl"
698 plugins="yes"
699 swcodec=""
701 # toolset is the tools within the tools directory that we build for
702 # this particular target.
703 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
705 # Note: the convbdf is present in the toolset just because: 1) the
706 # firmware/Makefile assumes it is present always, and 2) we will need it when we
707 # build the player simulator
709 t_cpu="sh"
710 t_manufacturer="archos"
711 t_model="player"
714 1|recorder)
715 target_id=2
716 archos="recorder"
717 target="-DARCHOS_RECORDER"
718 shcc
719 tool="$rootdir/tools/scramble"
720 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
721 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
722 output="ajbrec.ajz"
723 appextra="recorder:gui"
724 archosrom="" #"$pwd/rombox.ucl"
725 flash="$pwd/rockbox.ucl"
726 plugins="yes"
727 swcodec=""
728 # toolset is the tools within the tools directory that we build for
729 # this particular target.
730 toolset=$archosbitmaptools
731 t_cpu="sh"
732 t_manufacturer="archos"
733 t_model="recorder"
736 2|fmrecorder)
737 target_id=3
738 archos="fmrecorder"
739 target="-DARCHOS_FMRECORDER"
740 shcc
741 tool="$rootdir/tools/scramble -fm"
742 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
743 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
744 output="ajbrec.ajz"
745 appextra="recorder:gui"
746 archosrom="" #"$pwd/rombox.ucl"
747 flash="$pwd/rockbox.ucl"
748 plugins="yes"
749 swcodec=""
750 # toolset is the tools within the tools directory that we build for
751 # this particular target.
752 toolset=$archosbitmaptools
753 t_cpu="sh"
754 t_manufacturer="archos"
755 t_model="fm_v2"
758 3|recorderv2)
759 target_id=4
760 archos="recorderv2"
761 target="-DARCHOS_RECORDERV2"
762 shcc
763 tool="$rootdir/tools/scramble -v2"
764 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
765 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
766 output="ajbrec.ajz"
767 appextra="recorder:gui"
768 archosrom="" #"$pwd/rombox.ucl"
769 flash="$pwd/rockbox.ucl"
770 plugins="yes"
771 swcodec=""
772 # toolset is the tools within the tools directory that we build for
773 # this particular target.
774 toolset=$archosbitmaptools
775 t_cpu="sh"
776 t_manufacturer="archos"
777 t_model="fm_v2"
780 4|ondiosp)
781 target_id=7
782 archos="ondiosp"
783 target="-DARCHOS_ONDIOSP"
784 shcc
785 tool="$rootdir/tools/scramble -osp"
786 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
787 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
788 output="ajbrec.ajz"
789 appextra="recorder:gui"
790 archosrom="$pwd/rombox.ucl"
791 flash="$pwd/rockbox.ucl"
792 plugins="yes"
793 swcodec=""
794 # toolset is the tools within the tools directory that we build for
795 # this particular target.
796 toolset=$archosbitmaptools
797 t_cpu="sh"
798 t_manufacturer="archos"
799 t_model="ondio"
802 5|ondiofm)
803 target_id=8
804 archos="ondiofm"
805 target="-DARCHOS_ONDIOFM"
806 shcc
807 tool="$rootdir/tools/scramble -ofm"
808 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
809 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
810 output="ajbrec.ajz"
811 appextra="recorder:gui"
812 archosrom="" #"$pwd/rombox.ucl"
813 flash="$pwd/rockbox.ucl"
814 plugins="yes"
815 swcodec=""
816 toolset=$archosbitmaptools
817 t_cpu="sh"
818 t_manufacturer="archos"
819 t_model="ondio"
822 6|av300)
823 target_id=26
824 archos="av300"
825 target="-DARCHOS_AV300"
826 memory=16 # always
827 arm7tdmicc
828 tool="$rootdir/tools/scramble -mm=C"
829 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
830 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
831 output="cjbm.ajz"
832 appextra="recorder:gui"
833 archosrom=""
834 flash=""
835 plugins="yes"
836 swcodec=""
837 # toolset is the tools within the tools directory that we build for
838 # this particular target.
839 toolset="$toolset scramble descramble bmp2rb"
840 # architecture, manufacturer and model for the target-tree build
841 t_cpu="arm"
842 t_manufacturer="archos"
843 t_model="av300"
846 10|h120)
847 target_id=9
848 archos="h120"
849 target="-DIRIVER_H120"
850 memory=32 # always
851 coldfirecc
852 tool="$rootdir/tools/scramble -add=h120"
853 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
854 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
855 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
856 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
857 output="rockbox.iriver"
858 appextra="recorder:gui"
859 archosrom=""
860 flash="$pwd/rombox.iriver"
861 plugins="yes"
862 swcodec="yes"
863 # toolset is the tools within the tools directory that we build for
864 # this particular target.
865 toolset=$iriverbitmaptools
866 t_cpu="coldfire"
867 t_manufacturer="iriver"
868 t_model="h100"
871 11|h300)
872 target_id=10
873 archos="h300"
874 target="-DIRIVER_H300"
875 memory=32 # always
876 coldfirecc
877 tool="$rootdir/tools/scramble -add=h300"
878 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
879 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
880 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
881 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
882 output="rockbox.iriver"
883 appextra="recorder:gui"
884 archosrom=""
885 flash=""
886 plugins="yes"
887 swcodec="yes"
888 # toolset is the tools within the tools directory that we build for
889 # this particular target.
890 toolset=$iriverbitmaptools
891 t_cpu="coldfire"
892 t_manufacturer="iriver"
893 t_model="h300"
896 12|h100)
897 target_id=11
898 archos="h100"
899 target="-DIRIVER_H100"
900 memory=16 # always
901 coldfirecc
902 tool="$rootdir/tools/scramble -add=h100"
903 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
904 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
905 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
906 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
907 output="rockbox.iriver"
908 appextra="recorder:gui"
909 archosrom=""
910 flash=""
911 plugins="yes"
912 swcodec="yes"
913 # toolset is the tools within the tools directory that we build for
914 # this particular target.
915 toolset=$iriverbitmaptools
916 t_cpu="coldfire"
917 t_manufacturer="iriver"
918 t_model="h100"
921 13|ifp7xx)
922 target_id=19
923 archos="ifp7xx"
924 target="-DIRIVER_IFP7XX"
925 memory=1
926 arm7tdmicc short
927 tool="cp"
928 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
929 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
930 output="rockbox.wma"
931 appextra="recorder:gui"
932 archosrom=""
933 flash=""
934 plugins="yes"
935 swcodec="yes"
936 # toolset is the tools within the tools directory that we build for
937 # this particular target.
938 toolset=$genericbitmaptools
939 t_cpu="arm"
940 t_manufacturer="pnx0101"
941 t_model="iriver-ifp7xx"
944 14|h10)
945 target_id=22
946 archos="h10"
947 target="-DIRIVER_H10"
948 memory=32 # always
949 arm7tdmicc
950 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
951 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
952 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
953 output="rockbox.mi4"
954 appextra="recorder:gui"
955 archosrom=""
956 flash=""
957 plugins="yes"
958 swcodec="yes"
959 boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
960 bootoutput="H10_20GC.mi4"
961 # toolset is the tools within the tools directory that we build for
962 # this particular target.
963 toolset="$genericbitmaptools scramble"
964 # architecture, manufacturer and model for the target-tree build
965 t_cpu="arm"
966 t_manufacturer="iriver"
967 t_model="h10"
970 15|h10_5gb)
971 target_id=24
972 archos="h10_5gb"
973 target="-DIRIVER_H10_5GB"
974 memory=32 # always
975 arm7tdmicc
976 tool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
977 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
978 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
979 output="rockbox.mi4"
980 appextra="recorder:gui"
981 archosrom=""
982 flash=""
983 plugins="yes"
984 swcodec="yes"
985 boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
986 bootoutput="H10.mi4"
987 # toolset is the tools within the tools directory that we build for
988 # this particular target.
989 toolset="$genericbitmaptools scramble"
990 # architecture, manufacturer and model for the target-tree build
991 t_cpu="arm"
992 t_manufacturer="iriver"
993 t_model="h10"
996 20|ipodcolor)
997 target_id=13
998 archos="ipodcolor"
999 target="-DIPOD_COLOR"
1000 memory=32 # always
1001 arm7tdmicc
1002 tool="$rootdir/tools/scramble -add=ipco"
1003 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1004 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1005 output="rockbox.ipod"
1006 appextra="recorder:gui"
1007 archosrom=""
1008 flash=""
1009 plugins="yes"
1010 swcodec="yes"
1011 bootoutput="bootloader-$archos.ipod"
1012 # toolset is the tools within the tools directory that we build for
1013 # this particular target.
1014 toolset=$ipodbitmaptools
1015 # architecture, manufacturer and model for the target-tree build
1016 t_cpu="arm"
1017 t_manufacturer="ipod"
1018 t_model="color"
1021 21|ipodnano)
1022 target_id=14
1023 archos="ipodnano"
1024 target="-DIPOD_NANO"
1025 memory=32 # always
1026 arm7tdmicc
1027 tool="$rootdir/tools/scramble -add=nano"
1028 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1029 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1030 output="rockbox.ipod"
1031 appextra="recorder:gui"
1032 archosrom=""
1033 flash=""
1034 plugins="yes"
1035 swcodec="yes"
1036 bootoutput="bootloader-$archos.ipod"
1037 # toolset is the tools within the tools directory that we build for
1038 # this particular target.
1039 toolset=$ipodbitmaptools
1040 # architecture, manufacturer and model for the target-tree build
1041 t_cpu="arm"
1042 t_manufacturer="ipod"
1043 t_model="nano"
1046 22|ipodvideo)
1047 target_id=15
1048 archos="ipodvideo"
1049 target="-DIPOD_VIDEO"
1050 arm7tdmicc
1051 tool="$rootdir/tools/scramble -add=ipvd"
1052 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1053 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1054 output="rockbox.ipod"
1055 appextra="recorder:gui"
1056 archosrom=""
1057 flash=""
1058 plugins="yes"
1059 swcodec="yes"
1060 bootoutput="bootloader-$archos.ipod"
1061 # toolset is the tools within the tools directory that we build for
1062 # this particular target.
1063 toolset=$ipodbitmaptools
1064 # architecture, manufacturer and model for the target-tree build
1065 t_cpu="arm"
1066 t_manufacturer="ipod"
1067 t_model="video"
1070 23|ipod3g)
1071 target_id=16
1072 archos="ipod3g"
1073 target="-DIPOD_3G"
1074 memory=32 # always
1075 arm7tdmicc
1076 tool="$rootdir/tools/scramble -add=ip3g"
1077 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1078 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1079 output="rockbox.ipod"
1080 appextra="recorder:gui"
1081 archosrom=""
1082 flash=""
1083 plugins="yes"
1084 swcodec="yes"
1085 bootoutput="bootloader-$archos.ipod"
1086 # toolset is the tools within the tools directory that we build for
1087 # this particular target.
1088 toolset=$ipodbitmaptools
1089 # architecture, manufacturer and model for the target-tree build
1090 t_cpu="arm"
1091 t_manufacturer="ipod"
1092 t_model="3g"
1095 24|ipod4g)
1096 target_id=17
1097 archos="ipod4g"
1098 target="-DIPOD_4G"
1099 memory=32 # always
1100 arm7tdmicc
1101 tool="$rootdir/tools/scramble -add=ip4g"
1102 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1103 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1104 output="rockbox.ipod"
1105 appextra="recorder:gui"
1106 archosrom=""
1107 flash=""
1108 plugins="yes"
1109 swcodec="yes"
1110 bootoutput="bootloader-$archos.ipod"
1111 # toolset is the tools within the tools directory that we build for
1112 # this particular target.
1113 toolset=$ipodbitmaptools
1114 # architecture, manufacturer and model for the target-tree build
1115 t_cpu="arm"
1116 t_manufacturer="ipod"
1117 t_model="4g"
1120 25|ipodmini)
1121 target_id=18
1122 archos="ipodmini"
1123 target="-DIPOD_MINI"
1124 memory=32 # always
1125 arm7tdmicc
1126 tool="$rootdir/tools/scramble -add=mini"
1127 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1128 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1129 output="rockbox.ipod"
1130 appextra="recorder:gui"
1131 archosrom=""
1132 flash=""
1133 plugins="yes"
1134 swcodec="yes"
1135 bootoutput="bootloader-$archos.ipod"
1136 # toolset is the tools within the tools directory that we build for
1137 # this particular target.
1138 toolset=$ipodbitmaptools
1139 # architecture, manufacturer and model for the target-tree build
1140 t_cpu="arm"
1141 t_manufacturer="ipod"
1142 t_model="mini"
1145 26|ipodmini2g)
1146 target_id=21
1147 archos="ipodmini2g"
1148 target="-DIPOD_MINI2G"
1149 memory=32 # always
1150 arm7tdmicc
1151 tool="$rootdir/tools/scramble -add=mn2g"
1152 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1153 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1154 output="rockbox.ipod"
1155 appextra="recorder:gui"
1156 archosrom=""
1157 flash=""
1158 plugins="yes"
1159 swcodec="yes"
1160 bootoutput="bootloader-$archos.ipod"
1161 # toolset is the tools within the tools directory that we build for
1162 # this particular target.
1163 toolset=$ipodbitmaptools
1164 # architecture, manufacturer and model for the target-tree build
1165 t_cpu="arm"
1166 t_manufacturer="ipod"
1167 t_model="mini2g"
1170 27|ipod1g2g)
1171 target_id=29
1172 archos="ipod1g2g"
1173 target="-DIPOD_1G2G"
1174 memory=32 # always
1175 arm7tdmicc
1176 tool="$rootdir/tools/scramble -add=1g2g"
1177 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1178 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1179 output="rockbox.ipod"
1180 appextra="recorder:gui"
1181 archosrom=""
1182 flash=""
1183 plugins="yes"
1184 swcodec="yes"
1185 bootoutput="bootloader-$archos.ipod"
1186 # toolset is the tools within the tools directory that we build for
1187 # this particular target.
1188 toolset=$ipodbitmaptools
1189 # architecture, manufacturer and model for the target-tree build
1190 t_cpu="arm"
1191 t_manufacturer="ipod"
1192 t_model="1g2g"
1195 30|x5)
1196 target_id=12
1197 archos="x5"
1198 target="-DIAUDIO_X5"
1199 memory=16 # always
1200 coldfirecc
1201 tool="$rootdir/tools/scramble -add=iax5"
1202 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1203 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1204 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1205 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1206 output="rockbox.iaudio"
1207 appextra="recorder:gui"
1208 archosrom=""
1209 flash=""
1210 plugins="yes"
1211 swcodec="yes"
1212 # toolset is the tools within the tools directory that we build for
1213 # this particular target.
1214 toolset="$iaudiobitmaptools"
1215 # architecture, manufacturer and model for the target-tree build
1216 t_cpu="coldfire"
1217 t_manufacturer="iaudio"
1218 t_model="x5"
1221 31|m5)
1222 target_id=28
1223 archos="m5"
1224 target="-DIAUDIO_M5"
1225 memory=16 # always
1226 coldfirecc
1227 tool="$rootdir/tools/scramble -add=iam5"
1228 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1229 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
1230 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1231 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1232 output="rockbox.iaudio"
1233 appextra="recorder:gui"
1234 archosrom=""
1235 flash=""
1236 plugins="yes"
1237 swcodec="yes"
1238 # toolset is the tools within the tools directory that we build for
1239 # this particular target.
1240 toolset="$iaudiobitmaptools"
1241 # architecture, manufacturer and model for the target-tree build
1242 t_cpu="coldfire"
1243 t_manufacturer="iaudio"
1244 t_model="m5"
1247 40|gigabeatf)
1248 target_id=20
1249 archos="gigabeatf"
1250 target="-DGIGABEAT_F"
1251 memory=32 # always
1252 arm9tdmicc
1253 tool="$rootdir/tools/scramble -add=giga"
1254 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1255 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1256 output="rockbox.gigabeat"
1257 appextra="recorder:gui"
1258 archosrom=""
1259 flash=""
1260 plugins="yes"
1261 swcodec="yes"
1262 toolset=$gigabeatbitmaptools
1263 boottool="$rootdir/tools/scramble -gigabeat"
1264 bootoutput="FWIMG01.DAT"
1265 # architecture, manufacturer and model for the target-tree build
1266 t_cpu="arm"
1267 t_manufacturer="s3c2440"
1268 t_model="gigabeat-fx"
1271 41|gigabeats)
1272 target_id=26
1273 archos="gigabeats"
1274 target="-DGIGABEAT_S"
1275 memory=32 # always
1276 arm9tdmicc
1277 tool="$rootdir/tools/scramble -add=gigs"
1278 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1279 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1280 output="rockbox.gigabeat"
1281 appextra="recorder:gui"
1282 archosrom=""
1283 flash=""
1284 plugins=""
1285 swcodec="yes"
1286 toolset="$gigabeatbitmaptools mknkboot"
1287 boottool="$rootdir/tools/scramble -gigabeats"
1288 bootoutput="nk.bin"
1289 # architecture, manufacturer and model for the target-tree build
1290 t_cpu="arm"
1291 t_manufacturer="imx31"
1292 t_model="gigabeat-s"
1295 70|mrobe500)
1296 target_id=20
1297 archos="mrobe500"
1298 target="-DMROBE_500"
1299 memory=64 # always
1300 arm9tdmicc
1301 # tool="$rootdir/tools/scramble -add=m500"
1302 tool="cp "
1303 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1304 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1305 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1306 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1307 output="rockbox.mrobe500"
1308 appextra="recorder:gui"
1309 archosrom=""
1310 flash=""
1311 plugins="yes"
1312 swcodec="yes"
1313 toolset=$gigabeatbitmaptools
1314 boottool="cp "
1315 bootoutput="rockbox.mrboot"
1316 # architecture, manufacturer and model for the target-tree build
1317 t_cpu="arm"
1318 t_manufacturer="tms320dm320"
1319 t_model="mrobe-500"
1322 80|logikdax)
1323 target_id=31
1324 archos="logikdax"
1325 target="-DLOGIK_DAX"
1326 memory=2 # always
1327 arm946cc
1328 tool="$rootdir/tools/scramble -add=ldax"
1329 boottool="$rootdir/tools/scramble -tcc=crc"
1330 bootoutput="player.rom"
1331 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1332 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1333 output="rockbox.logik"
1334 appextra="recorder:gui"
1335 archosrom=""
1336 flash=""
1337 plugins="no"
1338 swcodec="yes"
1339 # toolset is the tools within the tools directory that we build for
1340 # this particular target.
1341 toolset=$tccbitmaptools
1342 # architecture, manufacturer and model for the target-tree build
1343 t_cpu="arm"
1344 t_manufacturer="tcc77x"
1345 t_model="logikdax"
1348 50|e200)
1349 target_id=23
1350 archos="e200"
1351 target="-DSANSA_E200"
1352 memory=32 # supposedly
1353 arm7tdmicc
1354 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1355 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1356 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1357 output="rockbox.mi4"
1358 appextra="recorder:gui"
1359 archosrom=""
1360 flash=""
1361 plugins="yes"
1362 swcodec="yes"
1363 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1364 bootoutput="PP5022.mi4"
1365 # toolset is the tools within the tools directory that we build for
1366 # this particular target.
1367 toolset="$genericbitmaptools scramble"
1368 # architecture, manufacturer and model for the target-tree build
1369 t_cpu="arm"
1370 t_manufacturer="sandisk"
1371 t_model="sansa-e200"
1374 51|e200r)
1375 # the e200R model is pretty much identical to the e200, it only has a
1376 # different option to the scramble tool when building a bootloader and
1377 # makes the bootloader output file name in all lower case.
1378 target_id=27
1379 archos="e200r"
1380 target="-DSANSA_E200"
1381 memory=32 # supposedly
1382 arm7tdmicc
1383 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1384 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1385 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1386 output="rockbox.mi4"
1387 appextra="recorder:gui"
1388 archosrom=""
1389 flash=""
1390 plugins="yes"
1391 swcodec="yes"
1392 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1393 bootoutput="pp5022.mi4"
1394 # toolset is the tools within the tools directory that we build for
1395 # this particular target.
1396 toolset="$genericbitmaptools scramble"
1397 # architecture, manufacturer and model for the target-tree build
1398 t_cpu="arm"
1399 t_manufacturer="sandisk"
1400 t_model="sansa-e200"
1403 52|c200)
1404 target_id=30
1405 archos="c200"
1406 target="-DSANSA_C200"
1407 memory=32 # supposedly
1408 arm7tdmicc
1409 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1410 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1411 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1412 output="rockbox.mi4"
1413 appextra="recorder:gui"
1414 archosrom=""
1415 flash=""
1416 plugins="yes"
1417 swcodec="yes"
1418 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1419 bootoutput="firmware.mi4"
1420 # toolset is the tools within the tools directory that we build for
1421 # this particular target.
1422 toolset="$genericbitmaptools scramble"
1423 # architecture, manufacturer and model for the target-tree build
1424 t_cpu="arm"
1425 t_manufacturer="sandisk"
1426 t_model="sansa-c200"
1429 60|tpj1022)
1430 target_id=25
1431 archos="tpj1022"
1432 target="-DELIO_TPJ1022"
1433 memory=32 # always
1434 arm7tdmicc
1435 tool="$rootdir/tools/scramble -add tpj2"
1436 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1437 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1438 output="rockbox.elio"
1439 appextra="recorder:gui"
1440 archosrom=""
1441 flash=""
1442 plugins="yes"
1443 swcodec="yes"
1444 boottool="$rootdir/tools/scramble -mi4v2"
1445 bootoutput="pp5020.mi4"
1446 # toolset is the tools within the tools directory that we build for
1447 # this particular target.
1448 toolset="$genericbitmaptools scramble"
1449 # architecture, manufacturer and model for the target-tree build
1450 t_cpu="arm"
1451 t_manufacturer="tatung"
1452 t_model="tpj1022"
1455 32|iaudio7)
1456 target_id=32
1457 archos="iaudio7"
1458 target="-DIAUDIO_7"
1459 memory=16 # always
1460 arm946cc
1461 tool="$rootdir/tools/scramble -add i7"
1462 boottool="$rootdir/tools/scramble -tcc=crc"
1463 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1464 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1465 output="rockbox.iaudio"
1466 appextra="recorder:gui"
1467 archosrom=""
1468 flash=""
1469 plugins="yes"
1470 swcodec="yes"
1471 bootoutput="I7_FW.BIN"
1472 # toolset is the tools within the tools directory that we build for
1473 # this particular target.
1474 toolset="$tccbitmaptools"
1475 # architecture, manufacturer and model for the target-tree build
1476 t_cpu="arm"
1477 t_manufacturer="tcc77x"
1478 t_model="iaudio7"
1482 echo "Please select a supported target platform!"
1483 exit
1486 esac
1488 echo "Platform set to $archos"
1491 #remove start
1492 ############################################################################
1493 # Amount of memory, for those that can differ. They have $memory unset at
1494 # this point.
1497 if [ -z "$memory" ]; then
1499 case $target_id in
1501 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1502 size=`input`;
1503 case $size in
1504 60|64)
1505 memory="64"
1508 memory="32"
1510 esac
1514 echo "Enter size of your RAM (in MB): (defaults to 2)"
1515 size=`input`;
1516 case $size in
1518 memory="8"
1521 memory="2"
1523 esac
1525 esac
1527 echo "Memory size selected: $memory MB"
1529 #remove end
1531 ##################################################################
1532 # Figure out build "type"
1535 # the ifp7x0 is the only platform that supports building a gdb stub like
1536 # this
1537 case $archos in
1538 ifp7xx)
1539 gdbstub="(G)DB stub, "
1541 e200r|e200)
1542 gdbstub="(I)installer, "
1546 esac
1548 echo ""
1549 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1551 option=`input`;
1553 case $option in
1554 [Ii])
1555 appsdir='\$(ROOTDIR)/bootloader'
1556 apps="bootloader"
1557 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
1558 bootloader="1"
1559 echo "e200R-installer build selected"
1561 [Bb])
1562 if test $t_manufacturer = "archos"; then
1563 # Archos SH-based players do this somewhat differently for
1564 # some reason
1565 appsdir='\$(ROOTDIR)/flash/bootbox'
1566 apps="bootbox"
1567 else
1568 appsdir='\$(ROOTDIR)/bootloader'
1569 apps="bootloader"
1570 flash=""
1571 if test -n "$boottool"; then
1572 tool="$boottool"
1574 if test -n "$bootoutput"; then
1575 output=$bootoutput
1578 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
1579 bootloader="1"
1580 echo "Bootloader build selected"
1582 [Ss])
1583 debug="-DDEBUG"
1584 simulator="yes"
1585 extradefines="-DSIMULATOR"
1586 echo "Simulator build selected"
1588 [Aa])
1589 echo "Advanced build selected"
1590 whichadvanced
1592 [Gg])
1593 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1594 appsdir='\$(ROOTDIR)/gdb'
1595 apps="stub"
1596 case $archos in
1597 ifp7xx)
1598 output="stub.wma"
1602 esac
1603 echo "GDB stub build selected"
1605 [Mm])
1606 appsdir='\$(ROOTDIR)/manual'
1607 firmdir='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ig:res target
1608 toolsdir=$firmdir;
1609 toolset='';
1610 apps="manual"
1611 echo "Manual build selected"
1614 debug=""
1615 echo "Normal build selected"
1618 esac
1619 # to be able running "make manual" from non-manual configuration
1620 case $archos in
1621 fmrecorder)
1622 manualdev="recorderv2fm"
1624 recorderv2)
1625 manualdev="recorderv2fm"
1627 h1??)
1628 manualdev="h1xx"
1630 ipodmini2g)
1631 manualdev="ipodmini"
1634 manualdev=$archos
1636 esac
1638 if [ -z "$debug" ]; then
1639 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
1642 echo "Using source code root directory: $rootdir"
1644 # this was once possible to change at build-time, but no more:
1645 language="english"
1647 uname=`uname`
1649 if [ "yes" = "$simulator" ]; then
1650 # setup compiler and things for simulator
1651 simcc
1653 if [ -d "archos" ]; then
1654 echo "sub directory archos already present"
1655 else
1656 mkdir archos
1657 echo "created an archos subdirectory for simulating the hard disk"
1661 # Now, figure out version number of the (gcc) compiler we are about to use
1662 gccver=`$CC -dumpversion`;
1664 # figure out the binutil version too and display it, mostly for the build
1665 # system etc to be able to see it easier
1666 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
1668 if [ -z "$gccver" ]; then
1669 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1670 echo "WARNING: this may cause your build to fail since we cannot do the"
1671 echo "WARNING: checks we want now."
1672 else
1674 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1675 # DEPEND on it
1677 num1=`echo $gccver | cut -d . -f1`
1678 num2=`echo $gccver | cut -d . -f2`
1679 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1681 # This makes:
1682 # 3.3.X => 303
1683 # 3.4.X => 304
1684 # 2.95.3 => 295
1686 echo "Using $CC $gccver ($gccnum)"
1688 if test "$gccnum" -ge "400"; then
1689 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1690 # so we ignore that warnings for now
1691 # -Wno-pointer-sign
1692 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
1695 if test "$gccnum" -ge "401"; then
1696 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1697 # will break strict-aliasing rules"
1699 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
1702 if test "$gccnum" -ge "402"; then
1703 # disable warning about "warning: initialized field overwritten" as gcc 4.2
1704 # and later would throw it for several valid cases
1705 GCCOPTS="$GCCOPTS -Wno-override-init"
1710 echo "Using $LD $ldver"
1712 # check the compiler for SH platforms
1713 if test "$CC" = "sh-elf-gcc"; then
1714 if test "$gccnum" -lt "400"; then
1715 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1716 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1717 else
1718 # figure out patch status
1719 gccpatch=`$CC --version`;
1721 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
1722 echo "gcc $gccver is rockbox patched"
1723 # then convert -O to -Os to get smaller binaries!
1724 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1725 else
1726 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1727 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1732 if test "$CC" = "m68k-elf-gcc"; then
1733 # convert -O to -Os to get smaller binaries!
1734 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1737 if test "$1" = "--ccache"; then
1738 echo "Enable ccache for building"
1739 ccache="ccache"
1740 else
1741 if test "$1" != "--no-ccache"; then
1742 ccache=`findtool ccache`
1743 if test -n "$ccache"; then
1744 echo "Found and uses ccache ($ccache)"
1749 if test -n "$ccache"; then
1750 CC="$ccache $CC"
1753 if test "X$endian" = "Xbig"; then
1754 defendian="ROCKBOX_BIG_ENDIAN"
1755 else
1756 defendian="ROCKBOX_LITTLE_ENDIAN"
1759 sed > autoconf.h \
1760 -e "s,@ENDIAN@,${defendian},g" \
1761 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1762 -e "s,@config_rtc@,$config_rtc,g" \
1763 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1764 <<EOF
1765 /* This header was made by configure */
1766 #ifndef __BUILD_AUTOCONF_H
1767 #define __BUILD_AUTOCONF_H
1769 /* Define endianess for the target or simulator platform */
1770 #define @ENDIAN@ 1
1772 /* Define this if you build rockbox to support the logf logging and display */
1773 #undef ROCKBOX_HAS_LOGF
1775 /* optional defines for RTC mod for h1x0 */
1776 @config_rtc@
1777 @have_rtc_alarm@
1779 #endif /* __BUILD_AUTOCONF_H */
1782 if test -n "$t_cpu"; then
1783 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1784 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1785 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1786 GCCOPTS="$GCCOPTS"
1789 if test "$simulator" = "yes"; then
1790 # add simul make stuff on the #SIMUL# line
1791 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1792 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1793 else
1794 # delete the lines that match
1795 simmagic1='/@SIMUL1@/D'
1796 simmagic2='/@SIMUL2@/D'
1799 sed > Makefile \
1800 -e "s,@ROOTDIR@,${rootdir},g" \
1801 -e "s,@DEBUG@,${debug},g" \
1802 -e "s,@MEMORY@,${memory},g" \
1803 -e "s,@TARGET_ID@,${target_id},g" \
1804 -e "s,@TARGET@,${target},g" \
1805 -e "s,@CPU@,${t_cpu},g" \
1806 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1807 -e "s,@ARCHOS@,${archos},g" \
1808 -e "s,@LANGUAGE@,${language},g" \
1809 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1810 -e "s,@PWD@,${pwd},g" \
1811 -e "s,@CC@,${CC},g" \
1812 -e "s,@LD@,${LD},g" \
1813 -e "s,@AR@,${AR},g" \
1814 -e "s,@AS@,${AS},g" \
1815 -e "s,@OC@,${OC},g" \
1816 -e "s,@WINDRES@,${WINDRES},g" \
1817 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1818 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1819 -e "s,@RANLIB@,${RANLIB},g" \
1820 -e "s,@TOOL@,${tool},g" \
1821 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1822 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1823 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1824 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1825 -e "s,@OUTPUT@,${output},g" \
1826 -e "s,@APPEXTRA@,${appextra},g" \
1827 -e "s,@ARCHOSROM@,${archosrom},g" \
1828 -e "s,@FLASHFILE@,${flash},g" \
1829 -e "s,@PLUGINS@,${plugins},g" \
1830 -e "s,@CODECS@,${swcodec},g" \
1831 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1832 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1833 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1834 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1835 -e "s!@LDOPTS@!${LDOPTS}!g" \
1836 -e "s,@LOADADDRESS@,${loadaddress},g" \
1837 -e "s,@EXTRADEF@,${extradefines},g" \
1838 -e "s,@APPSDIR@,${appsdir},g" \
1839 -e "s,@FIRMDIR@,${firmdir},g" \
1840 -e "s,@TOOLSDIR@,${toolsdir},g" \
1841 -e "s,@APPS@,${apps},g" \
1842 -e "s,@SIMVER@,${simver},g" \
1843 -e "s,@GCCVER@,${gccver},g" \
1844 -e "s,@GCCNUM@,${gccnum},g" \
1845 -e "s,@UNAME@,${uname},g" \
1846 -e "s,@ENDIAN@,${defendian},g" \
1847 -e "s,@TOOLSET@,${toolset},g" \
1848 -e "${simmagic1}" \
1849 -e "${simmagic2}" \
1850 -e "s,@MANUALDEV@,${manualdev},g" \
1851 -e "s,@ENCODER@,${ENCODER},g" \
1852 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
1853 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
1854 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
1855 <<EOF
1856 ## Automaticly generated. http://www.rockbox.org/
1858 ifndef V
1859 SILENT=@
1860 else
1861 VERBOSEOPT=-v
1862 endif
1864 # old 'make' versions don't have the built-in 'info' function
1865 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1866 ifeq (\$(call info),old)
1867 export info=echo "\$\$(1)";
1868 endif
1870 export ROOTDIR=@ROOTDIR@
1871 export FIRMDIR=@FIRMDIR@
1872 export APPSDIR=@APPSDIR@
1873 export TOOLSDIR=@TOOLSDIR@
1874 export DOCSDIR=\$(ROOTDIR)/docs
1875 export MANUALDIR=\${ROOTDIR}/manual
1876 export DEBUG=@DEBUG@
1877 export ARCHOS=@ARCHOS@
1878 export ARCHOSROM=@ARCHOSROM@
1879 export FLASHFILE=@FLASHFILE@
1880 export TARGET_ID=@TARGET_ID@
1881 export TARGET=@TARGET@
1882 export CPU=@CPU@
1883 export MANUFACTURER=@MANUFACTURER@
1884 export OBJDIR=@PWD@
1885 export BUILDDIR=@PWD@
1886 export LANGUAGE=@LANGUAGE@
1887 export VOICELANGUAGE=@VOICELANGUAGE@
1888 export MEMORYSIZE=@MEMORY@
1889 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1890 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1891 export MKFIRMWARE=@TOOL@
1892 export BMP2RB_MONO=@BMP2RB_MONO@
1893 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1894 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1895 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1896 export BINARY=@OUTPUT@
1897 export APPEXTRA=@APPEXTRA@
1898 export ENABLEDPLUGINS=@PLUGINS@
1899 export SOFTWARECODECS=@CODECS@
1900 export EXTRA_DEFINES=@EXTRADEF@
1901 export HOSTCC=gcc
1902 export CC=@CC@
1903 export LD=@LD@
1904 export AR=@AR@
1905 export AS=@AS@
1906 export OC=@OC@
1907 export WINDRES=@WINDRES@
1908 export DLLTOOL=@DLLTOOL@
1909 export DLLWRAP=@DLLWRAP@
1910 export RANLIB=@RANLIB@
1911 export PROFILE_OPTS=@PROFILE_OPTS@
1912 export SIMVER=@SIMVER@
1913 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1914 export GCCOPTS=@GCCOPTS@
1915 export TARGET_INC=@TARGET_INC@
1916 export LOADADDRESS=@LOADADDRESS@
1917 export SHARED_FLAG=@SHARED_FLAG@
1918 export LDOPTS=@LDOPTS@
1919 export GCCVER=@GCCVER@
1920 export GCCNUM=@GCCNUM@
1921 export UNAME=@UNAME@
1922 export MANUALDEV=@MANUALDEV@
1923 export TTS_OPTS=@TTS_OPTS@
1924 export TTS_ENGINE=@TTS_ENGINE@
1925 export ENC_OPTS=@ENC_OPTS@
1926 export ENCODER=@ENCODER@
1928 # Do not print "Entering directory ..."
1929 MAKEFLAGS += --no-print-directory
1931 .PHONY: all clean tags zip tools manual bin build info
1933 all: info
1935 info: build
1936 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1938 build: tools
1939 @SIMUL1@
1940 @SIMUL2@
1941 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1942 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1944 bin: tools
1945 @SIMUL1@
1946 @SIMUL2@
1947 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1948 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1950 rocks: tools
1951 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1953 veryclean: clean toolsclean
1955 toolsclean:
1956 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1958 clean:
1959 \$(SILENT)echo Cleaning build directory
1960 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1961 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1962 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1963 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
1964 voicefontids *.wav *.mp3 *.voice
1966 tools:
1967 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
1969 tags:
1970 \$(SILENT)rm -f TAGS
1971 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1972 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1973 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1974 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1976 fontzip:
1977 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1979 zip:
1980 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1981 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1983 mapzip:
1984 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1986 fullzip:
1987 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1988 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1990 7zip:
1991 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1992 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1994 tar:
1995 \$(SILENT)rm -f rockbox.tar
1996 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1997 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1999 bzip2: tar
2000 \$(SILENT)bzip2 -f9 rockbox.tar
2002 gzip: tar
2003 \$(SILENT)gzip -f9 rockbox.tar
2005 manual: manual-pdf
2006 manual-pdf:
2007 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
2008 manual-html:
2009 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
2010 manual-zhtml: manual-zip
2011 manual-txt:
2012 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2013 manual-ztxt:
2014 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2015 manual-zip:
2016 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2018 features:
2019 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2021 help:
2022 @echo "A few helpful make targets"
2023 @echo ""
2024 @echo "all - builds a full Rockbox (default), including tools"
2025 @echo "bin - builds only the Rockbox.<target name> file"
2026 @echo "clean - cleans a build directory (not tools)"
2027 @echo "veryclean - cleans the build and tools directories"
2028 @echo "manual - builds a manual"
2029 @echo "manual-html - HTML manual"
2030 @echo "manual-zip - HTML manual (zipped)"
2031 @echo "manual-txt - txt manual"
2032 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2033 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2034 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2035 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2036 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2037 @echo "fontzip - creates rockbox-fonts.zip"
2038 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2039 @echo "tools - builds the tools only"
2040 @echo "install - installs your build (for simulator builds only)"
2044 if [ "yes" = "$simulator" ]; then
2046 cat >> Makefile <<EOF
2048 install:
2049 @echo "installing a full setup in your archos dir"
2050 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
2055 if [ "yes" = "$voice" ]; then
2057 cat >> Makefile <<EOF
2059 voice: tools features
2060 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2061 for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/voice.pl -V -l=\$\$lang -t=\$(ARCHOS)\$\$feat -i=\$(TARGET_ID) -e=\$(ENCODER) -E="\$(ENC_OPTS)" -s=\$(TTS_ENGINE) -S="\$(TTS_OPTS)"; done \\
2066 echo "Created Makefile"