eeek, revert the FS#8482 commit again as it broke the bootloaders and the
[kugel-rb.git] / tools / configure
blob49773e1a6f4e3d62f3701e80edcf81fdc1b98658
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 arm1136jfscc () {
230 prefixtools arm-elf-
231 GCCOPTS="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
232 GCCOPTIMIZE="-fomit-frame-pointer"
233 endian="little"
236 whichadvanced () {
237 ##################################################################
238 # Prompt for specific developer options
240 echo ""
241 echo "Enter your developer options (press enter when done)"
242 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
243 if [ "$memory" = "2" ]; then
244 echo -n ", (8)MB MOD"
246 if [ "$modelname" = "h120" ]; then
247 echo -n ", (R)TC MOD"
249 echo ""
251 cont=1
253 while [ $cont = "1" ]; do
255 option=`input`;
257 case $option in
258 [Dd])
259 if [ "yes" = "$profile" ]; then
260 echo "Debug is incompatible with profiling"
261 else
262 echo "define DEBUG"
263 use_debug="yes"
266 [Ll])
267 echo "logf() support enabled"
268 logf="yes"
270 [Ss])
271 echo "Simulator build enabled"
272 simulator="yes"
274 [Pp])
275 if [ "yes" = "$use_debug" ]; then
276 echo "Profiling is incompatible with debug"
277 else
278 echo "Profiling support is enabled"
279 profile="yes"
282 [Vv])
283 echo "Voice build selected"
284 voice="yes"
287 if [ "$memory" = "2" ]; then
288 memory="8"
289 echo "Memory size selected: 8MB"
290 else
291 cont=0
294 [Rr])
295 if [ "$modelname" = "h120" ]; then
296 config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
297 have_rtc_alarm="#define HAVE_RTC_ALARM"
298 echo "RTC functions enabled (DS1339/DS3231)"
299 else
300 cont=0
304 cont=0
306 esac
307 done
308 echo "done"
310 if [ "yes" = "$voice" ]; then
311 # Ask about languages to build
312 echo "Select a number for the language to use (default is english)"
313 # The multiple-language feature is currently broken
314 # echo "You may enter a comma-separated list of languages to build"
316 picklang
317 voicelanguage=`whichlang`
319 if [ -z "$voicelanguage" ]; then
320 # pick a default
321 voicelanguage="english"
323 echo "Voice language set to $voicelanguage"
325 # Configure encoder and TTS engine for each language
326 for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
327 voiceconfig "$thislang"
328 done
330 if [ "yes" = "$use_debug" ]; then
331 debug="-DDEBUG"
332 GCCOPTS="$GCCOPTS -g -DDEBUG"
334 if [ "yes" = "$logf" ]; then
335 use_logf="#define ROCKBOX_HAS_LOGF 1"
337 if [ "yes" = "$simulator" ]; then
338 debug="-DDEBUG"
339 extradefines="$extradefines -DSIMULATOR"
341 if [ "yes" = "$profile" ]; then
342 extradefines="$extradefines -DRB_PROFILE"
343 PROFILE_OPTS="-finstrument-functions"
347 # Configure voice settings
348 voiceconfig () {
349 thislang=$1
350 echo "Building $thislang voice for $modelname. Select options"
351 echo ""
353 if [ -f "`which flite`" ]; then
354 FLITE="F(l)ite "
355 FLITE_OPTS=""
356 DEFAULT_TTS="flite"
357 DEFAULT_TTS_OPTS=$FLITE_OPTS
358 DEFAULT_NOISEFLOOR="500"
359 DEFAULT_CHOICE="L"
361 if [ -f "`which espeak`" ]; then
362 ESPEAK="(e)Speak "
363 ESPEAK_OPTS=""
364 DEFAULT_TTS="espeak"
365 DEFAULT_TTS_OPTS=$ESPEAK_OPTS
366 DEFAULT_NOISEFLOOR="500"
367 DEFAULT_CHOICE="e"
369 if [ -f "`which festival`" ]; then
370 FESTIVAL="(F)estival "
371 case "$thislang" in
372 "italiano")
373 FESTIVAL_OPTS="--language italian"
375 "espanol")
376 FESTIVAL_OPTS="--language spanish"
378 "finnish")
379 FESTIVAL_OPTS="--language finnish"
381 "czech")
382 FESTIVAL_OPTS="--language czech"
385 FESTIVAL_OPTS=""
387 esac
388 DEFAULT_TTS="festival"
389 DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
390 DEFAULT_NOISEFLOOR="500"
391 DEFAULT_CHOICE="F"
393 if [ -f "`which swift`" ]; then
394 SWIFT="S(w)ift "
395 SWIFT_OPTS=""
396 DEFAULT_TTS="swift"
397 DEFAULT_TTS_OPTS=$SWIFT_OPTS
398 DEFAULT_NOISEFLOOR="500"
399 DEFAULT_CHOICE="w"
401 # Allow SAPI if Windows is in use
402 if [ -f "`which winver`" ]; then
403 SAPI="(S)API "
404 SAPI_OPTS=""
405 DEFAULT_TTS="sapi"
406 DEFAULT_TTS_OPTS=$SAPI_OPTS
407 DEFAULT_NOISEFLOOR="500"
408 DEFAULT_CHOICE="S"
411 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
412 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
413 exit
416 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
417 option=`input`
418 case "$option" in
419 [Ll])
420 TTS_ENGINE="flite"
421 NOISEFLOOR="500" # TODO: check this value
422 TTS_OPTS=$FLITE_OPTS
424 [Ee])
425 TTS_ENGINE="espeak"
426 NOISEFLOOR="500"
427 TTS_OPTS=$ESPEAK_OPTS
429 [Ff])
430 TTS_ENGINE="festival"
431 NOISEFLOOR="500"
432 TTS_OPTS=$FESTIVAL_OPTS
434 [Ss])
435 TTS_ENGINE="sapi"
436 NOISEFLOOR="500"
437 TTS_OPTS=$SAPI_OPTS
439 [Ww])
440 TTS_ENGINE="swift"
441 NOISEFLOOR="500"
442 TTS_OPTS=$SWIFT_OPTS
445 TTS_ENGINE=$DEFAULT_TTS
446 TTS_OPTS=$DEFAULT_TTS_OPTS
447 NOISEFLOOR=$DEFAULT_NOISEFLOOR
448 esac
449 echo "Using $TTS_ENGINE for TTS"
451 # Allow the user to input manual commandline options
452 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
453 USER_TTS_OPTS=`input`
454 if [ -n "$USER_TTS_OPTS" ]; then
455 TTS_OPTS="$USER_TTS_OPTS"
458 echo ""
460 if [ "$swcodec" = "yes" ]; then
461 ENCODER="rbspeexenc"
462 ENC_CMD="rbspeexenc"
463 ENC_OPTS="-q 4 -c 10"
464 else
465 if [ -f "`which lame`" ]; then
466 ENCODER="lame"
467 ENC_CMD="lame"
468 ENC_OPTS="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
469 else
470 echo "You need LAME in the system path to build voice files for"
471 echo "HWCODEC targets."
472 exit
476 echo "Using $ENCODER for encoding voice clips"
478 # Allow the user to input manual commandline options
479 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
480 USER_ENC_OPTS=`input`
481 if [ -n "$USER_ENC_OPTS" ]; then
482 ENC_OPTS=$USER_ENC_OPTS
485 TEMPDIR="${pwd}"
486 if [ -f "`which cygpath`" ]; then
487 TEMPDIR=`cygpath . -a -w`
491 picklang() {
492 # figure out which languages that are around
493 for file in $rootdir/apps/lang/*.lang; do
494 clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
495 langs="$langs $clean"
496 done
498 num=1
499 for one in $langs; do
500 echo "$num. $one"
501 num=`expr $num + 1`
502 done
504 read pick
507 whichlang() {
508 output=""
509 # Allow the user to pass a comma-separated list of langauges
510 for thispick in `echo $pick | sed 's/,/ /g'`; do
511 num=1
512 for one in $langs; do
513 # Accept both the language number and name
514 if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
515 if [ "$output" = "" ]; then
516 output=$one
517 else
518 output=$output,$one
521 num=`expr $num + 1`
522 done
523 done
524 echo $output
527 opt=$1
529 if test "$opt" = "--help"; then
530 echo "Rockbox configure script."
531 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
532 echo "Do *NOT* run this within the tools directory!"
533 echo ""
534 echo "Usage: configure [--ccache][--no-ccache]"
535 exit
538 if test -r "configure"; then
539 # this is a check for a configure script in the current directory, it there
540 # is one, try to figure out if it is this one!
542 if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
543 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
544 echo "It will only cause you pain and grief. Instead do this:"
545 echo ""
546 echo " cd .."
547 echo " mkdir build-dir"
548 echo " cd build-dir"
549 echo " ../tools/configure"
550 echo ""
551 echo "Much happiness will arise from this. Enjoy"
552 exit
556 # get our current directory
557 pwd=`pwd`;
559 if { echo $pwd | grep " "; } then
560 echo "You're running this script in a path that contains space. The build"
561 echo "system is unfortunately not clever enough to deal with this. Please"
562 echo "run the script from a different path, rename the path or fix the build"
563 echo "system!"
564 exit
567 if [ -z "$rootdir" ]; then
568 ##################################################################
569 # Figure out where the source code root is!
571 rootdir=`dirname $0`/../
573 #####################################################################
574 # Convert the possibly relative directory name to an absolute version
576 now=`pwd`
577 cd $rootdir
578 rootdir=`pwd`
580 # cd back to the build dir
581 cd $now
584 apps="apps"
585 appsdir='\$(ROOTDIR)/apps'
586 firmdir='\$(ROOTDIR)/firmware'
587 toolsdir='\$(ROOTDIR)/tools'
590 ##################################################################
591 # Figure out target platform
594 echo "Enter target platform:"
595 cat <<EOF
596 ==Archos== ==iriver== ==Apple iPod==
597 0) Player/Studio 10) H120/H140 20) Color/Photo
598 1) Recorder 11) H320/H340 21) Nano
599 2) FM Recorder 12) iHP-100/110/115 22) Video
600 3) Recorder v2 13) iFP-790 23) 3G
601 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
602 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
603 6) AV300 26) Mini 2G
604 27) 1G, 2G
606 ==iAudio== ==Toshiba== ==SanDisk==
607 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
608 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
609 32) 7 52) Sansa c200
610 33) Cowon D2
612 ==Tatung== ==Olympus== ==Logik==
613 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
614 71) M:Robe 100
617 buildfor=`input`;
619 # Set of tools built for all target platforms:
620 toolset="rdf2binary convbdf codepages"
622 # Toolsets for some target families:
623 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
624 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
625 iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
626 ipodbitmaptools="$toolset scramble bmp2rb"
627 gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
628 tccbitmaptools="$toolset scramble mktccboot bmp2rb"
629 # generic is used by IFP, H10, Sansa-e200
630 genericbitmaptools="$toolset bmp2rb"
633 # ---- For each target ----
635 # *Variables*
636 # target_id: a unique number identifying this target, IS NOT the menu number.
637 # Just use the currently highest number+1 when you add a new
638 # target.
639 # modelname: short model name used all over to identify this target
640 # memory: number of megabytes of RAM this target has. If the amount can
641 # be selected by the size prompt, let memory be unset here
642 # target: -Ddefine passed to the build commands to make the correct
643 # config-*.h file get included etc
644 # tool: the tool that takes a plain binary and converts that into a
645 # working "firmware" file for your target
646 # output: the final output file name
647 # boottool: the tool that takes a plain binary and generates a bootloader
648 # file for your target (or blank to use $tool)
649 # bootoutput:the final output file name for the bootloader (or blank to use
650 # $output)
651 # appextra: passed to the APPEXTRA variable in the Makefiles.
652 # TODO: add proper explanation
653 # archosrom: used only for Archos targets that build a special flashable .ucl
654 # image.
655 # flash: name of output for flashing, for targets where there's a special
656 # file output for this.
657 # plugins: set to 'yes' to build the plugins. Early development builds can
658 # set this to no in the early stages to have an easier life for a
659 # while
660 # swcodec: set 'yes' on swcodec targets
661 # toolset: lists what particular tools in the tools/ directory that this
662 # target needs to have built prior to building Rockbox
664 # *Functions*
665 # *cc: sets up gcc and compiler options for your target builds. Note
666 # that if you select a simulator build, the compiler selection is
667 # overridden later in the script.
669 case $buildfor in
671 0|player)
672 target_id=1
673 modelname="player"
674 target="-DARCHOS_PLAYER"
675 shcc
676 tool="$rootdir/tools/scramble"
677 output="archos.mod"
678 appextra="player:gui"
679 archosrom="$pwd/rombox.ucl"
680 flash="$pwd/rockbox.ucl"
681 plugins="yes"
682 swcodec=""
684 # toolset is the tools within the tools directory that we build for
685 # this particular target.
686 toolset="$toolset scramble descramble sh2d player_unifont uclpack"
688 # Note: the convbdf is present in the toolset just because: 1) the
689 # firmware/Makefile assumes it is present always, and 2) we will need it when we
690 # build the player simulator
692 t_cpu="sh"
693 t_manufacturer="archos"
694 t_model="player"
697 1|recorder)
698 target_id=2
699 modelname="recorder"
700 target="-DARCHOS_RECORDER"
701 shcc
702 tool="$rootdir/tools/scramble"
703 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
704 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
705 output="ajbrec.ajz"
706 appextra="recorder:gui"
707 #archosrom="$pwd/rombox.ucl"
708 flash="$pwd/rockbox.ucl"
709 plugins="yes"
710 swcodec=""
711 # toolset is the tools within the tools directory that we build for
712 # this particular target.
713 toolset=$archosbitmaptools
714 t_cpu="sh"
715 t_manufacturer="archos"
716 t_model="recorder"
719 2|fmrecorder)
720 target_id=3
721 modelname="fmrecorder"
722 target="-DARCHOS_FMRECORDER"
723 shcc
724 tool="$rootdir/tools/scramble -fm"
725 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
726 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
727 output="ajbrec.ajz"
728 appextra="recorder:gui"
729 #archosrom="$pwd/rombox.ucl"
730 flash="$pwd/rockbox.ucl"
731 plugins="yes"
732 swcodec=""
733 # toolset is the tools within the tools directory that we build for
734 # this particular target.
735 toolset=$archosbitmaptools
736 t_cpu="sh"
737 t_manufacturer="archos"
738 t_model="fm_v2"
741 3|recorderv2)
742 target_id=4
743 modelname="recorderv2"
744 target="-DARCHOS_RECORDERV2"
745 shcc
746 tool="$rootdir/tools/scramble -v2"
747 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
748 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
749 output="ajbrec.ajz"
750 appextra="recorder:gui"
751 #archosrom="$pwd/rombox.ucl"
752 flash="$pwd/rockbox.ucl"
753 plugins="yes"
754 swcodec=""
755 # toolset is the tools within the tools directory that we build for
756 # this particular target.
757 toolset=$archosbitmaptools
758 t_cpu="sh"
759 t_manufacturer="archos"
760 t_model="fm_v2"
763 4|ondiosp)
764 target_id=7
765 modelname="ondiosp"
766 target="-DARCHOS_ONDIOSP"
767 shcc
768 tool="$rootdir/tools/scramble -osp"
769 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
770 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
771 output="ajbrec.ajz"
772 appextra="recorder:gui"
773 archosrom="$pwd/rombox.ucl"
774 flash="$pwd/rockbox.ucl"
775 plugins="yes"
776 swcodec=""
777 # toolset is the tools within the tools directory that we build for
778 # this particular target.
779 toolset=$archosbitmaptools
780 t_cpu="sh"
781 t_manufacturer="archos"
782 t_model="ondio"
785 5|ondiofm)
786 target_id=8
787 modelname="ondiofm"
788 target="-DARCHOS_ONDIOFM"
789 shcc
790 tool="$rootdir/tools/scramble -ofm"
791 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
792 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
793 output="ajbrec.ajz"
794 appextra="recorder:gui"
795 #archosrom="$pwd/rombox.ucl"
796 flash="$pwd/rockbox.ucl"
797 plugins="yes"
798 swcodec=""
799 toolset=$archosbitmaptools
800 t_cpu="sh"
801 t_manufacturer="archos"
802 t_model="ondio"
805 6|av300)
806 target_id=26
807 modelname="av300"
808 target="-DARCHOS_AV300"
809 memory=16 # always
810 arm7tdmicc
811 tool="$rootdir/tools/scramble -mm=C"
812 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
813 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
814 output="cjbm.ajz"
815 appextra="recorder:gui"
816 plugins="yes"
817 swcodec=""
818 # toolset is the tools within the tools directory that we build for
819 # this particular target.
820 toolset="$toolset scramble descramble bmp2rb"
821 # architecture, manufacturer and model for the target-tree build
822 t_cpu="arm"
823 t_manufacturer="archos"
824 t_model="av300"
827 10|h120)
828 target_id=9
829 modelname="h120"
830 target="-DIRIVER_H120"
831 memory=32 # always
832 coldfirecc
833 tool="$rootdir/tools/scramble -add=h120"
834 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
835 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
836 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
837 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
838 output="rockbox.iriver"
839 appextra="recorder:gui"
840 flash="$pwd/rombox.iriver"
841 plugins="yes"
842 swcodec="yes"
843 # toolset is the tools within the tools directory that we build for
844 # this particular target.
845 toolset=$iriverbitmaptools
846 t_cpu="coldfire"
847 t_manufacturer="iriver"
848 t_model="h100"
851 11|h300)
852 target_id=10
853 modelname="h300"
854 target="-DIRIVER_H300"
855 memory=32 # always
856 coldfirecc
857 tool="$rootdir/tools/scramble -add=h300"
858 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
859 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
860 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
861 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
862 output="rockbox.iriver"
863 appextra="recorder:gui"
864 plugins="yes"
865 swcodec="yes"
866 # toolset is the tools within the tools directory that we build for
867 # this particular target.
868 toolset=$iriverbitmaptools
869 t_cpu="coldfire"
870 t_manufacturer="iriver"
871 t_model="h300"
874 12|h100)
875 target_id=11
876 modelname="h100"
877 target="-DIRIVER_H100"
878 memory=16 # always
879 coldfirecc
880 tool="$rootdir/tools/scramble -add=h100"
881 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
882 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
883 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
884 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
885 output="rockbox.iriver"
886 appextra="recorder:gui"
887 flash="$pwd/rombox.iriver"
888 plugins="yes"
889 swcodec="yes"
890 # toolset is the tools within the tools directory that we build for
891 # this particular target.
892 toolset=$iriverbitmaptools
893 t_cpu="coldfire"
894 t_manufacturer="iriver"
895 t_model="h100"
898 13|ifp7xx)
899 target_id=19
900 modelname="ifp7xx"
901 target="-DIRIVER_IFP7XX"
902 memory=1
903 arm7tdmicc short
904 tool="cp"
905 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
906 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
907 output="rockbox.wma"
908 appextra="recorder:gui"
909 plugins="yes"
910 swcodec="yes"
911 # toolset is the tools within the tools directory that we build for
912 # this particular target.
913 toolset=$genericbitmaptools
914 t_cpu="arm"
915 t_manufacturer="pnx0101"
916 t_model="iriver-ifp7xx"
919 14|h10)
920 target_id=22
921 modelname="h10"
922 target="-DIRIVER_H10"
923 memory=32 # always
924 arm7tdmicc
925 tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
926 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
927 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
928 output="rockbox.mi4"
929 appextra="recorder:gui"
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 modelname="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 plugins="yes"
955 swcodec="yes"
956 boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
957 bootoutput="H10.mi4"
958 # toolset is the tools within the tools directory that we build for
959 # this particular target.
960 toolset="$genericbitmaptools scramble"
961 # architecture, manufacturer and model for the target-tree build
962 t_cpu="arm"
963 t_manufacturer="iriver"
964 t_model="h10"
967 20|ipodcolor)
968 target_id=13
969 modelname="ipodcolor"
970 target="-DIPOD_COLOR"
971 memory=32 # always
972 arm7tdmicc
973 tool="$rootdir/tools/scramble -add=ipco"
974 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
975 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
976 output="rockbox.ipod"
977 appextra="recorder:gui"
978 plugins="yes"
979 swcodec="yes"
980 bootoutput="bootloader-$modelname.ipod"
981 # toolset is the tools within the tools directory that we build for
982 # this particular target.
983 toolset=$ipodbitmaptools
984 # architecture, manufacturer and model for the target-tree build
985 t_cpu="arm"
986 t_manufacturer="ipod"
987 t_model="color"
990 21|ipodnano)
991 target_id=14
992 modelname="ipodnano"
993 target="-DIPOD_NANO"
994 memory=32 # always
995 arm7tdmicc
996 tool="$rootdir/tools/scramble -add=nano"
997 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
998 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
999 output="rockbox.ipod"
1000 appextra="recorder:gui"
1001 plugins="yes"
1002 swcodec="yes"
1003 bootoutput="bootloader-$modelname.ipod"
1004 # toolset is the tools within the tools directory that we build for
1005 # this particular target.
1006 toolset=$ipodbitmaptools
1007 # architecture, manufacturer and model for the target-tree build
1008 t_cpu="arm"
1009 t_manufacturer="ipod"
1010 t_model="nano"
1013 22|ipodvideo)
1014 target_id=15
1015 modelname="ipodvideo"
1016 target="-DIPOD_VIDEO"
1017 arm7tdmicc
1018 tool="$rootdir/tools/scramble -add=ipvd"
1019 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1020 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1021 output="rockbox.ipod"
1022 appextra="recorder:gui"
1023 plugins="yes"
1024 swcodec="yes"
1025 bootoutput="bootloader-$modelname.ipod"
1026 # toolset is the tools within the tools directory that we build for
1027 # this particular target.
1028 toolset=$ipodbitmaptools
1029 # architecture, manufacturer and model for the target-tree build
1030 t_cpu="arm"
1031 t_manufacturer="ipod"
1032 t_model="video"
1035 23|ipod3g)
1036 target_id=16
1037 modelname="ipod3g"
1038 target="-DIPOD_3G"
1039 memory=32 # always
1040 arm7tdmicc
1041 tool="$rootdir/tools/scramble -add=ip3g"
1042 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1043 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1044 output="rockbox.ipod"
1045 appextra="recorder:gui"
1046 plugins="yes"
1047 swcodec="yes"
1048 bootoutput="bootloader-$modelname.ipod"
1049 # toolset is the tools within the tools directory that we build for
1050 # this particular target.
1051 toolset=$ipodbitmaptools
1052 # architecture, manufacturer and model for the target-tree build
1053 t_cpu="arm"
1054 t_manufacturer="ipod"
1055 t_model="3g"
1058 24|ipod4g)
1059 target_id=17
1060 modelname="ipod4g"
1061 target="-DIPOD_4G"
1062 memory=32 # always
1063 arm7tdmicc
1064 tool="$rootdir/tools/scramble -add=ip4g"
1065 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1066 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1067 output="rockbox.ipod"
1068 appextra="recorder:gui"
1069 plugins="yes"
1070 swcodec="yes"
1071 bootoutput="bootloader-$modelname.ipod"
1072 # toolset is the tools within the tools directory that we build for
1073 # this particular target.
1074 toolset=$ipodbitmaptools
1075 # architecture, manufacturer and model for the target-tree build
1076 t_cpu="arm"
1077 t_manufacturer="ipod"
1078 t_model="4g"
1081 25|ipodmini)
1082 target_id=18
1083 modelname="ipodmini"
1084 target="-DIPOD_MINI"
1085 memory=32 # always
1086 arm7tdmicc
1087 tool="$rootdir/tools/scramble -add=mini"
1088 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1089 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1090 output="rockbox.ipod"
1091 appextra="recorder:gui"
1092 plugins="yes"
1093 swcodec="yes"
1094 bootoutput="bootloader-$modelname.ipod"
1095 # toolset is the tools within the tools directory that we build for
1096 # this particular target.
1097 toolset=$ipodbitmaptools
1098 # architecture, manufacturer and model for the target-tree build
1099 t_cpu="arm"
1100 t_manufacturer="ipod"
1101 t_model="mini"
1104 26|ipodmini2g)
1105 target_id=21
1106 modelname="ipodmini2g"
1107 target="-DIPOD_MINI2G"
1108 memory=32 # always
1109 arm7tdmicc
1110 tool="$rootdir/tools/scramble -add=mn2g"
1111 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1112 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1113 output="rockbox.ipod"
1114 appextra="recorder:gui"
1115 plugins="yes"
1116 swcodec="yes"
1117 bootoutput="bootloader-$modelname.ipod"
1118 # toolset is the tools within the tools directory that we build for
1119 # this particular target.
1120 toolset=$ipodbitmaptools
1121 # architecture, manufacturer and model for the target-tree build
1122 t_cpu="arm"
1123 t_manufacturer="ipod"
1124 t_model="mini2g"
1127 27|ipod1g2g)
1128 target_id=29
1129 modelname="ipod1g2g"
1130 target="-DIPOD_1G2G"
1131 memory=32 # always
1132 arm7tdmicc
1133 tool="$rootdir/tools/scramble -add=1g2g"
1134 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1135 bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
1136 output="rockbox.ipod"
1137 appextra="recorder:gui"
1138 plugins="yes"
1139 swcodec="yes"
1140 bootoutput="bootloader-$modelname.ipod"
1141 # toolset is the tools within the tools directory that we build for
1142 # this particular target.
1143 toolset=$ipodbitmaptools
1144 # architecture, manufacturer and model for the target-tree build
1145 t_cpu="arm"
1146 t_manufacturer="ipod"
1147 t_model="1g2g"
1150 30|x5)
1151 target_id=12
1152 modelname="x5"
1153 target="-DIAUDIO_X5"
1154 memory=16 # always
1155 coldfirecc
1156 tool="$rootdir/tools/scramble -add=iax5"
1157 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1158 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1159 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1160 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1161 output="rockbox.iaudio"
1162 appextra="recorder:gui"
1163 plugins="yes"
1164 swcodec="yes"
1165 # toolset is the tools within the tools directory that we build for
1166 # this particular target.
1167 toolset="$iaudiobitmaptools"
1168 # architecture, manufacturer and model for the target-tree build
1169 t_cpu="coldfire"
1170 t_manufacturer="iaudio"
1171 t_model="x5"
1174 31|m5)
1175 target_id=28
1176 modelname="m5"
1177 target="-DIAUDIO_M5"
1178 memory=16 # always
1179 coldfirecc
1180 tool="$rootdir/tools/scramble -add=iam5"
1181 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1182 bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
1183 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1184 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
1185 output="rockbox.iaudio"
1186 appextra="recorder:gui"
1187 plugins="yes"
1188 swcodec="yes"
1189 # toolset is the tools within the tools directory that we build for
1190 # this particular target.
1191 toolset="$iaudiobitmaptools"
1192 # architecture, manufacturer and model for the target-tree build
1193 t_cpu="coldfire"
1194 t_manufacturer="iaudio"
1195 t_model="m5"
1198 40|gigabeatf)
1199 target_id=20
1200 modelname="gigabeatf"
1201 target="-DGIGABEAT_F"
1202 memory=32 # always
1203 arm9tdmicc
1204 tool="$rootdir/tools/scramble -add=giga"
1205 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1206 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1207 output="rockbox.gigabeat"
1208 appextra="recorder:gui"
1209 plugins="yes"
1210 swcodec="yes"
1211 toolset=$gigabeatbitmaptools
1212 boottool="$rootdir/tools/scramble -gigabeat"
1213 bootoutput="FWIMG01.DAT"
1214 # architecture, manufacturer and model for the target-tree build
1215 t_cpu="arm"
1216 t_manufacturer="s3c2440"
1217 t_model="gigabeat-fx"
1220 41|gigabeats)
1221 target_id=26
1222 modelname="gigabeats"
1223 target="-DGIGABEAT_S"
1224 memory=64
1225 arm1136jfscc
1226 tool="$rootdir/tools/scramble -add=gigs"
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 plugins="yes"
1232 swcodec="yes"
1233 toolset="$gigabeatbitmaptools mknkboot"
1234 boottool="$rootdir/tools/scramble -gigabeats"
1235 bootoutput="nk.bin"
1236 # architecture, manufacturer and model for the target-tree build
1237 t_cpu="arm"
1238 t_manufacturer="imx31"
1239 t_model="gigabeat-s"
1242 70|mrobe500)
1243 target_id=20
1244 modelname="mrobe500"
1245 target="-DMROBE_500"
1246 memory=64 # always
1247 arm926ejscc
1248 # tool="$rootdir/tools/scramble -add=m500"
1249 tool="cp "
1250 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1251 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1252 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1253 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1254 output="rockbox.mrobe500"
1255 appextra="recorder:gui"
1256 plugins="yes"
1257 swcodec="yes"
1258 toolset=$gigabeatbitmaptools
1259 boottool="cp "
1260 bootoutput="rockbox.mrboot"
1261 # architecture, manufacturer and model for the target-tree build
1262 t_cpu="arm"
1263 t_manufacturer="tms320dm320"
1264 t_model="mrobe-500"
1267 71|mrobe100)
1268 target_id=33
1269 modelname="mrobe100"
1270 target="-DMROBE_100"
1271 memory=32 # always
1272 arm7tdmicc
1273 tool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1274 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1275 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1276 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1277 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1278 output="rockbox.mi4"
1279 appextra="recorder:gui"
1280 plugins="yes"
1281 swcodec="yes"
1282 boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1283 bootoutput="pp5020.mi4"
1284 # toolset is the tools within the tools directory that we build for
1285 # this particular target.
1286 toolset="$genericbitmaptools scramble"
1287 # architecture, manufacturer and model for the target-tree build
1288 t_cpu="arm"
1289 t_manufacturer="olympus"
1290 t_model="mrobe-100"
1293 80|logikdax)
1294 target_id=31
1295 modelname="logikdax"
1296 target="-DLOGIK_DAX"
1297 memory=2 # always
1298 arm946cc
1299 tool="$rootdir/tools/scramble -add=ldax"
1300 boottool="$rootdir/tools/scramble -tcc=crc"
1301 bootoutput="player.rom"
1302 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1303 bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
1304 output="rockbox.logik"
1305 appextra="recorder:gui"
1306 plugins="no"
1307 swcodec="yes"
1308 # toolset is the tools within the tools directory that we build for
1309 # this particular target.
1310 toolset=$tccbitmaptools
1311 # architecture, manufacturer and model for the target-tree build
1312 t_cpu="arm"
1313 t_manufacturer="tcc77x"
1314 t_model="logikdax"
1317 50|e200)
1318 target_id=23
1319 modelname="e200"
1320 target="-DSANSA_E200"
1321 memory=32 # supposedly
1322 arm7tdmicc
1323 tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1324 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1325 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1326 output="rockbox.mi4"
1327 appextra="recorder:gui"
1328 plugins="yes"
1329 swcodec="yes"
1330 boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1331 bootoutput="PP5022.mi4"
1332 # toolset is the tools within the tools directory that we build for
1333 # this particular target.
1334 toolset="$genericbitmaptools scramble"
1335 # architecture, manufacturer and model for the target-tree build
1336 t_cpu="arm"
1337 t_manufacturer="sandisk"
1338 t_model="sansa-e200"
1341 51|e200r)
1342 # the e200R model is pretty much identical to the e200, it only has a
1343 # different option to the scramble tool when building a bootloader and
1344 # makes the bootloader output file name in all lower case.
1345 target_id=27
1346 modelname="e200r"
1347 target="-DSANSA_E200"
1348 memory=32 # supposedly
1349 arm7tdmicc
1350 tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1351 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1352 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1353 output="rockbox.mi4"
1354 appextra="recorder:gui"
1355 plugins="yes"
1356 swcodec="yes"
1357 boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1358 bootoutput="pp5022.mi4"
1359 # toolset is the tools within the tools directory that we build for
1360 # this particular target.
1361 toolset="$genericbitmaptools scramble"
1362 # architecture, manufacturer and model for the target-tree build
1363 t_cpu="arm"
1364 t_manufacturer="sandisk"
1365 t_model="sansa-e200"
1368 52|c200)
1369 target_id=30
1370 modelname="c200"
1371 target="-DSANSA_C200"
1372 memory=32 # supposedly
1373 arm7tdmicc
1374 tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1375 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1376 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1377 output="rockbox.mi4"
1378 appextra="recorder:gui"
1379 plugins="yes"
1380 swcodec="yes"
1381 boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1382 bootoutput="firmware.mi4"
1383 # toolset is the tools within the tools directory that we build for
1384 # this particular target.
1385 toolset="$genericbitmaptools scramble"
1386 # architecture, manufacturer and model for the target-tree build
1387 t_cpu="arm"
1388 t_manufacturer="sandisk"
1389 t_model="sansa-c200"
1392 60|tpj1022)
1393 target_id=25
1394 modelname="tpj1022"
1395 target="-DELIO_TPJ1022"
1396 memory=32 # always
1397 arm7tdmicc
1398 tool="$rootdir/tools/scramble -add tpj2"
1399 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1400 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1401 output="rockbox.elio"
1402 appextra="recorder:gui"
1403 plugins="yes"
1404 swcodec="yes"
1405 boottool="$rootdir/tools/scramble -mi4v2"
1406 bootoutput="pp5020.mi4"
1407 # toolset is the tools within the tools directory that we build for
1408 # this particular target.
1409 toolset="$genericbitmaptools scramble"
1410 # architecture, manufacturer and model for the target-tree build
1411 t_cpu="arm"
1412 t_manufacturer="tatung"
1413 t_model="tpj1022"
1416 32|iaudio7)
1417 target_id=32
1418 modelname="iaudio7"
1419 target="-DIAUDIO_7"
1420 memory=16 # always
1421 arm946cc
1422 tool="$rootdir/tools/scramble -add i7"
1423 boottool="$rootdir/tools/scramble -tcc=crc"
1424 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1425 bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
1426 output="rockbox.iaudio"
1427 appextra="recorder:gui"
1428 plugins="yes"
1429 swcodec="yes"
1430 bootoutput="I7_FW.BIN"
1431 # toolset is the tools within the tools directory that we build for
1432 # this particular target.
1433 toolset="$tccbitmaptools"
1434 # architecture, manufacturer and model for the target-tree build
1435 t_cpu="arm"
1436 t_manufacturer="tcc77x"
1437 t_model="iaudio7"
1440 33|cowond2)
1441 target_id=34
1442 modelname="cowond2"
1443 target="-DCOWON_D2"
1444 memory=32
1445 arm926ejscc
1446 tool="cp "
1447 boottool="$rootdir/tools/scramble -tcc=crc"
1448 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
1449 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
1450 bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
1451 bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
1452 output="rockbox.iaudio"
1453 appextra="recorder:gui"
1454 plugins="no"
1455 swcodec="yes"
1456 toolset="$tccbitmaptools"
1457 # architecture, manufacturer and model for the target-tree build
1458 t_cpu="arm"
1459 t_manufacturer="tcc780x"
1460 t_model="cowond2"
1464 echo "Please select a supported target platform!"
1465 exit
1468 esac
1470 echo "Platform set to $modelname"
1473 #remove start
1474 ############################################################################
1475 # Amount of memory, for those that can differ. They have $memory unset at
1476 # this point.
1479 if [ -z "$memory" ]; then
1481 case $target_id in
1483 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1484 size=`input`;
1485 case $size in
1486 60|64)
1487 memory="64"
1490 memory="32"
1492 esac
1496 echo "Enter size of your RAM (in MB): (defaults to 2)"
1497 size=`input`;
1498 case $size in
1500 memory="8"
1503 memory="2"
1505 esac
1507 esac
1509 echo "Memory size selected: $memory MB"
1511 #remove end
1513 ##################################################################
1514 # Figure out build "type"
1517 # the ifp7x0 is the only platform that supports building a gdb stub like
1518 # this
1519 case $modelname in
1520 ifp7xx)
1521 gdbstub="(G)DB stub, "
1523 e200r|e200)
1524 gdbstub="(I)installer, "
1528 esac
1530 echo ""
1531 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual (N)"
1533 option=`input`;
1535 case $option in
1536 [Ii])
1537 appsdir='\$(ROOTDIR)/bootloader'
1538 apps="bootloader"
1539 extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
1540 bootloader="1"
1541 echo "e200R-installer build selected"
1543 [Bb])
1544 if test $t_manufacturer = "archos"; then
1545 # Archos SH-based players do this somewhat differently for
1546 # some reason
1547 appsdir='\$(ROOTDIR)/flash/bootbox'
1548 apps="bootbox"
1549 else
1550 appsdir='\$(ROOTDIR)/bootloader'
1551 apps="bootloader"
1552 flash=""
1553 if test -n "$boottool"; then
1554 tool="$boottool"
1556 if test -n "$bootoutput"; then
1557 output=$bootoutput
1560 extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
1561 bootloader="1"
1562 echo "Bootloader build selected"
1564 [Ss])
1565 debug="-DDEBUG"
1566 simulator="yes"
1567 extradefines="-DSIMULATOR"
1568 echo "Simulator build selected"
1570 [Aa])
1571 echo "Advanced build selected"
1572 whichadvanced
1574 [Gg])
1575 extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
1576 appsdir='\$(ROOTDIR)/gdb'
1577 apps="stub"
1578 case $modelname in
1579 ifp7xx)
1580 output="stub.wma"
1584 esac
1585 echo "GDB stub build selected"
1587 [Mm])
1588 toolset='';
1589 apps="manual"
1590 echo "Manual build selected"
1593 if [ "$modelname" = "e200r" ]; then
1594 echo "Do not use the e200R target for regular builds. Use e200 instead."
1595 exit
1597 debug=""
1598 echo "Normal build selected"
1601 esac
1602 # to be able running "make manual" from non-manual configuration
1603 case $modelname in
1604 fmrecorder)
1605 manualdev="recorderv2fm"
1607 recorderv2)
1608 manualdev="recorderv2fm"
1610 h1??)
1611 manualdev="h1xx"
1613 ipodmini2g)
1614 manualdev="ipodmini"
1617 manualdev=$modelname
1619 esac
1621 if [ -z "$debug" ]; then
1622 GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
1625 echo "Using source code root directory: $rootdir"
1627 # this was once possible to change at build-time, but no more:
1628 language="english"
1630 uname=`uname`
1632 if [ "yes" = "$simulator" ]; then
1633 # setup compiler and things for simulator
1634 simcc
1636 if [ -d "archos" ]; then
1637 echo "sub directory archos already present"
1638 else
1639 mkdir archos
1640 echo "created an archos subdirectory for simulating the hard disk"
1644 # Now, figure out version number of the (gcc) compiler we are about to use
1645 gccver=`$CC -dumpversion`;
1647 # figure out the binutil version too and display it, mostly for the build
1648 # system etc to be able to see it easier
1649 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
1651 if [ -z "$gccver" ]; then
1652 echo "WARNING: The compiler you must use ($CC) is not in your path!"
1653 echo "WARNING: this may cause your build to fail since we cannot do the"
1654 echo "WARNING: checks we want now."
1655 else
1657 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
1658 # DEPEND on it
1660 num1=`echo $gccver | cut -d . -f1`
1661 num2=`echo $gccver | cut -d . -f2`
1662 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
1664 # This makes:
1665 # 3.3.X => 303
1666 # 3.4.X => 304
1667 # 2.95.3 => 295
1669 echo "Using $CC $gccver ($gccnum)"
1671 if test "$gccnum" -ge "400"; then
1672 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
1673 # so we ignore that warnings for now
1674 # -Wno-pointer-sign
1675 GCCOPTS="$GCCOPTS -Wno-pointer-sign"
1678 if test "$gccnum" -ge "401"; then
1679 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
1680 # will break strict-aliasing rules"
1682 GCCOPTS="$GCCOPTS -fno-strict-aliasing"
1685 if test "$gccnum" -ge "402"; then
1686 # disable warning about "warning: initialized field overwritten" as gcc 4.2
1687 # and later would throw it for several valid cases
1688 GCCOPTS="$GCCOPTS -Wno-override-init"
1693 echo "Using $LD $ldver"
1695 # check the compiler for SH platforms
1696 if test "$CC" = "sh-elf-gcc"; then
1697 if test "$gccnum" -lt "400"; then
1698 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
1699 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1700 else
1701 # figure out patch status
1702 gccpatch=`$CC --version`;
1704 if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
1705 echo "gcc $gccver is rockbox patched"
1706 # then convert -O to -Os to get smaller binaries!
1707 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1708 else
1709 echo "WARNING: You use an unpatched gcc compiler: $gccver"
1710 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
1715 if test "$CC" = "m68k-elf-gcc"; then
1716 # convert -O to -Os to get smaller binaries!
1717 GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
1720 if test "$1" = "--ccache"; then
1721 echo "Enable ccache for building"
1722 ccache="ccache"
1723 else
1724 if test "$1" != "--no-ccache"; then
1725 ccache=`findtool ccache`
1726 if test -n "$ccache"; then
1727 echo "Found and uses ccache ($ccache)"
1732 if test -n "$ccache"; then
1733 CC="$ccache $CC"
1736 if test "X$endian" = "Xbig"; then
1737 defendian="ROCKBOX_BIG_ENDIAN"
1738 else
1739 defendian="ROCKBOX_LITTLE_ENDIAN"
1742 sed > autoconf.h \
1743 -e "s,@ENDIAN@,${defendian},g" \
1744 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
1745 -e "s,@config_rtc@,$config_rtc,g" \
1746 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
1747 <<EOF
1748 /* This header was made by configure */
1749 #ifndef __BUILD_AUTOCONF_H
1750 #define __BUILD_AUTOCONF_H
1752 /* Define endianess for the target or simulator platform */
1753 #define @ENDIAN@ 1
1755 /* Define this if you build rockbox to support the logf logging and display */
1756 #undef ROCKBOX_HAS_LOGF
1758 /* optional defines for RTC mod for h1x0 */
1759 @config_rtc@
1760 @have_rtc_alarm@
1762 #endif /* __BUILD_AUTOCONF_H */
1765 if test -n "$t_cpu"; then
1766 TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
1767 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
1768 TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
1769 GCCOPTS="$GCCOPTS"
1772 if test "$simulator" = "yes"; then
1773 # add simul make stuff on the #SIMUL# line
1774 simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
1775 simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
1776 else
1777 # delete the lines that match
1778 simmagic1='/@SIMUL1@/D'
1779 simmagic2='/@SIMUL2@/D'
1782 if test "$swcodec" = "yes"; then
1783 voicetoolset="rbspeexenc voicefont wavtrim"
1784 else
1785 voicetoolset="voicefont wavtrim"
1788 sed > Makefile \
1789 -e "s,@ROOTDIR@,${rootdir},g" \
1790 -e "s,@DEBUG@,${debug},g" \
1791 -e "s,@MEMORY@,${memory},g" \
1792 -e "s,@TARGET_ID@,${target_id},g" \
1793 -e "s,@TARGET@,${target},g" \
1794 -e "s,@CPU@,${t_cpu},g" \
1795 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
1796 -e "s,@MODELNAME@,${modelname},g" \
1797 -e "s,@LANGUAGE@,${language},g" \
1798 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
1799 -e "s,@PWD@,${pwd},g" \
1800 -e "s,@CC@,${CC},g" \
1801 -e "s,@LD@,${LD},g" \
1802 -e "s,@AR@,${AR},g" \
1803 -e "s,@AS@,${AS},g" \
1804 -e "s,@OC@,${OC},g" \
1805 -e "s,@WINDRES@,${WINDRES},g" \
1806 -e "s,@DLLTOOL@,${DLLTOOL},g" \
1807 -e "s,@DLLWRAP@,${DLLWRAP},g" \
1808 -e "s,@RANLIB@,${RANLIB},g" \
1809 -e "s,@TOOL@,${tool},g" \
1810 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
1811 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
1812 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
1813 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
1814 -e "s,@OUTPUT@,${output},g" \
1815 -e "s,@APPEXTRA@,${appextra},g" \
1816 -e "s,@ARCHOSROM@,${archosrom},g" \
1817 -e "s,@FLASHFILE@,${flash},g" \
1818 -e "s,@PLUGINS@,${plugins},g" \
1819 -e "s,@CODECS@,${swcodec},g" \
1820 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
1821 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
1822 -e "s,@GCCOPTS@,${GCCOPTS},g" \
1823 -e "s,@TARGET_INC@,${TARGET_INC},g" \
1824 -e "s!@LDOPTS@!${LDOPTS}!g" \
1825 -e "s,@LOADADDRESS@,${loadaddress},g" \
1826 -e "s,@EXTRADEF@,${extradefines},g" \
1827 -e "s,@APPSDIR@,${appsdir},g" \
1828 -e "s,@FIRMDIR@,${firmdir},g" \
1829 -e "s,@TOOLSDIR@,${toolsdir},g" \
1830 -e "s,@APPS@,${apps},g" \
1831 -e "s,@SIMVER@,${simver},g" \
1832 -e "s,@GCCVER@,${gccver},g" \
1833 -e "s,@GCCNUM@,${gccnum},g" \
1834 -e "s,@UNAME@,${uname},g" \
1835 -e "s,@ENDIAN@,${defendian},g" \
1836 -e "s,@TOOLSET@,${toolset},g" \
1837 -e "${simmagic1}" \
1838 -e "${simmagic2}" \
1839 -e "s,@MANUALDEV@,${manualdev},g" \
1840 -e "s,@ENCODER@,${ENC_CMD},g" \
1841 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
1842 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
1843 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
1844 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
1845 <<EOF
1846 ## Automaticly generated. http://www.rockbox.org/
1848 ifndef V
1849 SILENT=@
1850 else
1851 VERBOSEOPT=-v
1852 endif
1854 # old 'make' versions don't have the built-in 'info' function
1855 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
1856 ifeq (\$(call info),old)
1857 export info=echo "\$\$(1)";
1858 endif
1860 export ROOTDIR=@ROOTDIR@
1861 export FIRMDIR=@FIRMDIR@
1862 export APPSDIR=@APPSDIR@
1863 export TOOLSDIR=@TOOLSDIR@
1864 export DOCSDIR=\$(ROOTDIR)/docs
1865 export MANUALDIR=\${ROOTDIR}/manual
1866 export DEBUG=@DEBUG@
1867 export MODELNAME=@MODELNAME@
1868 export ARCHOSROM=@ARCHOSROM@
1869 export FLASHFILE=@FLASHFILE@
1870 export TARGET_ID=@TARGET_ID@
1871 export TARGET=@TARGET@
1872 export CPU=@CPU@
1873 export MANUFACTURER=@MANUFACTURER@
1874 export OBJDIR=@PWD@
1875 export BUILDDIR=@PWD@
1876 export LANGUAGE=@LANGUAGE@
1877 export VOICELANGUAGE=@VOICELANGUAGE@
1878 export MEMORYSIZE=@MEMORY@
1879 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
1880 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
1881 export MKFIRMWARE=@TOOL@
1882 export BMP2RB_MONO=@BMP2RB_MONO@
1883 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
1884 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
1885 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
1886 export BINARY=@OUTPUT@
1887 export APPEXTRA=@APPEXTRA@
1888 export ENABLEDPLUGINS=@PLUGINS@
1889 export SOFTWARECODECS=@CODECS@
1890 export EXTRA_DEFINES=@EXTRADEF@
1891 export HOSTCC=gcc
1892 export HOSTAR=ar
1893 export CC=@CC@
1894 export LD=@LD@
1895 export AR=@AR@
1896 export AS=@AS@
1897 export OC=@OC@
1898 export WINDRES=@WINDRES@
1899 export DLLTOOL=@DLLTOOL@
1900 export DLLWRAP=@DLLWRAP@
1901 export RANLIB=@RANLIB@
1902 export PROFILE_OPTS=@PROFILE_OPTS@
1903 export SIMVER=@SIMVER@
1904 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
1905 export GCCOPTS=@GCCOPTS@
1906 export TARGET_INC=@TARGET_INC@
1907 export LOADADDRESS=@LOADADDRESS@
1908 export SHARED_FLAG=@SHARED_FLAG@
1909 export LDOPTS=@LDOPTS@
1910 export GCCVER=@GCCVER@
1911 export GCCNUM=@GCCNUM@
1912 export UNAME=@UNAME@
1913 export MANUALDEV=@MANUALDEV@
1914 export TTS_OPTS=@TTS_OPTS@
1915 export TTS_ENGINE=@TTS_ENGINE@
1916 export ENC_OPTS=@ENC_OPTS@
1917 export ENCODER=@ENCODER@
1919 # Do not print "Entering directory ..."
1920 MAKEFLAGS += --no-print-directory
1922 .PHONY: all clean tags zip tools manual bin build info
1924 all: info
1926 info: build
1927 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
1929 build: tools
1930 @SIMUL1@
1931 @SIMUL2@
1932 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1933 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
1935 bin: tools
1936 @SIMUL1@
1937 @SIMUL2@
1938 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
1939 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
1941 rocks: tools
1942 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
1944 veryclean: clean toolsclean
1946 toolsclean:
1947 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
1949 clean:
1950 \$(SILENT)echo Cleaning build directory
1951 \$(SILENT)rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.[ch]\
1952 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
1953 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
1954 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
1955 voicefontids *.wav *.mp3 *.voice
1957 tools:
1958 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
1960 voicetools:
1961 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
1963 tags:
1964 \$(SILENT)rm -f TAGS
1965 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
1966 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
1967 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
1968 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
1970 fontzip:
1971 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
1973 zip:
1974 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
1975 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1977 mapzip:
1978 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
1980 fullzip:
1981 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1982 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
1984 7zip:
1985 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1986 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1988 tar:
1989 \$(SILENT)rm -f rockbox.tar
1990 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
1991 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar --no-recursion -uf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
1993 bzip2: tar
1994 \$(SILENT)bzip2 -f9 rockbox.tar
1996 gzip: tar
1997 \$(SILENT)gzip -f9 rockbox.tar
1999 manual: manual-pdf
2000 manual-pdf:
2001 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
2002 manual-html:
2003 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
2004 manual-zhtml: manual-zip
2005 manual-txt:
2006 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2007 manual-ztxt:
2008 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2009 manual-zip:
2010 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2012 features:
2013 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2015 help:
2016 @echo "A few helpful make targets"
2017 @echo ""
2018 @echo "all - builds a full Rockbox (default), including tools"
2019 @echo "bin - builds only the Rockbox.<target name> file"
2020 @echo "rocks - builds only plugins and codecs"
2021 @echo "clean - cleans a build directory (not tools)"
2022 @echo "veryclean - cleans the build and tools directories"
2023 @echo "manual - builds a manual"
2024 @echo "manual-html - HTML manual"
2025 @echo "manual-zip - HTML manual (zipped)"
2026 @echo "manual-txt - txt manual"
2027 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2028 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2029 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2030 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2031 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2032 @echo "fontzip - creates rockbox-fonts.zip"
2033 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2034 @echo "tools - builds the tools only"
2035 @echo "voicetools - builds the voice tools only"
2036 @echo "install - installs your build (for simulator builds only)"
2040 if [ "yes" = "$simulator" ]; then
2042 cat >> Makefile <<EOF
2044 install:
2045 @echo "installing a full setup in your archos dir"
2046 @(\$(MAKE) fullzip && cd archos && unzip -oq ../rockbox-full.zip)
2051 if [ "yes" = "$voice" ]; then
2053 cat >> Makefile <<EOF
2055 voice: voicetools features
2056 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2057 for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/voice.pl -V -l=\$\$lang -t=\$(MODELNAME)\$\$feat -i=\$(TARGET_ID) -e="\$(ENCODER)" -E="\$(ENC_OPTS)" -s=\$(TTS_ENGINE) -S="\$(TTS_OPTS)"; done \\
2062 echo "Created Makefile"