allow building ipodpatcher / sansapatcher with MinGW.
[Rockbox.git] / tools / configure
blobc2c9dca845a48f1981d647be6f23b1eab36c26c2
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 [ "$archos" = "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 [ "$archos" = "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 $archos. 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
604 ==Tatung== ==Olympus== ==Logik==
605 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
608 buildfor=`input`;
610 # Set of tools built for all target platforms:
611 toolset="rdf2binary convbdf codepages"
613 # Toolsets for some target families:
614 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
615 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
616 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
617 ipodbitmaptools="$toolset scramble ipod_fw bmp2rb"
618 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
619 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
620 # generic is used by IFP, H10, Sansa-e200
621 genericbitmaptools="$toolset bmp2rb"
624 # ---- For each target ----
626 # *Variables*
627 # target_id: a unique number identifying this target, DOES NOT necessarily
628 # have to be the menu number. Just use the currently highest
629 # number+1 when you add a new target.
630 # archos: short model name used all over to identify this target
631 # memory: number of megabytes of RAM this target has. If the amount can
632 # be selected by the size prompt, let memory be unset here
633 # target: -Ddefine passed to the build commands to make the correct
634 # config-*.h file get included etc
635 # tool: the tool that takes a plain binary and converts that into a
636 # working "firmware" file for your target
637 # output: the final output file name
638 # boottool: the tool that takes a plain binary and generates a bootloader
639 # file for your target (or blank to use $tool)
640 # bootoutput:the final output file name for the bootloader (or blank to use
641 # $output)
642 # appextra: passed to the APPEXTRA variable in the Makefiles.
643 # TODO: add proper explanation
644 # archosrom: used only for Archos targets that build a special flashable .ucl
645 # image. Set to blank for other builds.
646 # flash: the same as archosrom. These two should be merged
647 # plugins: set to 'yes' to build the plugins. Early development builds can
648 # set this to no in the early stages to have an easier life for a
649 # while
650 # swcodec: set 'yes' on swcodec targets
651 # toolset: lists what particular tools in the tools/ directory that this
652 # target needs to have built prior to building Rockbox
654 # *Functions*
655 # *cc: sets up gcc and compiler options for your target builds. Note
656 # that if you select a simulator build, the compiler selection is
657 # overridden later in the script.
659 case $buildfor in
661 0|player)
662 target_id=1
663 archos="player"
664 target="-DARCHOS_PLAYER"
665 shcc
666 tool="$rootdir/tools/scramble"
667 output="archos.mod"
668 appextra="player:gui"
669 archosrom="$pwd/rombox.ucl"
670 flash="$pwd/rockbox.ucl"
671 plugins="yes"
672 swcodec=""
674 # toolset is the tools within the tools directory that we build for
675 # this particular target.
676 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
678 # Note: the convbdf is present in the toolset just because: 1) the
679 # firmware/Makefile assumes it is present always, and 2) we will need it when we
680 # build the player simulator
682 t_cpu="sh"
683 t_manufacturer="archos"
684 t_model="player"
687 1|recorder)
688 target_id=2
689 archos="recorder"
690 target="-DARCHOS_RECORDER"
691 shcc
692 tool="$rootdir/tools/scramble"
693 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
694 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
695 output="ajbrec.ajz"
696 appextra="recorder:gui"
697 archosrom="" #"$pwd/rombox.ucl"
698 flash="$pwd/rockbox.ucl"
699 plugins="yes"
700 swcodec=""
701 # toolset is the tools within the tools directory that we build for
702 # this particular target.
703 toolset=$archosbitmaptools
704 t_cpu="sh"
705 t_manufacturer="archos"
706 t_model="recorder"
709 2|fmrecorder)
710 target_id=3
711 archos="fmrecorder"
712 target="-DARCHOS_FMRECORDER"
713 shcc
714 tool="$rootdir/tools/scramble -fm"
715 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
716 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
717 output="ajbrec.ajz"
718 appextra="recorder:gui"
719 archosrom="" #"$pwd/rombox.ucl"
720 flash="$pwd/rockbox.ucl"
721 plugins="yes"
722 swcodec=""
723 # toolset is the tools within the tools directory that we build for
724 # this particular target.
725 toolset=$archosbitmaptools
726 t_cpu="sh"
727 t_manufacturer="archos"
728 t_model="fm_v2"
731 3|recorderv2)
732 target_id=4
733 archos="recorderv2"
734 target="-DARCHOS_RECORDERV2"
735 shcc
736 tool="$rootdir/tools/scramble -v2"
737 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
738 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
739 output="ajbrec.ajz"
740 appextra="recorder:gui"
741 archosrom="" #"$pwd/rombox.ucl"
742 flash="$pwd/rockbox.ucl"
743 plugins="yes"
744 swcodec=""
745 # toolset is the tools within the tools directory that we build for
746 # this particular target.
747 toolset=$archosbitmaptools
748 t_cpu="sh"
749 t_manufacturer="archos"
750 t_model="fm_v2"
753 4|ondiosp)
754 target_id=7
755 archos="ondiosp"
756 target="-DARCHOS_ONDIOSP"
757 shcc
758 tool="$rootdir/tools/scramble -osp"
759 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
760 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
761 output="ajbrec.ajz"
762 appextra="recorder:gui"
763 archosrom="$pwd/rombox.ucl"
764 flash="$pwd/rockbox.ucl"
765 plugins="yes"
766 swcodec=""
767 # toolset is the tools within the tools directory that we build for
768 # this particular target.
769 toolset=$archosbitmaptools
770 t_cpu="sh"
771 t_manufacturer="archos"
772 t_model="ondio"
775 5|ondiofm)
776 target_id=8
777 archos="ondiofm"
778 target="-DARCHOS_ONDIOFM"
779 shcc
780 tool="$rootdir/tools/scramble -ofm"
781 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
782 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
783 output="ajbrec.ajz"
784 appextra="recorder:gui"
785 archosrom="" #"$pwd/rombox.ucl"
786 flash="$pwd/rockbox.ucl"
787 plugins="yes"
788 swcodec=""
789 toolset=$archosbitmaptools
790 t_cpu="sh"
791 t_manufacturer="archos"
792 t_model="ondio"
795 6|av300)
796 target_id=26
797 archos="av300"
798 target="-DARCHOS_AV300"
799 memory=16 # always
800 arm7tdmicc
801 tool="$rootdir/tools/scramble -mm=C"
802 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
803 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
804 output="cjbm.ajz"
805 appextra="recorder:gui"
806 archosrom=""
807 flash=""
808 plugins="yes"
809 swcodec=""
810 # toolset is the tools within the tools directory that we build for
811 # this particular target.
812 toolset="$toolset scramble descramble bmp2rb"
813 # architecture, manufacturer and model for the target-tree build
814 t_cpu="arm"
815 t_manufacturer="archos"
816 t_model="av300"
819 10|h120)
820 target_id=9
821 archos="h120"
822 target="-DIRIVER_H120"
823 memory=32 # always
824 coldfirecc
825 tool="$rootdir/tools/scramble -add=h120"
826 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
827 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
828 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
829 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
830 output="rockbox.iriver"
831 appextra="recorder:gui"
832 archosrom=""
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 archos="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 archosrom=""
858 flash=""
859 plugins="yes"
860 swcodec="yes"
861 # toolset is the tools within the tools directory that we build for
862 # this particular target.
863 toolset=$iriverbitmaptools
864 t_cpu="coldfire"
865 t_manufacturer="iriver"
866 t_model="h300"
869 12|h100)
870 target_id=11
871 archos="h100"
872 target="-DIRIVER_H100"
873 memory=16 # always
874 coldfirecc
875 tool="$rootdir/tools/scramble -add=h100"
876 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
877 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
878 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
879 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
880 output="rockbox.iriver"
881 appextra="recorder:gui"
882 archosrom=""
883 flash=""
884 plugins="yes"
885 swcodec="yes"
886 # toolset is the tools within the tools directory that we build for
887 # this particular target.
888 toolset=$iriverbitmaptools
889 t_cpu="coldfire"
890 t_manufacturer="iriver"
891 t_model="h100"
894 13|ifp7xx)
895 target_id=19
896 archos="ifp7xx"
897 target="-DIRIVER_IFP7XX"
898 memory=1
899 arm7tdmicc short
900 tool="cp"
901 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
902 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
903 output="rockbox.wma"
904 appextra="recorder:gui"
905 archosrom=""
906 flash=""
907 plugins="yes"
908 swcodec="yes"
909 # toolset is the tools within the tools directory that we build for
910 # this particular target.
911 toolset=$genericbitmaptools
912 t_cpu="arm"
913 t_manufacturer="pnx0101"
914 t_model="iriver-ifp7xx"
917 14|h10)
918 target_id=22
919 archos="h10"
920 target="-DIRIVER_H10"
921 memory=32 # always
922 arm7tdmicc
923 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
924 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
925 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
926 output="rockbox.mi4"
927 appextra="recorder:gui"
928 archosrom=""
929 flash=""
930 plugins="yes"
931 swcodec="yes"
932 boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
933 bootoutput="H10_20GC.mi4"
934 # toolset is the tools within the tools directory that we build for
935 # this particular target.
936 toolset="$genericbitmaptools scramble"
937 # architecture, manufacturer and model for the target-tree build
938 t_cpu="arm"
939 t_manufacturer="iriver"
940 t_model="h10"
943 15|h10_5gb)
944 target_id=24
945 archos="h10_5gb"
946 target="-DIRIVER_H10_5GB"
947 memory=32 # always
948 arm7tdmicc
949 tool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
950 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
951 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
952 output="rockbox.mi4"
953 appextra="recorder:gui"
954 archosrom=""
955 flash=""
956 plugins="yes"
957 swcodec="yes"
958 boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
959 bootoutput="H10.mi4"
960 # toolset is the tools within the tools directory that we build for
961 # this particular target.
962 toolset="$genericbitmaptools scramble"
963 # architecture, manufacturer and model for the target-tree build
964 t_cpu="arm"
965 t_manufacturer="iriver"
966 t_model="h10"
969 20|ipodcolor)
970 target_id=13
971 archos="ipodcolor"
972 target="-DIPOD_COLOR"
973 memory=32 # always
974 arm7tdmicc
975 tool="$rootdir/tools/scramble -add=ipco"
976 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
977 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
978 output="rockbox.ipod"
979 appextra="recorder:gui"
980 archosrom=""
981 flash=""
982 plugins="yes"
983 swcodec="yes"
984 bootoutput="bootloader-$archos.ipod"
985 # toolset is the tools within the tools directory that we build for
986 # this particular target.
987 toolset=$ipodbitmaptools
988 # architecture, manufacturer and model for the target-tree build
989 t_cpu="arm"
990 t_manufacturer="ipod"
991 t_model="color"
994 21|ipodnano)
995 target_id=14
996 archos="ipodnano"
997 target="-DIPOD_NANO"
998 memory=32 # always
999 arm7tdmicc
1000 tool="$rootdir/tools/scramble -add=nano"
1001 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1002 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1003 output="rockbox.ipod"
1004 appextra="recorder:gui"
1005 archosrom=""
1006 flash=""
1007 plugins="yes"
1008 swcodec="yes"
1009 bootoutput="bootloader-$archos.ipod"
1010 # toolset is the tools within the tools directory that we build for
1011 # this particular target.
1012 toolset=$ipodbitmaptools
1013 # architecture, manufacturer and model for the target-tree build
1014 t_cpu="arm"
1015 t_manufacturer="ipod"
1016 t_model="nano"
1019 22|ipodvideo)
1020 target_id=15
1021 archos="ipodvideo"
1022 target="-DIPOD_VIDEO"
1023 arm7tdmicc
1024 tool="$rootdir/tools/scramble -add=ipvd"
1025 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1026 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1027 output="rockbox.ipod"
1028 appextra="recorder:gui"
1029 archosrom=""
1030 flash=""
1031 plugins="yes"
1032 swcodec="yes"
1033 bootoutput="bootloader-$archos.ipod"
1034 # toolset is the tools within the tools directory that we build for
1035 # this particular target.
1036 toolset=$ipodbitmaptools
1037 # architecture, manufacturer and model for the target-tree build
1038 t_cpu="arm"
1039 t_manufacturer="ipod"
1040 t_model="video"
1043 23|ipod3g)
1044 target_id=16
1045 archos="ipod3g"
1046 target="-DIPOD_3G"
1047 memory=32 # always
1048 arm7tdmicc
1049 tool="$rootdir/tools/scramble -add=ip3g"
1050 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1051 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1052 output="rockbox.ipod"
1053 appextra="recorder:gui"
1054 archosrom=""
1055 flash=""
1056 plugins="yes"
1057 swcodec="yes"
1058 bootoutput="bootloader-$archos.ipod"
1059 # toolset is the tools within the tools directory that we build for
1060 # this particular target.
1061 toolset=$ipodbitmaptools
1062 # architecture, manufacturer and model for the target-tree build
1063 t_cpu="arm"
1064 t_manufacturer="ipod"
1065 t_model="3g"
1068 24|ipod4g)
1069 target_id=17
1070 archos="ipod4g"
1071 target="-DIPOD_4G"
1072 memory=32 # always
1073 arm7tdmicc
1074 tool="$rootdir/tools/scramble -add=ip4g"
1075 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1076 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1077 output="rockbox.ipod"
1078 appextra="recorder:gui"
1079 archosrom=""
1080 flash=""
1081 plugins="yes"
1082 swcodec="yes"
1083 bootoutput="bootloader-$archos.ipod"
1084 # toolset is the tools within the tools directory that we build for
1085 # this particular target.
1086 toolset=$ipodbitmaptools
1087 # architecture, manufacturer and model for the target-tree build
1088 t_cpu="arm"
1089 t_manufacturer="ipod"
1090 t_model="4g"
1093 25|ipodmini)
1094 target_id=18
1095 archos="ipodmini"
1096 target="-DIPOD_MINI"
1097 memory=32 # always
1098 arm7tdmicc
1099 tool="$rootdir/tools/scramble -add=mini"
1100 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1101 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1102 output="rockbox.ipod"
1103 appextra="recorder:gui"
1104 archosrom=""
1105 flash=""
1106 plugins="yes"
1107 swcodec="yes"
1108 bootoutput="bootloader-$archos.ipod"
1109 # toolset is the tools within the tools directory that we build for
1110 # this particular target.
1111 toolset=$ipodbitmaptools
1112 # architecture, manufacturer and model for the target-tree build
1113 t_cpu="arm"
1114 t_manufacturer="ipod"
1115 t_model="mini"
1118 26|ipodmini2g)
1119 target_id=21
1120 archos="ipodmini2g"
1121 target="-DIPOD_MINI2G"
1122 memory=32 # always
1123 arm7tdmicc
1124 tool="$rootdir/tools/scramble -add=mn2g"
1125 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1126 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1127 output="rockbox.ipod"
1128 appextra="recorder:gui"
1129 archosrom=""
1130 flash=""
1131 plugins="yes"
1132 swcodec="yes"
1133 bootoutput="bootloader-$archos.ipod"
1134 # toolset is the tools within the tools directory that we build for
1135 # this particular target.
1136 toolset=$ipodbitmaptools
1137 # architecture, manufacturer and model for the target-tree build
1138 t_cpu="arm"
1139 t_manufacturer="ipod"
1140 t_model="mini2g"
1143 27|ipod1g2g)
1144 target_id=29
1145 archos="ipod1g2g"
1146 target="-DIPOD_1G2G"
1147 memory=32 # always
1148 arm7tdmicc
1149 tool="$rootdir/tools/scramble -add=1g2g"
1150 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1151 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1152 output="rockbox.ipod"
1153 appextra="recorder:gui"
1154 archosrom=""
1155 flash=""
1156 plugins="yes"
1157 swcodec="yes"
1158 bootoutput="bootloader-$archos.ipod"
1159 # toolset is the tools within the tools directory that we build for
1160 # this particular target.
1161 toolset=$ipodbitmaptools
1162 # architecture, manufacturer and model for the target-tree build
1163 t_cpu="arm"
1164 t_manufacturer="ipod"
1165 t_model="1g2g"
1168 30|x5)
1169 target_id=12
1170 archos="x5"
1171 target="-DIAUDIO_X5"
1172 memory=16 # always
1173 coldfirecc
1174 tool="$rootdir/tools/scramble -add=iax5"
1175 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1176 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1177 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1178 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1179 output="rockbox.iaudio"
1180 appextra="recorder:gui"
1181 archosrom=""
1182 flash=""
1183 plugins="yes"
1184 swcodec="yes"
1185 # toolset is the tools within the tools directory that we build for
1186 # this particular target.
1187 toolset="$iaudiobitmaptools"
1188 # architecture, manufacturer and model for the target-tree build
1189 t_cpu="coldfire"
1190 t_manufacturer="iaudio"
1191 t_model="x5"
1194 31|m5)
1195 target_id=28
1196 archos="m5"
1197 target="-DIAUDIO_M5"
1198 memory=16 # always
1199 coldfirecc
1200 tool="$rootdir/tools/scramble -add=iam5"
1201 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1202 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
1203 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1204 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1205 output="rockbox.iaudio"
1206 appextra="recorder:gui"
1207 archosrom=""
1208 flash=""
1209 plugins="yes"
1210 swcodec="yes"
1211 # toolset is the tools within the tools directory that we build for
1212 # this particular target.
1213 toolset="$iaudiobitmaptools"
1214 # architecture, manufacturer and model for the target-tree build
1215 t_cpu="coldfire"
1216 t_manufacturer="iaudio"
1217 t_model="m5"
1220 40|gigabeatf)
1221 target_id=20
1222 archos="gigabeatf"
1223 target="-DGIGABEAT_F"
1224 memory=32 # always
1225 arm9tdmicc
1226 tool="$rootdir/tools/scramble -add=giga"
1227 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1228 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1229 output="rockbox.gigabeat"
1230 appextra="recorder:gui"
1231 archosrom=""
1232 flash=""
1233 plugins="yes"
1234 swcodec="yes"
1235 toolset=$gigabeatbitmaptools
1236 boottool="$rootdir/tools/scramble -gigabeat"
1237 bootoutput="FWIMG01.DAT"
1238 # architecture, manufacturer and model for the target-tree build
1239 t_cpu="arm"
1240 t_manufacturer="s3c2440"
1241 t_model="gigabeat-fx"
1244 41|gigabeats)
1245 target_id=26
1246 archos="gigabeats"
1247 target="-DGIGABEAT_S"
1248 memory=32 # always
1249 arm9tdmicc
1250 tool="$rootdir/tools/scramble -add=gigs"
1251 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1252 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1253 output="rockbox.gigabeat"
1254 appextra="recorder:gui"
1255 archosrom=""
1256 flash=""
1257 plugins=""
1258 swcodec="yes"
1259 toolset="$gigabeatbitmaptools mknkboot"
1260 boottool="$rootdir/tools/scramble -gigabeats"
1261 bootoutput="nk.bin"
1262 # architecture, manufacturer and model for the target-tree build
1263 t_cpu="arm"
1264 t_manufacturer="imx31"
1265 t_model="gigabeat-s"
1268 70|mrobe500)
1269 target_id=20
1270 archos="mrobe500"
1271 target="-DMROBE_500"
1272 memory=64 # always
1273 arm926ejscc
1274 # tool="$rootdir/tools/scramble -add=m500"
1275 tool="cp "
1276 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1277 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1278 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1279 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1280 output="rockbox.mrobe500"
1281 appextra="recorder:gui"
1282 archosrom=""
1283 flash=""
1284 plugins="yes"
1285 swcodec="yes"
1286 toolset=$gigabeatbitmaptools
1287 boottool="cp "
1288 bootoutput="rockbox.mrboot"
1289 # architecture, manufacturer and model for the target-tree build
1290 t_cpu="arm"
1291 t_manufacturer="tms320dm320"
1292 t_model="mrobe-500"
1295 80|logikdax)
1296 target_id=31
1297 archos="logikdax"
1298 target="-DLOGIK_DAX"
1299 memory=2 # always
1300 arm946cc
1301 tool="$rootdir/tools/scramble -add=ldax"
1302 boottool="$rootdir/tools/scramble -tcc=crc"
1303 bootoutput="player.rom"
1304 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1305 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1306 output="rockbox.logik"
1307 appextra="recorder:gui"
1308 archosrom=""
1309 flash=""
1310 plugins="no"
1311 swcodec="yes"
1312 # toolset is the tools within the tools directory that we build for
1313 # this particular target.
1314 toolset=$tccbitmaptools
1315 # architecture, manufacturer and model for the target-tree build
1316 t_cpu="arm"
1317 t_manufacturer="tcc77x"
1318 t_model="logikdax"
1321 50|e200)
1322 target_id=23
1323 archos="e200"
1324 target="-DSANSA_E200"
1325 memory=32 # supposedly
1326 arm7tdmicc
1327 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1328 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1329 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1330 output="rockbox.mi4"
1331 appextra="recorder:gui"
1332 archosrom=""
1333 flash=""
1334 plugins="yes"
1335 swcodec="yes"
1336 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1337 bootoutput="PP5022.mi4"
1338 # toolset is the tools within the tools directory that we build for
1339 # this particular target.
1340 toolset="$genericbitmaptools scramble"
1341 # architecture, manufacturer and model for the target-tree build
1342 t_cpu="arm"
1343 t_manufacturer="sandisk"
1344 t_model="sansa-e200"
1347 51|e200r)
1348 # the e200R model is pretty much identical to the e200, it only has a
1349 # different option to the scramble tool when building a bootloader and
1350 # makes the bootloader output file name in all lower case.
1351 target_id=27
1352 archos="e200r"
1353 target="-DSANSA_E200"
1354 memory=32 # supposedly
1355 arm7tdmicc
1356 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1357 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1358 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1359 output="rockbox.mi4"
1360 appextra="recorder:gui"
1361 archosrom=""
1362 flash=""
1363 plugins="yes"
1364 swcodec="yes"
1365 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1366 bootoutput="pp5022.mi4"
1367 # toolset is the tools within the tools directory that we build for
1368 # this particular target.
1369 toolset="$genericbitmaptools scramble"
1370 # architecture, manufacturer and model for the target-tree build
1371 t_cpu="arm"
1372 t_manufacturer="sandisk"
1373 t_model="sansa-e200"
1376 52|c200)
1377 target_id=30
1378 archos="c200"
1379 target="-DSANSA_C200"
1380 memory=32 # supposedly
1381 arm7tdmicc
1382 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1383 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1384 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1385 output="rockbox.mi4"
1386 appextra="recorder:gui"
1387 archosrom=""
1388 flash=""
1389 plugins="yes"
1390 swcodec="yes"
1391 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1392 bootoutput="firmware.mi4"
1393 # toolset is the tools within the tools directory that we build for
1394 # this particular target.
1395 toolset="$genericbitmaptools scramble"
1396 # architecture, manufacturer and model for the target-tree build
1397 t_cpu="arm"
1398 t_manufacturer="sandisk"
1399 t_model="sansa-c200"
1402 60|tpj1022)
1403 target_id=25
1404 archos="tpj1022"
1405 target="-DELIO_TPJ1022"
1406 memory=32 # always
1407 arm7tdmicc
1408 tool="$rootdir/tools/scramble -add tpj2"
1409 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1410 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1411 output="rockbox.elio"
1412 appextra="recorder:gui"
1413 archosrom=""
1414 flash=""
1415 plugins="yes"
1416 swcodec="yes"
1417 boottool="$rootdir/tools/scramble -mi4v2"
1418 bootoutput="pp5020.mi4"
1419 # toolset is the tools within the tools directory that we build for
1420 # this particular target.
1421 toolset="$genericbitmaptools scramble"
1422 # architecture, manufacturer and model for the target-tree build
1423 t_cpu="arm"
1424 t_manufacturer="tatung"
1425 t_model="tpj1022"
1428 32|iaudio7)
1429 target_id=32
1430 archos="iaudio7"
1431 target="-DIAUDIO_7"
1432 memory=16 # always
1433 arm946cc
1434 tool="$rootdir/tools/scramble -add i7"
1435 boottool="$rootdir/tools/scramble -tcc=crc"
1436 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1437 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1438 output="rockbox.iaudio"
1439 appextra="recorder:gui"
1440 archosrom=""
1441 flash=""
1442 plugins="yes"
1443 swcodec="yes"
1444 bootoutput="I7_FW.BIN"
1445 # toolset is the tools within the tools directory that we build for
1446 # this particular target.
1447 toolset="$tccbitmaptools"
1448 # architecture, manufacturer and model for the target-tree build
1449 t_cpu="arm"
1450 t_manufacturer="tcc77x"
1451 t_model="iaudio7"
1455 echo "Please select a supported target platform!"
1456 exit
1459 esac
1461 echo "Platform set to $archos"
1464 #remove start
1465 ############################################################################
1466 # Amount of memory, for those that can differ. They have $memory unset at
1467 # this point.
1470 if [ -z "$memory" ]; then
1472 case $target_id in
1474 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1475 size=`input`;
1476 case $size in
1477 60|64)
1478 memory="64"
1481 memory="32"
1483 esac
1487 echo "Enter size of your RAM (in MB): (defaults to 2)"
1488 size=`input`;
1489 case $size in
1491 memory="8"
1494 memory="2"
1496 esac
1498 esac
1500 echo "Memory size selected: $memory MB"
1502 #remove end
1504 ##################################################################
1505 # Figure out build "type"
1508 # the ifp7x0 is the only platform that supports building a gdb stub like
1509 # this
1510 case $archos in
1511 ifp7xx)
1512 gdbstub="(G)DB stub, "
1514 e200r|e200)
1515 gdbstub="(I)installer, "
1519 esac
1521 echo ""
1522 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1524 option=`input`;
1526 case $option in
1527 [Ii])
1528 appsdir='\$(ROOTDIR)/bootloader'
1529 apps="bootloader"
1530 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
1531 bootloader="1"
1532 echo "e200R-installer build selected"
1534 [Bb])
1535 if test $t_manufacturer = "archos"; then
1536 # Archos SH-based players do this somewhat differently for
1537 # some reason
1538 appsdir='\$(ROOTDIR)/flash/bootbox'
1539 apps="bootbox"
1540 else
1541 appsdir='\$(ROOTDIR)/bootloader'
1542 apps="bootloader"
1543 flash=""
1544 if test -n "$boottool"; then
1545 tool="$boottool"
1547 if test -n "$bootoutput"; then
1548 output=$bootoutput
1551 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
1552 bootloader="1"
1553 echo "Bootloader build selected"
1555 [Ss])
1556 debug="-DDEBUG"
1557 simulator="yes"
1558 extradefines="-DSIMULATOR"
1559 echo "Simulator build selected"
1561 [Aa])
1562 echo "Advanced build selected"
1563 whichadvanced
1565 [Gg])
1566 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1567 appsdir='\$(ROOTDIR)/gdb'
1568 apps="stub"
1569 case $archos in
1570 ifp7xx)
1571 output="stub.wma"
1575 esac
1576 echo "GDB stub build selected"
1578 [Mm])
1579 appsdir='\$(ROOTDIR)/manual'
1580 firmdir='\$(ROOTDIR)/manual/platform' # No Makefile here. Effectively ig:res target
1581 toolsdir=$firmdir;
1582 toolset='';
1583 apps="manual"
1584 echo "Manual build selected"
1587 if [ "$archos" = "e200r" ]; then
1588 echo "Do not use the e200R target for regular builds. Use e200 instead."
1589 exit
1591 debug=""
1592 echo "Normal build selected"
1595 esac
1596 # to be able running "make manual" from non-manual configuration
1597 case $archos in
1598 fmrecorder)
1599 manualdev="recorderv2fm"
1601 recorderv2)
1602 manualdev="recorderv2fm"
1604 h1??)
1605 manualdev="h1xx"
1607 ipodmini2g)
1608 manualdev="ipodmini"
1611 manualdev=$archos
1613 esac
1615 if [ -z "$debug" ]; then
1616 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
1619 echo "Using source code root directory: $rootdir"
1621 # this was once possible to change at build-time, but no more:
1622 language="english"
1624 uname=`uname`
1626 if [ "yes" = "$simulator" ]; then
1627 # setup compiler and things for simulator
1628 simcc
1630 if [ -d "archos" ]; then
1631 echo "sub directory archos already present"
1632 else
1633 mkdir archos
1634 echo "created an archos subdirectory for simulating the hard disk"
1638 # Now, figure out version number of the (gcc) compiler we are about to use
1639 gccver=`$CC -dumpversion`;
1641 # figure out the binutil version too and display it, mostly for the build
1642 # system etc to be able to see it easier
1643 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
1645 if [ -z "$gccver" ]; then
1646 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1647 echo "WARNING: this may cause your build to fail since we cannot do the"
1648 echo "WARNING: checks we want now."
1649 else
1651 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1652 # DEPEND on it
1654 num1=`echo $gccver | cut -d . -f1`
1655 num2=`echo $gccver | cut -d . -f2`
1656 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1658 # This makes:
1659 # 3.3.X => 303
1660 # 3.4.X => 304
1661 # 2.95.3 => 295
1663 echo "Using $CC $gccver ($gccnum)"
1665 if test "$gccnum" -ge "400"; then
1666 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1667 # so we ignore that warnings for now
1668 # -Wno-pointer-sign
1669 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
1672 if test "$gccnum" -ge "401"; then
1673 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1674 # will break strict-aliasing rules"
1676 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
1679 if test "$gccnum" -ge "402"; then
1680 # disable warning about "warning: initialized field overwritten" as gcc 4.2
1681 # and later would throw it for several valid cases
1682 GCCOPTS="$GCCOPTS -Wno-override-init"
1687 echo "Using $LD $ldver"
1689 # check the compiler for SH platforms
1690 if test "$CC" = "sh-elf-gcc"; then
1691 if test "$gccnum" -lt "400"; then
1692 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1693 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1694 else
1695 # figure out patch status
1696 gccpatch=`$CC --version`;
1698 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
1699 echo "gcc $gccver is rockbox patched"
1700 # then convert -O to -Os to get smaller binaries!
1701 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1702 else
1703 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1704 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1709 if test "$CC" = "m68k-elf-gcc"; then
1710 # convert -O to -Os to get smaller binaries!
1711 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1714 if test "$1" = "--ccache"; then
1715 echo "Enable ccache for building"
1716 ccache="ccache"
1717 else
1718 if test "$1" != "--no-ccache"; then
1719 ccache=`findtool ccache`
1720 if test -n "$ccache"; then
1721 echo "Found and uses ccache ($ccache)"
1726 if test -n "$ccache"; then
1727 CC="$ccache $CC"
1730 if test "X$endian" = "Xbig"; then
1731 defendian="ROCKBOX_BIG_ENDIAN"
1732 else
1733 defendian="ROCKBOX_LITTLE_ENDIAN"
1736 sed > autoconf.h \
1737 -e "s,@ENDIAN@,${defendian},g" \
1738 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1739 -e "s,@config_rtc@,$config_rtc,g" \
1740 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1741 <<EOF
1742 /* This header was made by configure */
1743 #ifndef __BUILD_AUTOCONF_H
1744 #define __BUILD_AUTOCONF_H
1746 /* Define endianess for the target or simulator platform */
1747 #define @ENDIAN@ 1
1749 /* Define this if you build rockbox to support the logf logging and display */
1750 #undef ROCKBOX_HAS_LOGF
1752 /* optional defines for RTC mod for h1x0 */
1753 @config_rtc@
1754 @have_rtc_alarm@
1756 #endif /* __BUILD_AUTOCONF_H */
1759 if test -n "$t_cpu"; then
1760 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1761 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1762 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1763 GCCOPTS="$GCCOPTS"
1766 if test "$simulator" = "yes"; then
1767 # add simul make stuff on the #SIMUL# line
1768 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1769 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1770 else
1771 # delete the lines that match
1772 simmagic1='/@SIMUL1@/D'
1773 simmagic2='/@SIMUL2@/D'
1776 if test "$swcodec" = "yes"; then
1777 voicetoolset="rbspeexenc voicefont wavtrim"
1778 else
1779 voicetoolset="voicefont wavtrim"
1782 sed > Makefile \
1783 -e "s,@ROOTDIR@,${rootdir},g" \
1784 -e "s,@DEBUG@,${debug},g" \
1785 -e "s,@MEMORY@,${memory},g" \
1786 -e "s,@TARGET_ID@,${target_id},g" \
1787 -e "s,@TARGET@,${target},g" \
1788 -e "s,@CPU@,${t_cpu},g" \
1789 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1790 -e "s,@ARCHOS@,${archos},g" \
1791 -e "s,@LANGUAGE@,${language},g" \
1792 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1793 -e "s,@PWD@,${pwd},g" \
1794 -e "s,@CC@,${CC},g" \
1795 -e "s,@LD@,${LD},g" \
1796 -e "s,@AR@,${AR},g" \
1797 -e "s,@AS@,${AS},g" \
1798 -e "s,@OC@,${OC},g" \
1799 -e "s,@WINDRES@,${WINDRES},g" \
1800 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1801 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1802 -e "s,@RANLIB@,${RANLIB},g" \
1803 -e "s,@TOOL@,${tool},g" \
1804 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1805 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1806 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1807 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1808 -e "s,@OUTPUT@,${output},g" \
1809 -e "s,@APPEXTRA@,${appextra},g" \
1810 -e "s,@ARCHOSROM@,${archosrom},g" \
1811 -e "s,@FLASHFILE@,${flash},g" \
1812 -e "s,@PLUGINS@,${plugins},g" \
1813 -e "s,@CODECS@,${swcodec},g" \
1814 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1815 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1816 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1817 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1818 -e "s!@LDOPTS@!${LDOPTS}!g" \
1819 -e "s,@LOADADDRESS@,${loadaddress},g" \
1820 -e "s,@EXTRADEF@,${extradefines},g" \
1821 -e "s,@APPSDIR@,${appsdir},g" \
1822 -e "s,@FIRMDIR@,${firmdir},g" \
1823 -e "s,@TOOLSDIR@,${toolsdir},g" \
1824 -e "s,@APPS@,${apps},g" \
1825 -e "s,@SIMVER@,${simver},g" \
1826 -e "s,@GCCVER@,${gccver},g" \
1827 -e "s,@GCCNUM@,${gccnum},g" \
1828 -e "s,@UNAME@,${uname},g" \
1829 -e "s,@ENDIAN@,${defendian},g" \
1830 -e "s,@TOOLSET@,${toolset},g" \
1831 -e "${simmagic1}" \
1832 -e "${simmagic2}" \
1833 -e "s,@MANUALDEV@,${manualdev},g" \
1834 -e "s,@ENCODER@,${ENC_CMD},g" \
1835 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
1836 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
1837 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
1838 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
1839 <<EOF
1840 ## Automaticly generated. http://www.rockbox.org/
1842 ifndef V
1843 SILENT=@
1844 else
1845 VERBOSEOPT=-v
1846 endif
1848 # old 'make' versions don't have the built-in 'info' function
1849 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1850 ifeq (\$(call info),old)
1851 export info=echo "\$\$(1)";
1852 endif
1854 export ROOTDIR=@ROOTDIR@
1855 export FIRMDIR=@FIRMDIR@
1856 export APPSDIR=@APPSDIR@
1857 export TOOLSDIR=@TOOLSDIR@
1858 export DOCSDIR=\$(ROOTDIR)/docs
1859 export MANUALDIR=\${ROOTDIR}/manual
1860 export DEBUG=@DEBUG@
1861 export ARCHOS=@ARCHOS@
1862 export ARCHOSROM=@ARCHOSROM@
1863 export FLASHFILE=@FLASHFILE@
1864 export TARGET_ID=@TARGET_ID@
1865 export TARGET=@TARGET@
1866 export CPU=@CPU@
1867 export MANUFACTURER=@MANUFACTURER@
1868 export OBJDIR=@PWD@
1869 export BUILDDIR=@PWD@
1870 export LANGUAGE=@LANGUAGE@
1871 export VOICELANGUAGE=@VOICELANGUAGE@
1872 export MEMORYSIZE=@MEMORY@
1873 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1874 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1875 export MKFIRMWARE=@TOOL@
1876 export BMP2RB_MONO=@BMP2RB_MONO@
1877 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1878 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1879 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1880 export BINARY=@OUTPUT@
1881 export APPEXTRA=@APPEXTRA@
1882 export ENABLEDPLUGINS=@PLUGINS@
1883 export SOFTWARECODECS=@CODECS@
1884 export EXTRA_DEFINES=@EXTRADEF@
1885 export HOSTCC=gcc
1886 export HOSTAR=ar
1887 export CC=@CC@
1888 export LD=@LD@
1889 export AR=@AR@
1890 export AS=@AS@
1891 export OC=@OC@
1892 export WINDRES=@WINDRES@
1893 export DLLTOOL=@DLLTOOL@
1894 export DLLWRAP=@DLLWRAP@
1895 export RANLIB=@RANLIB@
1896 export PROFILE_OPTS=@PROFILE_OPTS@
1897 export SIMVER=@SIMVER@
1898 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1899 export GCCOPTS=@GCCOPTS@
1900 export TARGET_INC=@TARGET_INC@
1901 export LOADADDRESS=@LOADADDRESS@
1902 export SHARED_FLAG=@SHARED_FLAG@
1903 export LDOPTS=@LDOPTS@
1904 export GCCVER=@GCCVER@
1905 export GCCNUM=@GCCNUM@
1906 export UNAME=@UNAME@
1907 export MANUALDEV=@MANUALDEV@
1908 export TTS_OPTS=@TTS_OPTS@
1909 export TTS_ENGINE=@TTS_ENGINE@
1910 export ENC_OPTS=@ENC_OPTS@
1911 export ENCODER=@ENCODER@
1913 # Do not print "Entering directory ..."
1914 MAKEFLAGS += --no-print-directory
1916 .PHONY: all clean tags zip tools manual bin build info
1918 all: info
1920 info: build
1921 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1923 build: tools
1924 @SIMUL1@
1925 @SIMUL2@
1926 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1927 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1929 bin: tools
1930 @SIMUL1@
1931 @SIMUL2@
1932 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1933 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1935 rocks: tools
1936 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1938 veryclean: clean toolsclean
1940 toolsclean:
1941 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1943 clean:
1944 \$(SILENT)echo Cleaning build directory
1945 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1946 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1947 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1948 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
1949 voicefontids *.wav *.mp3 *.voice
1951 tools:
1952 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
1954 voicetools:
1955 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
1957 tags:
1958 \$(SILENT)rm -f TAGS
1959 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1960 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1961 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1962 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1964 fontzip:
1965 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1967 zip:
1968 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1969 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1971 mapzip:
1972 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1974 fullzip:
1975 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1976 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1978 7zip:
1979 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1980 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1982 tar:
1983 \$(SILENT)rm -f rockbox.tar
1984 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1985 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(ARCHOS)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1987 bzip2: tar
1988 \$(SILENT)bzip2 -f9 rockbox.tar
1990 gzip: tar
1991 \$(SILENT)gzip -f9 rockbox.tar
1993 manual: manual-pdf
1994 manual-pdf:
1995 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
1996 manual-html:
1997 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
1998 manual-zhtml: manual-zip
1999 manual-txt:
2000 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2001 manual-ztxt:
2002 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2003 manual-zip:
2004 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2006 features:
2007 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2009 help:
2010 @echo "A few helpful make targets"
2011 @echo ""
2012 @echo "all - builds a full Rockbox (default), including tools"
2013 @echo "bin - builds only the Rockbox.<target name> file"
2014 @echo "clean - cleans a build directory (not tools)"
2015 @echo "veryclean - cleans the build and tools directories"
2016 @echo "manual - builds a manual"
2017 @echo "manual-html - HTML manual"
2018 @echo "manual-zip - HTML manual (zipped)"
2019 @echo "manual-txt - txt manual"
2020 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2021 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2022 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2023 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2024 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2025 @echo "fontzip - creates rockbox-fonts.zip"
2026 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2027 @echo "tools - builds the tools only"
2028 @echo "voicetools - builds the voice tools only"
2029 @echo "install - installs your build (for simulator builds only)"
2033 if [ "yes" = "$simulator" ]; then
2035 cat >> Makefile <<EOF
2037 install:
2038 @echo "installing a full setup in your archos dir"
2039 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
2044 if [ "yes" = "$voice" ]; then
2046 cat >> Makefile <<EOF
2048 voice: voicetools features
2049 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2050 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 \\
2055 echo "Created Makefile"