3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
29 WINDRES
=${prefix}windres
30 DLLTOOL
=${prefix}dlltool
31 DLLWRAP
=${prefix}dllwrap
32 RANLIB
=${prefix}ranlib
40 # naive approach to selecting a mingw cross-compiler on linux/*nix
41 echo "Enabling win32 crosscompiling"
43 prefixtools i586-mingw32msvc-
45 # add cross-compiler option(s)
46 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
47 LDOPTS
="`sdl-config --libs` -mconsole"
49 output
="rockboxui.exe" # use this as output binary name
51 endian
="little" # windows is little endian
54 # scan the $PATH for the given command
61 # echo "checks for $file in $path" >&2
62 if test -f "$path/$file"; then
67 # check whether caller wants literal return value if not found
68 if [ "$2" = "--lit" ]; then
73 # parse the argument list, returns the value after the = in case of a
74 # option=value type option, returns 0 in case of --ccache or --no-ccache,
75 # returns 1 if the searched argument type wasn't fount in the argument list
76 # Usage [var = ]`parse_args <argumenttype>`, e.g. `parse_args --target`
78 # var definitons below are needed so that parse_args can see the arguments
79 arg1
=$1 arg2
=$2 arg3
=$3 arg4
=$4 arg5
=$5 arg6
=$6 arg7
=$7 arg8
=$8 arg9
=$9
83 for i
in $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9
85 if [ "$1" = "--ccache" ]; then
86 if [ "$i" = "--ccache" ]; then
89 elif [ "$1" = "--no-ccache" ]; then
90 if [ "$i" = "--no-ccache" ]; then
93 elif [ "$1" = `echo $i|cut -d'=' -f1` ]; then
94 ret
=`echo $i|cut -d'=' -f2`
102 # default tool setup for native building
106 GCCOPTS
='-W -Wall -g -fno-builtin'
108 output
="rockboxui" # use this as default output binary name
110 # generic sdl-config checker
111 sdl
=`findtool sdl-config`
113 if [ -z "$sdl" ]; then
114 echo "configure didn't find sdl-config, which indicates that you"
115 echo "don't have SDL (properly) installed. Please correct and"
116 echo "re-run configure!"
120 # default share option, override below if needed
121 SHARED_FLAG
="-shared"
125 echo "Cygwin host detected"
128 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
129 LDOPTS
="`sdl-config --libs` -mconsole"
131 output
="rockboxui.exe" # use this as output binary name
135 echo "Linux host detected"
136 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
137 # Enable crosscompiling if sdl-config is from Windows SDL
140 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
141 LDOPTS
="`sdl-config --libs`"
146 echo "FreeBSD host detected"
148 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
149 LDOPTS
="`sdl-config --libs`"
153 echo "Darwin host detected"
155 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
156 LDOPTS
="`sdl-config --libs`"
157 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
161 echo "Unsupported system: $uname, fix configure and retry"
166 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
168 if test "X$crosscompile" != "Xyes"; then
169 if [ "`uname -m`" = "x86_64" ] ||
[ "`uname -m`" = "amd64" ]; then
170 # fPIC is needed to make shared objects link
171 # setting visibility to hidden is necessary to avoid strange crashes
172 # due to symbol clashing
173 GCCOPTS
="$GCCOPTS -fPIC -fvisibility=hidden"
177 cat >/tmp
/conftest-
$id.c
<<EOF
179 int main(int argc, char **argv)
182 char *varp = (char *)&var;
190 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
192 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
199 echo "Simulator environment deemed $endian endian"
201 # use wildcard here to make it work even if it was named *.exe like
203 rm -f /tmp
/conftest-
$id*
208 # functions for setting up cross-compiler names and options
209 # also set endianess and what the exact recommended gcc version is
210 # the gcc version should most likely match what versions we build with
215 GCCOPTS
="$CCOPTS -m1"
216 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
222 prefixtools calmrisc16-unknown-elf-
223 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
224 GCCOPTIMIZE
="-fomit-frame-pointer"
229 prefixtools m68k-elf-
230 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
231 GCCOPTIMIZE
="-fomit-frame-pointer"
238 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
239 if test "X$1" != "Xshort"; then
240 GCCOPTS
="$GCCOPTS -mlong-calls"
242 GCCOPTIMIZE
="-fomit-frame-pointer"
249 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
250 GCCOPTIMIZE
="-fomit-frame-pointer"
257 GCCOPTS
="$CCOPTS -mbig-endian -mcpu=arm940t -mlong-calls"
258 GCCOPTIMIZE
="-fomit-frame-pointer"
265 GCCOPTS
="$CCOPTS -mcpu=arm9e -mlong-calls"
266 GCCOPTIMIZE
="-fomit-frame-pointer"
273 GCCOPTS
="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
274 GCCOPTIMIZE
="-fomit-frame-pointer"
281 GCCOPTS
="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
282 GCCOPTIMIZE
="-fomit-frame-pointer"
288 prefixtools mipsel-elf-
289 GCCOPTS
="$CCOPTS -march=mips32 -mno-mips16 -mno-abicalls -mlong-calls"
290 GCCOPTIMIZE
="-fomit-frame-pointer"
291 GCCOPTS
="$GCCOPTS -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -msoft-float -G 0"
297 ##################################################################
298 # Prompt for specific developer options
301 echo "Enter your developer options (press enter when done)"
302 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
303 if [ "$memory" = "2" ]; then
304 echo -n ", (8)MB MOD"
306 if [ "$modelname" = "h120" ]; then
307 echo -n ", (R)TC MOD"
313 while [ $cont = "1" ]; do
319 if [ "yes" = "$profile" ]; then
320 echo "Debug is incompatible with profiling"
327 echo "logf() support enabled"
331 echo "Simulator build enabled"
335 if [ "yes" = "$use_debug" ]; then
336 echo "Profiling is incompatible with debug"
338 echo "Profiling support is enabled"
343 echo "Voice build selected"
347 if [ "$memory" = "2" ]; then
349 echo "Memory size selected: 8MB"
355 if [ "$modelname" = "h120" ]; then
356 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
357 have_rtc_alarm
="#define HAVE_RTC_ALARM"
358 echo "RTC functions enabled (DS1339/DS3231)"
370 if [ "yes" = "$voice" ]; then
371 # Ask about languages to build
372 echo "Select a number for the language to use (default is english)"
373 # The multiple-language feature is currently broken
374 # echo "You may enter a comma-separated list of languages to build"
377 voicelanguage
=`whichlang`
379 if [ -z "$voicelanguage" ]; then
381 voicelanguage
="english"
383 echo "Voice language set to $voicelanguage"
385 # Configure encoder and TTS engine for each language
386 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
387 voiceconfig
"$thislang"
390 if [ "yes" = "$use_debug" ]; then
392 GCCOPTS
="$GCCOPTS -g -DDEBUG"
394 if [ "yes" = "$logf" ]; then
395 use_logf
="#define ROCKBOX_HAS_LOGF 1"
397 if [ "yes" = "$simulator" ]; then
399 extradefines
="$extradefines -DSIMULATOR"
401 if [ "yes" = "$profile" ]; then
402 extradefines
="$extradefines -DRB_PROFILE"
403 PROFILE_OPTS
="-finstrument-functions"
407 # Configure voice settings
410 echo "Building $thislang voice for $modelname. Select options"
413 if [ -n "`findtool flite`" ]; then
417 DEFAULT_TTS_OPTS
=$FLITE_OPTS
418 DEFAULT_NOISEFLOOR
="500"
421 if [ -n "`findtool espeak`" ]; then
425 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
426 DEFAULT_NOISEFLOOR
="500"
429 if [ -n "`findtool festival`" ]; then
430 FESTIVAL
="(F)estival "
433 FESTIVAL_OPTS
="--language italian"
436 FESTIVAL_OPTS
="--language spanish"
439 FESTIVAL_OPTS
="--language finnish"
442 FESTIVAL_OPTS
="--language czech"
448 DEFAULT_TTS
="festival"
449 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
450 DEFAULT_NOISEFLOOR
="500"
453 if [ -n "`findtool swift`" ]; then
457 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
458 DEFAULT_NOISEFLOOR
="500"
461 # Allow SAPI if Windows is in use
462 if [ -n "`findtool winver`" ]; then
466 DEFAULT_TTS_OPTS
=$SAPI_OPTS
467 DEFAULT_NOISEFLOOR
="500"
471 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
472 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
476 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
481 NOISEFLOOR
="500" # TODO: check this value
487 TTS_OPTS
=$ESPEAK_OPTS
490 TTS_ENGINE
="festival"
492 TTS_OPTS
=$FESTIVAL_OPTS
505 TTS_ENGINE
=$DEFAULT_TTS
506 TTS_OPTS
=$DEFAULT_TTS_OPTS
507 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
509 echo "Using $TTS_ENGINE for TTS"
511 # Allow the user to input manual commandline options
512 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
513 USER_TTS_OPTS
=`input`
514 if [ -n "$USER_TTS_OPTS" ]; then
515 TTS_OPTS
="$USER_TTS_OPTS"
520 if [ "$swcodec" = "yes" ]; then
523 ENC_OPTS
="-q 4 -c 10"
525 if [ -n "`findtool lame`" ]; then
528 ENC_OPTS
="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
530 echo "You need LAME in the system path to build voice files for"
531 echo "HWCODEC targets."
536 echo "Using $ENCODER for encoding voice clips"
538 # Allow the user to input manual commandline options
539 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
540 USER_ENC_OPTS
=`input`
541 if [ -n "$USER_ENC_OPTS" ]; then
542 ENC_OPTS
=$USER_ENC_OPTS
546 if [ -n "`findtool cygpath`" ]; then
547 TEMPDIR
=`cygpath . -a -w`
552 # figure out which languages that are around
553 for file in $rootdir/apps
/lang
/*.lang
; do
554 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
555 langs
="$langs $clean"
559 for one
in $langs; do
569 # Allow the user to pass a comma-separated list of langauges
570 for thispick
in `echo $pick | sed 's/,/ /g'`; do
572 for one
in $langs; do
573 # Accept both the language number and name
574 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
575 if [ "$output" = "" ]; then
589 if test "$opt" = "--help"; then
590 echo "Rockbox configure script."
591 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
592 echo "Do *NOT* run this within the tools directory!"
595 Usage: configure [OPTION]...
597 --target=TARGET Sets the target, TARGET can be either the target ID or
598 corresponding string. Run without this option to see all
601 --ram=RAM Sets the RAM for certain targets. Even though any number
602 is accepted, not every number is correct. The default
603 value will be applied, if you entered a wrong number
604 (which depends on the target). Watch the output. Run
605 without this option if you are not sure which the right
608 --type=TYPE Sets the build type. The shortcut is also valid.
609 Run without this option to see available types.
610 --ccache Enable ccache use (done by default these days)
611 --no-ccache Disable ccache use
612 --help Shows this message (must not be used with other options)
619 if test -r "configure"; then
620 # this is a check for a configure script in the current directory, it there
621 # is one, try to figure out if it is this one!
623 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
624 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
625 echo "It will only cause you pain and grief. Instead do this:"
628 echo " mkdir build-dir"
630 echo " ../tools/configure"
632 echo "Much happiness will arise from this. Enjoy"
637 # get our current directory
640 if { echo $pwd |
grep " "; } then
641 echo "You're running this script in a path that contains space. The build"
642 echo "system is unfortunately not clever enough to deal with this. Please"
643 echo "run the script from a different path, rename the path or fix the build"
648 if [ -z "$rootdir" ]; then
649 ##################################################################
650 # Figure out where the source code root is!
652 rootdir
=`dirname $0`/..
/
654 #####################################################################
655 # Convert the possibly relative directory name to an absolute version
661 # cd back to the build dir
666 appsdir
='\$(ROOTDIR)/apps'
667 firmdir
='\$(ROOTDIR)/firmware'
668 toolsdir
='\$(ROOTDIR)/tools'
671 ##################################################################
672 # Figure out target platform
675 if [ "1" != `parse_args --target` ]; then
676 buildfor
=`parse_args --target`;
678 echo "Enter target platform:"
680 ==Archos== ==iriver== ==Apple iPod==
681 0) Player/Studio 10) H120/H140 20) Color/Photo
682 1) Recorder 11) H320/H340 21) Nano
683 2) FM Recorder 12) iHP-100/110/115 22) Video
684 3) Recorder v2 13) iFP-790 23) 3G
685 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
686 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
690 ==iAudio== ==Toshiba== ==SanDisk==
691 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
692 31) M5/M5L 41) Gigabeat S 51) Sansa e200R
694 33) Cowon D2 53) Sansa m200
695 34) M3/M3L 54) Sansa c100
701 ==Tatung== ==Olympus== ==Logik==
702 60) Elio TPJ-1022 70) M:Robe 500 80) DAX 1GB MP3/DAB
705 ==Creative== ==Philips== ==Meizu==
706 90) Zen Vision:M 30GB 100) GoGear SA9200 110) M6SL
707 91) Zen Vision:M 60GB 101) GoGear HDD1630 111) M6SP
708 92) Zen Vision 112) M3
718 # Set of tools built for all target platforms:
719 toolset
="rdf2binary convbdf codepages"
721 # Toolsets for some target families:
722 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
723 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
724 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
725 ipodbitmaptools
="$toolset scramble bmp2rb"
726 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
727 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
728 # generic is used by IFP, Meizu and Onda
729 genericbitmaptools
="$toolset bmp2rb"
730 # scramble is used by all other targets
731 scramblebitmaptools
="$genericbitmaptools scramble"
734 # ---- For each target ----
737 # target_id: a unique number identifying this target, IS NOT the menu number.
738 # Just use the currently highest number+1 when you add a new
740 # modelname: short model name used all over to identify this target
741 # memory: number of megabytes of RAM this target has. If the amount can
742 # be selected by the size prompt, let memory be unset here
743 # target: -Ddefine passed to the build commands to make the correct
744 # config-*.h file get included etc
745 # tool: the tool that takes a plain binary and converts that into a
746 # working "firmware" file for your target
747 # output: the final output file name
748 # boottool: the tool that takes a plain binary and generates a bootloader
749 # file for your target (or blank to use $tool)
750 # bootoutput:the final output file name for the bootloader (or blank to use
752 # appextra: passed to the APPEXTRA variable in the Makefiles.
753 # TODO: add proper explanation
754 # archosrom: used only for Archos targets that build a special flashable .ucl
756 # flash: name of output for flashing, for targets where there's a special
757 # file output for this.
758 # plugins: set to 'yes' to build the plugins. Early development builds can
759 # set this to no in the early stages to have an easier life for a
761 # swcodec: set 'yes' on swcodec targets
762 # toolset: lists what particular tools in the tools/ directory that this
763 # target needs to have built prior to building Rockbox
766 # *cc: sets up gcc and compiler options for your target builds. Note
767 # that if you select a simulator build, the compiler selection is
768 # overridden later in the script.
775 target
="-DARCHOS_PLAYER"
777 tool
="$rootdir/tools/scramble"
779 appextra
="player:gui"
780 archosrom
="$pwd/rombox.ucl"
781 flash
="$pwd/rockbox.ucl"
785 # toolset is the tools within the tools directory that we build for
786 # this particular target.
787 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
789 # Note: the convbdf is present in the toolset just because: 1) the
790 # firmware/Makefile assumes it is present always, and 2) we will need it when we
791 # build the player simulator
794 t_manufacturer
="archos"
801 target
="-DARCHOS_RECORDER"
803 tool
="$rootdir/tools/scramble"
804 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
805 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
807 appextra
="recorder:gui"
808 #archosrom="$pwd/rombox.ucl"
809 flash
="$pwd/rockbox.ucl"
812 # toolset is the tools within the tools directory that we build for
813 # this particular target.
814 toolset
=$archosbitmaptools
816 t_manufacturer
="archos"
822 modelname
="fmrecorder"
823 target
="-DARCHOS_FMRECORDER"
825 tool
="$rootdir/tools/scramble -fm"
826 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
827 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
829 appextra
="recorder:gui"
830 #archosrom="$pwd/rombox.ucl"
831 flash
="$pwd/rockbox.ucl"
834 # toolset is the tools within the tools directory that we build for
835 # this particular target.
836 toolset
=$archosbitmaptools
838 t_manufacturer
="archos"
844 modelname
="recorderv2"
845 target
="-DARCHOS_RECORDERV2"
847 tool
="$rootdir/tools/scramble -v2"
848 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
849 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
851 appextra
="recorder:gui"
852 #archosrom="$pwd/rombox.ucl"
853 flash
="$pwd/rockbox.ucl"
856 # toolset is the tools within the tools directory that we build for
857 # this particular target.
858 toolset
=$archosbitmaptools
860 t_manufacturer
="archos"
867 target
="-DARCHOS_ONDIOSP"
869 tool
="$rootdir/tools/scramble -osp"
870 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
871 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
873 appextra
="recorder:gui"
874 archosrom
="$pwd/rombox.ucl"
875 flash
="$pwd/rockbox.ucl"
878 # toolset is the tools within the tools directory that we build for
879 # this particular target.
880 toolset
=$archosbitmaptools
882 t_manufacturer
="archos"
889 target
="-DARCHOS_ONDIOFM"
891 tool
="$rootdir/tools/scramble -ofm"
892 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
893 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
895 appextra
="recorder:gui"
896 #archosrom="$pwd/rombox.ucl"
897 flash
="$pwd/rockbox.ucl"
900 toolset
=$archosbitmaptools
902 t_manufacturer
="archos"
909 target
="-DARCHOS_AV300"
912 tool
="$rootdir/tools/scramble -mm=C"
913 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
914 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
916 appextra
="recorder:gui"
919 # toolset is the tools within the tools directory that we build for
920 # this particular target.
921 toolset
="$toolset scramble descramble bmp2rb"
922 # architecture, manufacturer and model for the target-tree build
924 t_manufacturer
="archos"
931 target
="-DIRIVER_H120"
934 tool
="$rootdir/tools/scramble -add=h120"
935 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
936 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
937 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
938 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
939 output
="rockbox.iriver"
940 appextra
="recorder:gui"
941 flash
="$pwd/rombox.iriver"
944 # toolset is the tools within the tools directory that we build for
945 # this particular target.
946 toolset
=$iriverbitmaptools
948 t_manufacturer
="iriver"
955 target
="-DIRIVER_H300"
958 tool
="$rootdir/tools/scramble -add=h300"
959 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
960 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
961 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
962 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
963 output
="rockbox.iriver"
964 appextra
="recorder:gui"
967 # toolset is the tools within the tools directory that we build for
968 # this particular target.
969 toolset
=$iriverbitmaptools
971 t_manufacturer
="iriver"
978 target
="-DIRIVER_H100"
981 tool
="$rootdir/tools/scramble -add=h100"
982 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
983 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
984 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
985 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
986 output
="rockbox.iriver"
987 appextra
="recorder:gui"
988 flash
="$pwd/rombox.iriver"
991 # toolset is the tools within the tools directory that we build for
992 # this particular target.
993 toolset
=$iriverbitmaptools
995 t_manufacturer
="iriver"
1002 target
="-DIRIVER_IFP7XX"
1006 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1007 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1008 output
="rockbox.wma"
1009 appextra
="recorder:gui"
1012 # toolset is the tools within the tools directory that we build for
1013 # this particular target.
1014 toolset
=$genericbitmaptools
1016 t_manufacturer
="pnx0101"
1017 t_model
="iriver-ifp7xx"
1023 target
="-DIRIVER_H10"
1026 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1027 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1028 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1029 output
="rockbox.mi4"
1030 appextra
="recorder:gui"
1033 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1034 bootoutput
="H10_20GC.mi4"
1035 # toolset is the tools within the tools directory that we build for
1036 # this particular target.
1037 toolset
=$scramblebitmaptools
1038 # architecture, manufacturer and model for the target-tree build
1040 t_manufacturer
="iriver"
1047 target
="-DIRIVER_H10_5GB"
1050 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1051 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1052 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1053 output
="rockbox.mi4"
1054 appextra
="recorder:gui"
1057 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1058 bootoutput
="H10.mi4"
1059 # toolset is the tools within the tools directory that we build for
1060 # this particular target.
1061 toolset
=$scramblebitmaptools
1062 # architecture, manufacturer and model for the target-tree build
1064 t_manufacturer
="iriver"
1070 modelname
="ipodcolor"
1071 target
="-DIPOD_COLOR"
1074 tool
="$rootdir/tools/scramble -add=ipco"
1075 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1076 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1077 output
="rockbox.ipod"
1078 appextra
="recorder:gui"
1081 bootoutput
="bootloader-$modelname.ipod"
1082 # toolset is the tools within the tools directory that we build for
1083 # this particular target.
1084 toolset
=$ipodbitmaptools
1085 # architecture, manufacturer and model for the target-tree build
1087 t_manufacturer
="ipod"
1093 modelname
="ipodnano"
1094 target
="-DIPOD_NANO"
1097 tool
="$rootdir/tools/scramble -add=nano"
1098 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1099 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1100 output
="rockbox.ipod"
1101 appextra
="recorder:gui"
1104 bootoutput
="bootloader-$modelname.ipod"
1105 # toolset is the tools within the tools directory that we build for
1106 # this particular target.
1107 toolset
=$ipodbitmaptools
1108 # architecture, manufacturer and model for the target-tree build
1110 t_manufacturer
="ipod"
1116 modelname
="ipodvideo"
1117 target
="-DIPOD_VIDEO"
1119 tool
="$rootdir/tools/scramble -add=ipvd"
1120 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1121 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1122 output
="rockbox.ipod"
1123 appextra
="recorder:gui"
1126 bootoutput
="bootloader-$modelname.ipod"
1127 # toolset is the tools within the tools directory that we build for
1128 # this particular target.
1129 toolset
=$ipodbitmaptools
1130 # architecture, manufacturer and model for the target-tree build
1132 t_manufacturer
="ipod"
1142 tool
="$rootdir/tools/scramble -add=ip3g"
1143 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1144 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1145 output
="rockbox.ipod"
1146 appextra
="recorder:gui"
1149 bootoutput
="bootloader-$modelname.ipod"
1150 # toolset is the tools within the tools directory that we build for
1151 # this particular target.
1152 toolset
=$ipodbitmaptools
1153 # architecture, manufacturer and model for the target-tree build
1155 t_manufacturer
="ipod"
1165 tool
="$rootdir/tools/scramble -add=ip4g"
1166 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1167 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1168 output
="rockbox.ipod"
1169 appextra
="recorder:gui"
1172 bootoutput
="bootloader-$modelname.ipod"
1173 # toolset is the tools within the tools directory that we build for
1174 # this particular target.
1175 toolset
=$ipodbitmaptools
1176 # architecture, manufacturer and model for the target-tree build
1178 t_manufacturer
="ipod"
1184 modelname
="ipodmini"
1185 target
="-DIPOD_MINI"
1188 tool
="$rootdir/tools/scramble -add=mini"
1189 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1190 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1191 output
="rockbox.ipod"
1192 appextra
="recorder:gui"
1195 bootoutput
="bootloader-$modelname.ipod"
1196 # toolset is the tools within the tools directory that we build for
1197 # this particular target.
1198 toolset
=$ipodbitmaptools
1199 # architecture, manufacturer and model for the target-tree build
1201 t_manufacturer
="ipod"
1207 modelname
="ipodmini2g"
1208 target
="-DIPOD_MINI2G"
1211 tool
="$rootdir/tools/scramble -add=mn2g"
1212 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1213 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1214 output
="rockbox.ipod"
1215 appextra
="recorder:gui"
1218 bootoutput
="bootloader-$modelname.ipod"
1219 # toolset is the tools within the tools directory that we build for
1220 # this particular target.
1221 toolset
=$ipodbitmaptools
1222 # architecture, manufacturer and model for the target-tree build
1224 t_manufacturer
="ipod"
1230 modelname
="ipod1g2g"
1231 target
="-DIPOD_1G2G"
1234 tool
="$rootdir/tools/scramble -add=1g2g"
1235 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1236 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1237 output
="rockbox.ipod"
1238 appextra
="recorder:gui"
1241 bootoutput
="bootloader-$modelname.ipod"
1242 # toolset is the tools within the tools directory that we build for
1243 # this particular target.
1244 toolset
=$ipodbitmaptools
1245 # architecture, manufacturer and model for the target-tree build
1247 t_manufacturer
="ipod"
1254 target
="-DIAUDIO_X5"
1257 tool
="$rootdir/tools/scramble -add=iax5"
1258 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1259 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1260 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1261 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1262 output
="rockbox.iaudio"
1263 appextra
="recorder:gui"
1266 # toolset is the tools within the tools directory that we build for
1267 # this particular target.
1268 toolset
="$iaudiobitmaptools"
1269 # architecture, manufacturer and model for the target-tree build
1271 t_manufacturer
="iaudio"
1278 target
="-DIAUDIO_M5"
1281 tool
="$rootdir/tools/scramble -add=iam5"
1282 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1283 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1284 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1285 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1286 output
="rockbox.iaudio"
1287 appextra
="recorder:gui"
1290 # toolset is the tools within the tools directory that we build for
1291 # this particular target.
1292 toolset
="$iaudiobitmaptools"
1293 # architecture, manufacturer and model for the target-tree build
1295 t_manufacturer
="iaudio"
1305 tool
="$rootdir/tools/scramble -add=i7"
1306 boottool
="$rootdir/tools/scramble -tcc=crc"
1307 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1308 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1309 output
="rockbox.iaudio"
1310 appextra
="recorder:gui"
1313 bootoutput
="I7_FW.BIN"
1314 # toolset is the tools within the tools directory that we build for
1315 # this particular target.
1316 toolset
="$tccbitmaptools"
1317 # architecture, manufacturer and model for the target-tree build
1319 t_manufacturer
="tcc77x"
1329 tool
="$rootdir/tools/scramble -add=d2"
1330 boottool
="$rootdir/tools/scramble -tcc=crc"
1331 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1332 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1333 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1334 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1335 output
="rockbox.iaudio"
1336 appextra
="recorder:gui"
1339 toolset
="$tccbitmaptools"
1340 # architecture, manufacturer and model for the target-tree build
1342 t_manufacturer
="tcc780x"
1349 target
="-DIAUDIO_M3"
1352 tool
="$rootdir/tools/scramble -add=iam3"
1353 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1354 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1355 output
="rockbox.iaudio"
1356 appextra
="recorder:gui"
1359 # toolset is the tools within the tools directory that we build for
1360 # this particular target.
1361 toolset
="$iaudiobitmaptools"
1362 # architecture, manufacturer and model for the target-tree build
1364 t_manufacturer
="iaudio"
1370 modelname
="gigabeatf"
1371 target
="-DGIGABEAT_F"
1374 tool
="$rootdir/tools/scramble -add=giga"
1375 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1376 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1377 output
="rockbox.gigabeat"
1378 appextra
="recorder:gui"
1381 toolset
=$gigabeatbitmaptools
1382 boottool
="$rootdir/tools/scramble -gigabeat"
1383 bootoutput
="FWIMG01.DAT"
1384 # architecture, manufacturer and model for the target-tree build
1386 t_manufacturer
="s3c2440"
1387 t_model
="gigabeat-fx"
1392 modelname
="gigabeats"
1393 target
="-DGIGABEAT_S"
1396 tool
="$rootdir/tools/scramble -add=gigs"
1397 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1398 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1399 output
="rockbox.gigabeat"
1400 appextra
="recorder:gui"
1403 toolset
="$gigabeatbitmaptools mknkboot"
1404 boottool
="$rootdir/tools/scramble -gigabeats"
1406 # architecture, manufacturer and model for the target-tree build
1408 t_manufacturer
="imx31"
1409 t_model
="gigabeat-s"
1414 modelname
="mrobe500"
1415 target
="-DMROBE_500"
1418 # tool="$rootdir/tools/scramble -add=m500"
1420 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1421 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1422 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1423 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1424 output
="rockbox.mrobe500"
1425 appextra
="recorder:gui"
1428 toolset
=$gigabeatbitmaptools
1430 bootoutput
="rockbox.mrboot"
1431 # architecture, manufacturer and model for the target-tree build
1433 t_manufacturer
="tms320dm320"
1439 modelname
="mrobe100"
1440 target
="-DMROBE_100"
1443 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1444 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1445 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1446 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1447 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1448 output
="rockbox.mi4"
1449 appextra
="recorder:gui"
1452 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1453 bootoutput
="pp5020.mi4"
1454 # toolset is the tools within the tools directory that we build for
1455 # this particular target.
1456 toolset
=$scramblebitmaptools
1457 # architecture, manufacturer and model for the target-tree build
1459 t_manufacturer
="olympus"
1465 modelname
="logikdax"
1466 target
="-DLOGIK_DAX"
1469 tool
="$rootdir/tools/scramble -add=ldax"
1470 boottool
="$rootdir/tools/scramble -tcc=crc"
1471 bootoutput
="player.rom"
1472 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1473 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1474 output
="rockbox.logik"
1475 appextra
="recorder:gui"
1478 # toolset is the tools within the tools directory that we build for
1479 # this particular target.
1480 toolset
=$tccbitmaptools
1481 # architecture, manufacturer and model for the target-tree build
1483 t_manufacturer
="tcc77x"
1489 modelname
="creativezvm30"
1490 target
="-DCREATIVE_ZVM"
1493 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1494 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1495 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1496 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1497 tool
="$rootdir/tools/scramble -creative=zvm"
1499 output
="rockbox.zvm"
1500 appextra
="recorder:gui"
1503 toolset
=$ipodbitmaptools
1504 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1505 bootoutput
="rockbox.zvmboot"
1506 # architecture, manufacturer and model for the target-tree build
1508 t_manufacturer
="tms320dm320"
1509 t_model
="creative-zvm"
1514 modelname
="creativezvm60"
1515 target
="-DCREATIVE_ZVM60GB"
1518 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1519 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1520 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1521 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1522 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1524 output
="rockbox.zvm60"
1525 appextra
="recorder:gui"
1528 toolset
=$ipodbitmaptools
1529 boottool
="$rootdir/tools/scramble -creative=zvm60"
1530 bootoutput
="rockbox.zvm60boot"
1531 # architecture, manufacturer and model for the target-tree build
1533 t_manufacturer
="tms320dm320"
1534 t_model
="creative-zvm"
1537 92|creativezenvision
)
1539 modelname
="creativezv"
1540 target
="-DCREATIVE_ZV"
1543 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1544 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1545 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1546 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1547 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1550 appextra
="recorder:gui"
1553 toolset
=$ipodbitmaptools
1554 boottool
="$rootdir/tools/scramble -creative=zenvision"
1555 bootoutput
="rockbox.zvboot"
1556 # architecture, manufacturer and model for the target-tree build
1558 t_manufacturer
="tms320dm320"
1559 t_model
="creative-zvm"
1565 target
="-DSANSA_E200"
1566 memory
=32 # supposedly
1568 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1569 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1570 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1571 output
="rockbox.mi4"
1572 appextra
="recorder:gui"
1575 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1576 bootoutput
="PP5022.mi4"
1577 # toolset is the tools within the tools directory that we build for
1578 # this particular target.
1579 toolset
=$scramblebitmaptools
1580 # architecture, manufacturer and model for the target-tree build
1582 t_manufacturer
="sandisk"
1583 t_model
="sansa-e200"
1587 # the e200R model is pretty much identical to the e200, it only has a
1588 # different option to the scramble tool when building a bootloader and
1589 # makes the bootloader output file name in all lower case.
1592 target
="-DSANSA_E200"
1593 memory
=32 # supposedly
1595 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1596 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1597 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1598 output
="rockbox.mi4"
1599 appextra
="recorder:gui"
1602 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1603 bootoutput
="pp5022.mi4"
1604 # toolset is the tools within the tools directory that we build for
1605 # this particular target.
1606 toolset
=$scramblebitmaptools
1607 # architecture, manufacturer and model for the target-tree build
1609 t_manufacturer
="sandisk"
1610 t_model
="sansa-e200"
1616 target
="-DSANSA_C200"
1617 memory
=32 # supposedly
1619 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1620 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1621 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1622 output
="rockbox.mi4"
1623 appextra
="recorder:gui"
1626 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1627 bootoutput
="firmware.mi4"
1628 # toolset is the tools within the tools directory that we build for
1629 # this particular target.
1630 toolset
=$scramblebitmaptools
1631 # architecture, manufacturer and model for the target-tree build
1633 t_manufacturer
="sandisk"
1634 t_model
="sansa-c200"
1640 target
="-DSANSA_M200"
1643 tool
="$rootdir/tools/scramble -add=m200"
1644 boottool
="$rootdir/tools/scramble -tcc=crc"
1645 bootoutput
="player.rom"
1646 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1647 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1648 output
="rockbox.m200"
1649 appextra
="recorder:gui"
1652 # toolset is the tools within the tools directory that we build for
1653 # this particular target.
1654 toolset
=$tccbitmaptools
1655 # architecture, manufacturer and model for the target-tree build
1657 t_manufacturer
="tcc77x"
1664 target
="-DSANSA_C100"
1665 memory
=32 # unsure, must check
1667 tool
="$rootdir/tools/scramble -add=c100"
1668 boottool
="$rootdir/tools/scramble -tcc=crc"
1669 bootoutput
="player.rom"
1670 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1671 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1672 output
="rockbox.c100"
1673 appextra
="recorder:gui"
1675 # toolset is the tools within the tools directory that we build for
1676 # this particular target.
1677 toolset
=$tccbitmaptools
1678 # architecture, manufacturer and model for the target-tree build
1680 t_manufacturer
="tcc77x"
1687 target
="-DSANSA_CLIP"
1690 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1691 bmp2rb_native
="$bmp2rb_mono"
1692 tool
="$rootdir/tools/scramble -add=clip"
1693 output
="rockbox.sansa"
1694 bootoutput
="bootloader-clip.sansa"
1695 appextra
="recorder:gui"
1698 toolset
=$scramblebitmaptools
1700 t_manufacturer
="as3525"
1701 t_model
="sansa-clip"
1708 target
="-DSANSA_E200V2"
1711 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1712 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1713 tool
="$rootdir/tools/scramble -add=e2v2"
1714 output
="rockbox.sansa"
1715 bootoutput
="bootloader-e200v2.sansa"
1716 appextra
="recorder:gui"
1719 toolset
=$scramblebitmaptools
1721 t_manufacturer
="as3525"
1722 t_model
="sansa-e200v2"
1729 target
="-DSANSA_M200V2"
1732 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1733 bmp2rb_native
="$bmp2rb_mono"
1734 tool
="$rootdir/tools/scramble -add=m2v2"
1735 output
="rockbox.sansa"
1736 bootoutput
="bootloader-m200v2.sansa"
1737 appextra
="recorder:gui"
1739 toolset
=$scramblebitmaptools
1741 t_manufacturer
="as3525"
1742 t_model
="sansa-m200v2"
1749 target
="-DSANSA_FUZE"
1752 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1753 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1754 tool
="$rootdir/tools/scramble -add=fuze"
1755 output
="rockbox.sansa"
1756 bootoutput
="bootloader-fuze.sansa"
1757 appextra
="recorder:gui"
1760 toolset
=$scramblebitmaptools
1762 t_manufacturer
="as3525"
1763 t_model
="sansa-fuze"
1770 target
="-DELIO_TPJ1022"
1773 tool
="$rootdir/tools/scramble -add tpj2"
1774 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1775 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1776 output
="rockbox.elio"
1777 appextra
="recorder:gui"
1780 boottool
="$rootdir/tools/scramble -mi4v2"
1781 bootoutput
="pp5020.mi4"
1782 # toolset is the tools within the tools directory that we build for
1783 # this particular target.
1784 toolset
=$scramblebitmaptools
1785 # architecture, manufacturer and model for the target-tree build
1787 t_manufacturer
="tatung"
1794 target
="-DPHILIPS_SA9200"
1795 memory
=32 # supposedly
1797 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1798 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1799 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1800 output
="rockbox.mi4"
1801 appextra
="recorder:gui"
1804 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1805 bootoutput
="FWImage.ebn"
1806 # toolset is the tools within the tools directory that we build for
1807 # this particular target.
1808 toolset
=$scramblebitmaptools
1809 # architecture, manufacturer and model for the target-tree build
1811 t_manufacturer
="philips"
1818 target
="-DPHILIPS_HDD1630"
1819 memory
=32 # supposedly
1821 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1822 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1823 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1824 output
="rockbox.mi4"
1825 appextra
="recorder:gui"
1828 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1829 bootoutput
="FWImage.ebn"
1830 # toolset is the tools within the tools directory that we build for
1831 # this particular target.
1832 toolset
=$scramblebitmaptools
1833 # architecture, manufacturer and model for the target-tree build
1835 t_manufacturer
="philips"
1841 modelname
="meizum6sl"
1842 target
="-DMEIZU_M6SL"
1846 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1847 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1848 output
="rockbox.meizu"
1849 appextra
="recorder:gui"
1852 toolset
=$genericbitmaptools
1854 bootoutput
="rockboot.ebn"
1855 # architecture, manufacturer and model for the target-tree build
1857 t_manufacturer
="s5l8700"
1858 t_model
="meizu-m6sl"
1863 modelname
="meizum6sp"
1864 target
="-DMEIZU_M6SP"
1868 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1869 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1870 output
="rockbox.meizu"
1871 appextra
="recorder:gui"
1874 toolset
=$genericbitmaptools
1876 bootoutput
="rockboot.ebn"
1877 # architecture, manufacturer and model for the target-tree build
1879 t_manufacturer
="s5l8700"
1880 t_model
="meizu-m6sp"
1890 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1891 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1892 output
="rockbox.meizu"
1893 appextra
="recorder:gui"
1896 toolset
=$genericbitmaptools
1898 bootoutput
="rockboot.ebn"
1899 # architecture, manufacturer and model for the target-tree build
1901 t_manufacturer
="s5l8700"
1907 modelname
="ondavx747"
1908 target
="-DONDA_VX747"
1912 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1913 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1914 output
="rockbox.vx747"
1915 appextra
="recorder:gui"
1918 toolset
=$genericbitmaptools
1920 bootoutput
="rockboot.vx747"
1921 # architecture, manufacturer and model for the target-tree build
1923 t_manufacturer
="ingenic_jz47xx"
1924 t_model
="onda_vx747"
1929 modelname
="ondavx767"
1930 target
="-DONDA_VX767"
1934 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1935 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1936 output
="rockbox.vx767"
1937 appextra
="recorder:gui"
1940 toolset
=$genericbitmaptools
1942 bootoutput
="rockboot.vx767"
1943 # architecture, manufacturer and model for the target-tree build
1945 t_manufacturer
="ingenic_jz47xx"
1946 t_model
="onda_vx767"
1949 echo "Please select a supported target platform!"
1955 echo "Platform set to $modelname"
1959 ############################################################################
1960 # Amount of memory, for those that can differ. They have $memory unset at
1964 if [ -z "$memory" ]; then
1967 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1968 if [ "1" != `parse_args --ram` ]; then
1969 size
=`parse_args --ram`;
1983 echo "Enter size of your RAM (in MB): (Defaults to 2)"
1984 if [ "1" != `parse_args --ram` ]; then
1985 size
=`parse_args --ram`;
1999 echo "Memory size selected: $memory MB"
2004 ##################################################################
2005 # Figure out build "type"
2008 # the ifp7x0 is the only platform that supports building a gdb stub like
2012 gdbstub
="(G)DB stub, "
2015 gdbstub
="(I)installer, "
2018 gdbstub
="(E)raser, "
2023 if [ "1" != `parse_args --type` ]; then
2024 option
=`parse_args --type`;
2026 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2032 appsdir
='\$(ROOTDIR)/bootloader'
2034 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2036 echo "e200R-installer build selected"
2039 appsdir
='\$(ROOTDIR)/bootloader'
2041 echo "C2(4)0 or C2(5)0"
2045 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2046 echo "c240 eraser build selected"
2049 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2050 echo "c240 eraser build selected"
2054 echo "c200 eraser build selected"
2057 if test $t_manufacturer = "archos"; then
2058 # Archos SH-based players do this somewhat differently for
2060 appsdir
='\$(ROOTDIR)/flash/bootbox'
2063 appsdir
='\$(ROOTDIR)/bootloader'
2066 if test -n "$boottool"; then
2069 if test -n "$bootoutput"; then
2073 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2075 echo "Bootloader build selected"
2080 extradefines
="-DSIMULATOR"
2081 echo "Simulator build selected"
2084 echo "Advanced build selected"
2088 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2089 appsdir
='\$(ROOTDIR)/gdb'
2098 echo "GDB stub build selected"
2103 echo "Manual build selected"
2106 if [ "$modelname" = "e200r" ]; then
2107 echo "Do not use the e200R target for regular builds. Use e200 instead."
2111 echo "Normal build selected"
2115 # to be able running "make manual" from non-manual configuration
2118 manualdev
="recorderv2fm"
2121 manualdev
="recorderv2fm"
2127 manualdev
="ipodmini"
2130 manualdev
=$modelname
2134 if [ -z "$debug" ]; then
2135 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2138 echo "Using source code root directory: $rootdir"
2140 # this was once possible to change at build-time, but no more:
2145 if [ "yes" = "$simulator" ]; then
2146 # setup compiler and things for simulator
2149 if [ -d "archos" ]; then
2150 echo "sub directory archos already present"
2153 echo "created an archos subdirectory for simulating the hard disk"
2157 # Now, figure out version number of the (gcc) compiler we are about to use
2158 gccver
=`$CC -dumpversion`;
2160 # figure out the binutil version too and display it, mostly for the build
2161 # system etc to be able to see it easier
2162 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2164 if [ -z "$gccver" ]; then
2165 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2166 echo "WARNING: this may cause your build to fail since we cannot do the"
2167 echo "WARNING: checks we want now."
2170 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2173 num1
=`echo $gccver | cut -d . -f1`
2174 num2
=`echo $gccver | cut -d . -f2`
2175 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2182 echo "Using $CC $gccver ($gccnum)"
2184 if test "$gccnum" -ge "400"; then
2185 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2186 # so we ignore that warnings for now
2188 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2191 if test "$gccnum" -ge "401"; then
2192 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2193 # will break strict-aliasing rules"
2195 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2198 if test "$gccnum" -ge "402"; then
2199 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2200 # and later would throw it for several valid cases
2201 GCCOPTS
="$GCCOPTS -Wno-override-init"
2209 # cross-compile for win32
2212 # Verify that the cross-compiler is of a recommended version!
2213 if test "$gccver" != "$gccchoice"; then
2214 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2215 echo "WARNING: version $gccchoice!"
2216 echo "WARNING: This may cause your build to fail since it may be a version"
2217 echo "WARNING: that isn't functional or known to not be the best choice."
2218 echo "WARNING: If you suffer from build problems, you know that this is"
2219 echo "WARNING: a likely source for them..."
2227 echo "Using $LD $ldver"
2229 # check the compiler for SH platforms
2230 if test "$CC" = "sh-elf-gcc"; then
2231 if test "$gccnum" -lt "400"; then
2232 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2233 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2235 # figure out patch status
2236 gccpatch
=`$CC --version`;
2238 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2239 echo "gcc $gccver is rockbox patched"
2240 # then convert -O to -Os to get smaller binaries!
2241 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2243 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2244 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2249 if test "$CC" = "m68k-elf-gcc"; then
2250 # convert -O to -Os to get smaller binaries!
2251 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2254 if [ "1" != `parse_args --ccache` ]; then
2255 echo "Enable ccache for building"
2258 if [ "1" = `parse_args --no-ccache` ]; then
2259 ccache
=`findtool ccache`
2260 if test -n "$ccache"; then
2261 echo "Found and uses ccache ($ccache)"
2266 # figure out the full path to the various commands if possible
2267 HOSTCC
=`findtool gcc --lit`
2268 HOSTAR
=`findtool ar --lit`
2269 CC
=`findtool ${CC} --lit`
2270 LD
=`findtool ${AR} --lit`
2271 AR
=`findtool ${AR} --lit`
2272 AS
=`findtool ${AS} --lit`
2273 OC
=`findtool ${OC} --lit`
2274 WINDRES
=`findtool ${WINDRES} --lit`
2275 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2276 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2277 RANLIB
=`findtool ${RANLIB} --lit`
2279 if test -n "$ccache"; then
2283 if test "X$endian" = "Xbig"; then
2284 defendian
="ROCKBOX_BIG_ENDIAN"
2286 defendian
="ROCKBOX_LITTLE_ENDIAN"
2290 -e "s,@ENDIAN@,${defendian},g" \
2291 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2292 -e "s,@config_rtc@,$config_rtc,g" \
2293 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2295 /* This header was made by configure */
2296 #ifndef __BUILD_AUTOCONF_H
2297 #define __BUILD_AUTOCONF_H
2299 /* Define endianess for the target or simulator platform */
2302 /* Define this if you build rockbox to support the logf logging and display */
2303 #undef ROCKBOX_HAS_LOGF
2305 /* optional defines for RTC mod for h1x0 */
2309 #endif /* __BUILD_AUTOCONF_H */
2312 if test -n "$t_cpu"; then
2313 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2314 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2315 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2319 if test "$simulator" = "yes"; then
2320 # add simul make stuff on the #SIMUL# line
2321 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2322 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2324 # delete the lines that match
2325 simmagic1
='/@SIMUL1@/D'
2326 simmagic2
='/@SIMUL2@/D'
2329 if test "$swcodec" = "yes"; then
2330 voicetoolset
="rbspeexenc voicefont wavtrim"
2332 voicetoolset
="voicefont wavtrim"
2335 if test "$apps" = "apps"; then
2336 # only when we build "real" apps we build the .lng files
2341 -e "s,@ROOTDIR@,${rootdir},g" \
2342 -e "s,@DEBUG@,${debug},g" \
2343 -e "s,@MEMORY@,${memory},g" \
2344 -e "s,@TARGET_ID@,${target_id},g" \
2345 -e "s,@TARGET@,${target},g" \
2346 -e "s,@CPU@,${t_cpu},g" \
2347 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2348 -e "s,@MODELNAME@,${modelname},g" \
2349 -e "s,@LANGUAGE@,${language},g" \
2350 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2351 -e "s,@PWD@,${pwd},g" \
2352 -e "s,@HOSTCC@,${HOSTCC},g" \
2353 -e "s,@HOSTAR@,${HOSTAR},g" \
2354 -e "s,@CC@,${CC},g" \
2355 -e "s,@LD@,${LD},g" \
2356 -e "s,@AR@,${AR},g" \
2357 -e "s,@AS@,${AS},g" \
2358 -e "s,@OC@,${OC},g" \
2359 -e "s,@WINDRES@,${WINDRES},g" \
2360 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2361 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2362 -e "s,@RANLIB@,${RANLIB},g" \
2363 -e "s,@TOOL@,${tool},g" \
2364 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2365 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2366 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2367 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2368 -e "s,@OUTPUT@,${output},g" \
2369 -e "s,@APPEXTRA@,${appextra},g" \
2370 -e "s,@ARCHOSROM@,${archosrom},g" \
2371 -e "s,@FLASHFILE@,${flash},g" \
2372 -e "s,@PLUGINS@,${plugins},g" \
2373 -e "s,@CODECS@,${swcodec},g" \
2374 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2375 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2376 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2377 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2378 -e "s!@LDOPTS@!${LDOPTS}!g" \
2379 -e "s,@LOADADDRESS@,${loadaddress},g" \
2380 -e "s,@EXTRADEF@,${extradefines},g" \
2381 -e "s,@APPSDIR@,${appsdir},g" \
2382 -e "s,@FIRMDIR@,${firmdir},g" \
2383 -e "s,@TOOLSDIR@,${toolsdir},g" \
2384 -e "s,@APPS@,${apps},g" \
2385 -e "s,@SIMVER@,${simver},g" \
2386 -e "s,@GCCVER@,${gccver},g" \
2387 -e "s,@GCCNUM@,${gccnum},g" \
2388 -e "s,@UNAME@,${uname},g" \
2389 -e "s,@ENDIAN@,${defendian},g" \
2390 -e "s,@TOOLSET@,${toolset},g" \
2393 -e "s,@MANUALDEV@,${manualdev},g" \
2394 -e "s,@ENCODER@,${ENC_CMD},g" \
2395 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2396 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2397 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2398 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2399 -e "s,@LANGS@,${buildlangs},g" \
2400 -e "s,@USE_ELF@,${USE_ELF},g" \
2402 ## Automatically generated. http://www.rockbox.org/
2410 # old 'make' versions don't have the built-in 'info' function
2411 info=old\$(shell echo >&2 "Consider upgrading to GNU make 3.81+ for optimum build performance.")
2412 ifeq (\$(call info),old)
2413 export info=echo "\$\$(1)";
2416 export ROOTDIR=@ROOTDIR@
2417 export FIRMDIR=@FIRMDIR@
2418 export APPSDIR=@APPSDIR@
2419 export TOOLSDIR=@TOOLSDIR@
2420 export DOCSDIR=\$(ROOTDIR)/docs
2421 export MANUALDIR=\${ROOTDIR}/manual
2422 export DEBUG=@DEBUG@
2423 export MODELNAME=@MODELNAME@
2424 export ARCHOSROM=@ARCHOSROM@
2425 export FLASHFILE=@FLASHFILE@
2426 export TARGET_ID=@TARGET_ID@
2427 export TARGET=@TARGET@
2429 export MANUFACTURER=@MANUFACTURER@
2431 export BUILDDIR=@PWD@
2432 export LANGUAGE=@LANGUAGE@
2433 export VOICELANGUAGE=@VOICELANGUAGE@
2434 export MEMORYSIZE=@MEMORY@
2435 export VERSION=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
2436 export BUILDDATE=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2437 export MKFIRMWARE=@TOOL@
2438 export BMP2RB_MONO=@BMP2RB_MONO@
2439 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2440 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2441 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2442 export BINARY=@OUTPUT@
2443 export APPEXTRA=@APPEXTRA@
2444 export ENABLEDPLUGINS=@PLUGINS@
2445 export SOFTWARECODECS=@CODECS@
2446 export EXTRA_DEFINES=@EXTRADEF@
2447 export HOSTCC=@HOSTCC@
2448 export HOSTAR=@HOSTAR@
2454 export WINDRES=@WINDRES@
2455 export DLLTOOL=@DLLTOOL@
2456 export DLLWRAP=@DLLWRAP@
2457 export RANLIB=@RANLIB@
2458 export PROFILE_OPTS=@PROFILE_OPTS@
2459 export SIMVER=@SIMVER@
2460 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2461 export GCCOPTS=@GCCOPTS@
2462 export TARGET_INC=@TARGET_INC@
2463 export LOADADDRESS=@LOADADDRESS@
2464 export SHARED_FLAG=@SHARED_FLAG@
2465 export LDOPTS=@LDOPTS@
2466 export GCCVER=@GCCVER@
2467 export GCCNUM=@GCCNUM@
2468 export UNAME=@UNAME@
2469 export MANUALDEV=@MANUALDEV@
2470 export TTS_OPTS=@TTS_OPTS@
2471 export TTS_ENGINE=@TTS_ENGINE@
2472 export ENC_OPTS=@ENC_OPTS@
2473 export ENCODER=@ENCODER@
2474 export USE_ELF=@USE_ELF@
2476 # Do not print "Entering directory ..."
2477 MAKEFLAGS += --no-print-directory
2479 .PHONY: all clean tags zip tools manual bin build info langs
2484 \$(SILENT)\$(TOOLSDIR)/mkinfo.pl \$(BUILDDIR)/rockbox-info.txt
2486 build: tools @LANGS@
2489 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2490 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
2495 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
2496 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ \$(BUILDDIR)/\$(BINARY)
2499 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ rocks
2501 veryclean: clean toolsclean
2504 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) clean
2507 \$(SILENT)echo Cleaning build directory
2508 \$(SILENT)rm -rf rockbox.zip rockbox.7z rockbox.tar rockbox.tar.gz \
2509 rockbox.tar.bz2 TAGS @APPS@ firmware comsim sim lang.[ch] \
2510 manual *.pdf *.a credits.raw @OUTPUT@ bitmaps pluginbitmaps \
2511 @ARCHOSROM@ @FLASHFILE@ UI256.bmp rockbox-full.zip \
2512 html txt rockbox-manual*.zip sysfont.h rockbox-info.txt \
2513 voicefontids *.wav *.mp3 *.voice max_language_size.h
2516 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @TOOLSET@
2519 \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) AR=\$(HOSTAR) @VOICETOOLSET@
2522 \$(SILENT)rm -f TAGS
2523 \$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
2524 \$(SILENT)\$(MAKE) -C \$(APPSDIR) tags
2525 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins tags
2526 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/plugins/lib tags
2529 \$(SILENT)\$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\" -r "\$(ROOTDIR)" -f 1 -o rockbox-fonts.zip \$(TARGET) \$(BINARY)
2532 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2533 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2536 \$(SILENT)find . -name "*.map" | xargs zip rockbox-maps.zip
2539 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2540 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -r "\$(ROOTDIR)" -f 2 -o rockbox-full.zip \$(TARGET) \$(BINARY)
2543 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2544 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.7z" -z "7za a -mx=9" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2547 \$(SILENT)rm -f rockbox.tar
2548 \$(SILENT)for f in \`cat \$(BUILDDIR)/@APPS@/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2549 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -o "rockbox.tar" -z "tar -cf" -r "\$(ROOTDIR)" \$(TARGET) \$(BINARY)
2552 \$(SILENT)bzip2 -f9 rockbox.tar
2555 \$(SILENT)gzip -f9 rockbox.tar
2558 \$(SILENT)mkdir -p \$(BUILDDIR)/apps/lang
2559 \$(SILENT)\$(MAKE) -C \$(APPSDIR)/lang OBJDIR=\$(BUILDDIR)/apps/lang
2563 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-pdf
2565 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-html
2566 manual-zhtml: manual-zip
2568 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt
2570 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-txt-zip
2572 \$(SILENT)\$(MAKE) -C \$(MANUALDIR) OBJDIR=\$(BUILDDIR)/manual manual-zip
2575 \$(SILENT)\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@ features
2578 @echo "A few helpful make targets"
2580 @echo "all - builds a full Rockbox (default), including tools"
2581 @echo "bin - builds only the Rockbox.<target name> file"
2582 @echo "rocks - builds only plugins and codecs"
2583 @echo "clean - cleans a build directory (not tools)"
2584 @echo "veryclean - cleans the build and tools directories"
2585 @echo "manual - builds a manual"
2586 @echo "manual-html - HTML manual"
2587 @echo "manual-zip - HTML manual (zipped)"
2588 @echo "manual-txt - txt manual"
2589 @echo "fullzip - creates a rockbox.zip of your build with fonts"
2590 @echo "zip - creates a rockbox.zip of your build (no fonts)"
2591 @echo "gzip - creates a rockbox.tar.gz of your build (no fonts)"
2592 @echo "bzip2 - creates a rockbox.tar.bz2 of your build (no fonts)"
2593 @echo "7zip - creates a rockbox.7z of your build (no fonts)"
2594 @echo "fontzip - creates rockbox-fonts.zip"
2595 @echo "mapzip - creates rockbox-maps.zip with all .map files"
2596 @echo "tools - builds the tools only"
2597 @echo "voicetools - builds the voice tools only"
2598 @echo "install - installs your build (for simulator builds only, no fonts)"
2599 @echo "fullinstall - installs your build (for simulator builds only, with fonts)"
2603 if [ "yes" = "$simulator" ]; then
2605 cat >> Makefile
<<EOF
2608 @echo "installing your build in your archos dir"
2609 \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2610 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 0 \$(TARGET) \$(BINARY)
2613 @echo "installing a full setup in your archos dir"
2614 \$(SILENT)for f in \`cat \$(BUILDDIR)/apps/features\`; do feat="\$\$feat:\$\$f" ; done; \\
2615 \$(TOOLSDIR)/buildzip.pl \$(VERBOSEOPT) -t \"\$(MODELNAME)\$\$feat\" -i \"\$(TARGET_ID)\" -s -r "\$(ROOTDIR)" -f 2 \$(TARGET) \$(BINARY)
2620 if [ "yes" = "$voice" ]; then
2622 cat >> Makefile
<<EOF
2624 voice: voicetools features
2625 \$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
2626 for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/voice.pl -V -l=\$\$lang -t=\$(MODELNAME)\$\$feat -i=\$(TARGET_ID) -e="\$(ENCODER)" -E="\$(ENC_OPTS)" -s=\$(TTS_ENGINE) -S="\$(TTS_OPTS)"; done \\
2631 echo "Created Makefile"