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: //'`
21 # Begin Function Definitions
31 WINDRES
=${prefix}windres
32 DLLTOOL
=${prefix}dlltool
33 DLLWRAP
=${prefix}dllwrap
34 RANLIB
=${prefix}ranlib
42 # naive approach to selecting a mingw cross-compiler on linux/*nix
43 echo "Enabling win32 crosscompiling"
45 prefixtools i586-mingw32msvc-
47 # add cross-compiler option(s)
48 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
49 LDOPTS
="`sdl-config --libs` -mconsole"
51 output
="rockboxui.exe" # use this as output binary name
53 endian
="little" # windows is little endian
56 # scan the $PATH for the given command
63 # echo "checks for $file in $path" >&2
64 if test -f "$path/$file"; then
69 # check whether caller wants literal return value if not found
70 if [ "$2" = "--lit" ]; then
75 # parse the argument list, returns the value after the = in case of a
76 # option=value type option, returns 0 in case of --ccache or --no-ccache,
77 # returns 1 if the searched argument type wasn't fount in the argument list
78 # Usage [var = ]`parse_args <argumenttype>`, e.g. `parse_args --target`
80 # var definitons below are needed so that parse_args can see the arguments
81 arg1
=$1 arg2
=$2 arg3
=$3 arg4
=$4 arg5
=$5 arg6
=$6 arg7
=$7 arg8
=$8 arg9
=$9
85 for i
in $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9
87 if [ "$1" = "--ccache" ]; then
88 if [ "$i" = "--ccache" ]; then
91 elif [ "$1" = "--no-ccache" ]; then
92 if [ "$i" = "--no-ccache" ]; then
95 elif [ "$1" = `echo $i|cut -d'=' -f1` ]; then
96 ret
=`echo $i|cut -d'=' -f2`
104 # default tool setup for native building
108 GCCOPTS
='-W -Wall -g -fno-builtin'
110 output
="rockboxui" # use this as default output binary name
112 # generic sdl-config checker
113 sdl
=`findtool sdl-config`
115 if [ -z "$sdl" ]; then
116 echo "configure didn't find sdl-config, which indicates that you"
117 echo "don't have SDL (properly) installed. Please correct and"
118 echo "re-run configure!"
122 # default share option, override below if needed
123 SHARED_FLAG
="-shared"
127 echo "Cygwin host detected"
130 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
131 LDOPTS
="`sdl-config --libs` -mconsole"
133 output
="rockboxui.exe" # use this as output binary name
137 echo "MinGW host detected"
140 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
141 LDOPTS
="`sdl-config --libs` -mconsole"
143 output
="rockboxui.exe" # use this as output binary name
147 echo "Linux host detected"
148 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
149 # Enable crosscompiling if sdl-config is from Windows SDL
152 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
153 LDOPTS
="`sdl-config --libs`"
158 echo "FreeBSD host detected"
160 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
161 LDOPTS
="`sdl-config --libs`"
165 echo "Darwin host detected"
167 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
168 LDOPTS
="`sdl-config --libs`"
169 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
173 echo "Unsupported system: $uname, fix configure and retry"
178 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
180 if test "X$crosscompile" != "Xyes"; then
181 if [ "`uname -m`" = "x86_64" ] ||
[ "`uname -m`" = "amd64" ]; then
182 # fPIC is needed to make shared objects link
183 # setting visibility to hidden is necessary to avoid strange crashes
184 # due to symbol clashing
185 GCCOPTS
="$GCCOPTS -fPIC -fvisibility=hidden"
189 cat >/tmp
/conftest-
$id.c
<<EOF
191 int main(int argc, char **argv)
194 char *varp = (char *)&var;
202 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
204 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
211 echo "Simulator environment deemed $endian endian"
213 # use wildcard here to make it work even if it was named *.exe like
215 rm -f /tmp
/conftest-
$id*
220 # functions for setting up cross-compiler names and options
221 # also set endianess and what the exact recommended gcc version is
222 # the gcc version should most likely match what versions we build with
227 GCCOPTS
="$CCOPTS -m1"
228 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
234 prefixtools calmrisc16-unknown-elf-
235 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
236 GCCOPTIMIZE
="-fomit-frame-pointer"
241 prefixtools m68k-elf-
242 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
243 GCCOPTIMIZE
="-fomit-frame-pointer"
250 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
251 if test "X$1" != "Xshort"; then
252 GCCOPTS
="$GCCOPTS -mlong-calls"
254 GCCOPTIMIZE
="-fomit-frame-pointer"
261 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi"
262 if test "$modelname" != "gigabeatf"; then
263 GCCOPTS
="$GCCOPTS -mlong-calls"
265 GCCOPTIMIZE
="-fomit-frame-pointer"
272 GCCOPTS
="$CCOPTS -mbig-endian -mcpu=arm940t -mlong-calls"
273 GCCOPTIMIZE
="-fomit-frame-pointer"
280 GCCOPTS
="$CCOPTS -mcpu=arm9e -mlong-calls"
281 GCCOPTIMIZE
="-fomit-frame-pointer"
288 GCCOPTS
="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
289 GCCOPTIMIZE
="-fomit-frame-pointer"
296 GCCOPTS
="$CCOPTS -mcpu=arm1136jf-s"
297 if test "$modelname" != "gigabeats"; then
298 GCCOPTS
="$GCCOPTS -mlong-calls"
300 GCCOPTIMIZE
="-fomit-frame-pointer"
306 prefixtools mipsel-elf-
307 GCCOPTS
="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-abicalls -mlong-calls"
308 GCCOPTIMIZE
="-fomit-frame-pointer"
309 GCCOPTS
="$GCCOPTS -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -msoft-float -G 0"
315 ##################################################################
316 # Prompt for specific developer options
319 echo "Enter your developer options (press enter when done)"
320 printf "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
321 if [ "$memory" = "2" ]; then
324 if [ "$modelname" = "h120" ]; then
331 while [ $cont = "1" ]; do
337 if [ "yes" = "$profile" ]; then
338 echo "Debug is incompatible with profiling"
345 echo "logf() support enabled"
349 echo "Simulator build enabled"
353 if [ "yes" = "$use_debug" ]; then
354 echo "Profiling is incompatible with debug"
356 echo "Profiling support is enabled"
361 echo "Voice build selected"
365 if [ "$memory" = "2" ]; then
367 echo "Memory size selected: 8MB"
373 if [ "$modelname" = "h120" ]; then
374 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
375 have_rtc_alarm
="#define HAVE_RTC_ALARM"
376 echo "RTC functions enabled (DS1339/DS3231)"
388 if [ "yes" = "$voice" ]; then
389 # Ask about languages to build
390 echo "Select a number for the language to use (default is english)"
391 # The multiple-language feature is currently broken
392 # echo "You may enter a comma-separated list of languages to build"
395 voicelanguage
=`whichlang`
397 if [ -z "$voicelanguage" ]; then
399 voicelanguage
="english"
401 echo "Voice language set to $voicelanguage"
403 # Configure encoder and TTS engine for each language
404 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
405 voiceconfig
"$thislang"
408 if [ "yes" = "$use_debug" ]; then
410 GCCOPTS
="$GCCOPTS -g -DDEBUG"
412 if [ "yes" = "$logf" ]; then
413 use_logf
="#define ROCKBOX_HAS_LOGF 1"
415 if [ "yes" = "$simulator" ]; then
417 extradefines
="$extradefines -DSIMULATOR"
419 if [ "yes" = "$profile" ]; then
420 extradefines
="$extradefines -DRB_PROFILE"
421 PROFILE_OPTS
="-finstrument-functions"
425 # Configure voice settings
428 echo "Building $thislang voice for $modelname. Select options"
431 if [ -n "`findtool flite`" ]; then
435 DEFAULT_TTS_OPTS
=$FLITE_OPTS
436 DEFAULT_NOISEFLOOR
="500"
439 if [ -n "`findtool espeak`" ]; then
443 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
444 DEFAULT_NOISEFLOOR
="500"
447 if [ -n "`findtool festival`" ]; then
448 FESTIVAL
="(F)estival "
451 FESTIVAL_OPTS
="--language italian"
454 FESTIVAL_OPTS
="--language spanish"
457 FESTIVAL_OPTS
="--language finnish"
460 FESTIVAL_OPTS
="--language czech"
466 DEFAULT_TTS
="festival"
467 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
468 DEFAULT_NOISEFLOOR
="500"
471 if [ -n "`findtool swift`" ]; then
475 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
476 DEFAULT_NOISEFLOOR
="500"
479 # Allow SAPI if Windows is in use
480 if [ -n "`findtool winver`" ]; then
484 DEFAULT_TTS_OPTS
=$SAPI_OPTS
485 DEFAULT_NOISEFLOOR
="500"
489 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
490 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
494 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
499 NOISEFLOOR
="500" # TODO: check this value
505 TTS_OPTS
=$ESPEAK_OPTS
508 TTS_ENGINE
="festival"
510 TTS_OPTS
=$FESTIVAL_OPTS
523 TTS_ENGINE
=$DEFAULT_TTS
524 TTS_OPTS
=$DEFAULT_TTS_OPTS
525 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
527 echo "Using $TTS_ENGINE for TTS"
529 # Allow the user to input manual commandline options
530 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
531 USER_TTS_OPTS
=`input`
532 if [ -n "$USER_TTS_OPTS" ]; then
533 TTS_OPTS
="$USER_TTS_OPTS"
538 if [ "$swcodec" = "yes" ]; then
541 ENC_OPTS
="-q 4 -c 10"
543 if [ -n "`findtool lame`" ]; then
546 ENC_OPTS
="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
548 echo "You need LAME in the system path to build voice files for"
549 echo "HWCODEC targets."
554 echo "Using $ENCODER for encoding voice clips"
556 # Allow the user to input manual commandline options
557 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
558 USER_ENC_OPTS
=`input`
559 if [ -n "$USER_ENC_OPTS" ]; then
560 ENC_OPTS
=$USER_ENC_OPTS
564 if [ -n "`findtool cygpath`" ]; then
565 TEMPDIR
=`cygpath . -a -w`
570 # figure out which languages that are around
571 for file in $rootdir/apps
/lang
/*.lang
; do
572 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
573 langs
="$langs $clean"
577 for one
in $langs; do
587 # Allow the user to pass a comma-separated list of langauges
588 for thispick
in `echo $pick | sed 's/,/ /g'`; do
590 for one
in $langs; do
591 # Accept both the language number and name
592 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
593 if [ "$output" = "" ]; then
607 if test "$opt" = "--help"; then
608 echo "Rockbox configure script."
609 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
610 echo "Do *NOT* run this within the tools directory!"
613 Usage: configure [OPTION]...
615 --target=TARGET Sets the target, TARGET can be either the target ID or
616 corresponding string. Run without this option to see all
619 --ram=RAM Sets the RAM for certain targets. Even though any number
620 is accepted, not every number is correct. The default
621 value will be applied, if you entered a wrong number
622 (which depends on the target). Watch the output. Run
623 without this option if you are not sure which the right
626 --type=TYPE Sets the build type. The shortcut is also valid.
627 Run without this option to see available types.
629 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
630 This is useful for having multiple alternate builds on
631 your device that you can load with ROLO. However as the
632 bootloader looks for .rockbox you won't be able to boot
635 --ccache Enable ccache use (done by default these days)
636 --no-ccache Disable ccache use
637 --help Shows this message (must not be used with other options)
644 if test -r "configure"; then
645 # this is a check for a configure script in the current directory, it there
646 # is one, try to figure out if it is this one!
648 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
649 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
650 echo "It will only cause you pain and grief. Instead do this:"
653 echo " mkdir build-dir"
655 echo " ../tools/configure"
657 echo "Much happiness will arise from this. Enjoy"
662 # get our current directory
665 if { echo $pwd |
grep " "; } then
666 echo "You're running this script in a path that contains space. The build"
667 echo "system is unfortunately not clever enough to deal with this. Please"
668 echo "run the script from a different path, rename the path or fix the build"
673 if [ -z "$rootdir" ]; then
674 ##################################################################
675 # Figure out where the source code root is!
677 rootdir
=`dirname $0`/..
/
679 #####################################################################
680 # Convert the possibly relative directory name to an absolute version
686 # cd back to the build dir
691 appsdir
='\$(ROOTDIR)/apps'
692 firmdir
='\$(ROOTDIR)/firmware'
693 toolsdir
='\$(ROOTDIR)/tools'
696 ##################################################################
697 # Figure out target platform
700 if [ "1" != `parse_args --target` ]; then
701 buildfor
=`parse_args --target`;
703 echo "Enter target platform:"
705 ==Archos== ==iriver== ==Apple iPod==
706 0) Player/Studio 10) H120/H140 20) Color/Photo
707 1) Recorder 11) H320/H340 21) Nano
708 2) FM Recorder 12) iHP-100/110/115 22) Video
709 3) Recorder v2 13) iFP-790 23) 3G
710 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
711 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
713 ==Toshiba== 27) 1G, 2G
715 ==Cowon/iAudio== 41) Gigabeat S ==SanDisk==
716 30) X5/X5V/X5L 50) Sansa e200
717 31) M5/M5L ==Tatung== 51) Sansa e200R
718 32) 7 60) Elio TPJ-1022 52) Sansa c200
719 33) D2 53) Sansa m200
720 34) M3/M3L ==Olympus== 54) Sansa c100
721 70) M:Robe 500 55) Sansa Clip
722 ==Creative== 71) M:Robe 100 56) Sansa e200v2
723 90) Zen Vision:M 30GB 57) Sansa m200v4
724 91) Zen Vision:M 60GB ==Philips== 58) Sansa Fuze
725 92) Zen Vision 100) GoGear SA9200 59) Sansa c200v2
728 ==Onda== 80) DAX 1GB MP3/DAB
731 122) VX747+ 111) M6SP
739 # Set of tools built for all target platforms:
740 toolset
="rdf2binary convbdf codepages"
742 # Toolsets for some target families:
743 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
744 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
745 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
746 ipodbitmaptools
="$toolset scramble bmp2rb"
747 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
748 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
749 # generic is used by IFP, Meizu and Onda
750 genericbitmaptools
="$toolset bmp2rb"
751 # scramble is used by all other targets
752 scramblebitmaptools
="$genericbitmaptools scramble"
755 # ---- For each target ----
758 # target_id: a unique number identifying this target, IS NOT the menu number.
759 # Just use the currently highest number+1 when you add a new
761 # modelname: short model name used all over to identify this target
762 # memory: number of megabytes of RAM this target has. If the amount can
763 # be selected by the size prompt, let memory be unset here
764 # target: -Ddefine passed to the build commands to make the correct
765 # config-*.h file get included etc
766 # tool: the tool that takes a plain binary and converts that into a
767 # working "firmware" file for your target
768 # output: the final output file name
769 # boottool: the tool that takes a plain binary and generates a bootloader
770 # file for your target (or blank to use $tool)
771 # bootoutput:the final output file name for the bootloader (or blank to use
773 # appextra: passed to the APPEXTRA variable in the Makefiles.
774 # TODO: add proper explanation
775 # archosrom: used only for Archos targets that build a special flashable .ucl
777 # flash: name of output for flashing, for targets where there's a special
778 # file output for this.
779 # plugins: set to 'yes' to build the plugins. Early development builds can
780 # set this to no in the early stages to have an easier life for a
782 # swcodec: set 'yes' on swcodec targets
783 # toolset: lists what particular tools in the tools/ directory that this
784 # target needs to have built prior to building Rockbox
787 # *cc: sets up gcc and compiler options for your target builds. Note
788 # that if you select a simulator build, the compiler selection is
789 # overridden later in the script.
796 target
="-DARCHOS_PLAYER"
798 tool
="$rootdir/tools/scramble"
800 appextra
="player:gui"
801 archosrom
="$pwd/rombox.ucl"
802 flash
="$pwd/rockbox.ucl"
806 # toolset is the tools within the tools directory that we build for
807 # this particular target.
808 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
810 # Note: the convbdf is present in the toolset just because: 1) the
811 # firmware/Makefile assumes it is present always, and 2) we will need it when we
812 # build the player simulator
815 t_manufacturer
="archos"
822 target
="-DARCHOS_RECORDER"
824 tool
="$rootdir/tools/scramble"
825 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
826 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
828 appextra
="recorder:gui"
829 #archosrom="$pwd/rombox.ucl"
830 flash
="$pwd/rockbox.ucl"
833 # toolset is the tools within the tools directory that we build for
834 # this particular target.
835 toolset
=$archosbitmaptools
837 t_manufacturer
="archos"
843 modelname
="fmrecorder"
844 target
="-DARCHOS_FMRECORDER"
846 tool
="$rootdir/tools/scramble -fm"
847 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
848 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
850 appextra
="recorder:gui"
851 #archosrom="$pwd/rombox.ucl"
852 flash
="$pwd/rockbox.ucl"
855 # toolset is the tools within the tools directory that we build for
856 # this particular target.
857 toolset
=$archosbitmaptools
859 t_manufacturer
="archos"
865 modelname
="recorderv2"
866 target
="-DARCHOS_RECORDERV2"
868 tool
="$rootdir/tools/scramble -v2"
869 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
870 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
872 appextra
="recorder:gui"
873 #archosrom="$pwd/rombox.ucl"
874 flash
="$pwd/rockbox.ucl"
877 # toolset is the tools within the tools directory that we build for
878 # this particular target.
879 toolset
=$archosbitmaptools
881 t_manufacturer
="archos"
888 target
="-DARCHOS_ONDIOSP"
890 tool
="$rootdir/tools/scramble -osp"
891 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
892 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
894 appextra
="recorder:gui"
895 archosrom
="$pwd/rombox.ucl"
896 flash
="$pwd/rockbox.ucl"
899 # toolset is the tools within the tools directory that we build for
900 # this particular target.
901 toolset
=$archosbitmaptools
903 t_manufacturer
="archos"
910 target
="-DARCHOS_ONDIOFM"
912 tool
="$rootdir/tools/scramble -ofm"
913 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
914 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
916 appextra
="recorder:gui"
917 #archosrom="$pwd/rombox.ucl"
918 flash
="$pwd/rockbox.ucl"
921 toolset
=$archosbitmaptools
923 t_manufacturer
="archos"
930 target
="-DARCHOS_AV300"
933 tool
="$rootdir/tools/scramble -mm=C"
934 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
935 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
937 appextra
="recorder:gui"
940 # toolset is the tools within the tools directory that we build for
941 # this particular target.
942 toolset
="$toolset scramble descramble bmp2rb"
943 # architecture, manufacturer and model for the target-tree build
945 t_manufacturer
="archos"
952 target
="-DIRIVER_H120"
955 tool
="$rootdir/tools/scramble -add=h120"
956 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
957 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
958 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
959 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
960 output
="rockbox.iriver"
961 appextra
="recorder:gui"
962 flash
="$pwd/rombox.iriver"
965 # toolset is the tools within the tools directory that we build for
966 # this particular target.
967 toolset
=$iriverbitmaptools
969 t_manufacturer
="iriver"
976 target
="-DIRIVER_H300"
979 tool
="$rootdir/tools/scramble -add=h300"
980 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
981 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
982 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
983 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
984 output
="rockbox.iriver"
985 appextra
="recorder:gui"
988 # toolset is the tools within the tools directory that we build for
989 # this particular target.
990 toolset
=$iriverbitmaptools
992 t_manufacturer
="iriver"
999 target
="-DIRIVER_H100"
1002 tool
="$rootdir/tools/scramble -add=h100"
1003 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1004 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1005 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1006 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1007 output
="rockbox.iriver"
1008 appextra
="recorder:gui"
1009 flash
="$pwd/rombox.iriver"
1012 # toolset is the tools within the tools directory that we build for
1013 # this particular target.
1014 toolset
=$iriverbitmaptools
1016 t_manufacturer
="iriver"
1023 target
="-DIRIVER_IFP7XX"
1027 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1028 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1029 output
="rockbox.wma"
1030 appextra
="recorder:gui"
1033 # toolset is the tools within the tools directory that we build for
1034 # this particular target.
1035 toolset
=$genericbitmaptools
1037 t_manufacturer
="pnx0101"
1038 t_model
="iriver-ifp7xx"
1044 target
="-DIRIVER_H10"
1047 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1048 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1049 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1050 output
="rockbox.mi4"
1051 appextra
="recorder:gui"
1054 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1055 bootoutput
="H10_20GC.mi4"
1056 # toolset is the tools within the tools directory that we build for
1057 # this particular target.
1058 toolset
=$scramblebitmaptools
1059 # architecture, manufacturer and model for the target-tree build
1061 t_manufacturer
="iriver"
1068 target
="-DIRIVER_H10_5GB"
1071 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1072 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1073 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1074 output
="rockbox.mi4"
1075 appextra
="recorder:gui"
1078 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1079 bootoutput
="H10.mi4"
1080 # toolset is the tools within the tools directory that we build for
1081 # this particular target.
1082 toolset
=$scramblebitmaptools
1083 # architecture, manufacturer and model for the target-tree build
1085 t_manufacturer
="iriver"
1091 modelname
="ipodcolor"
1092 target
="-DIPOD_COLOR"
1095 tool
="$rootdir/tools/scramble -add=ipco"
1096 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1097 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1098 output
="rockbox.ipod"
1099 appextra
="recorder:gui"
1102 bootoutput
="bootloader-$modelname.ipod"
1103 # toolset is the tools within the tools directory that we build for
1104 # this particular target.
1105 toolset
=$ipodbitmaptools
1106 # architecture, manufacturer and model for the target-tree build
1108 t_manufacturer
="ipod"
1114 modelname
="ipodnano"
1115 target
="-DIPOD_NANO"
1118 tool
="$rootdir/tools/scramble -add=nano"
1119 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1120 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1121 output
="rockbox.ipod"
1122 appextra
="recorder:gui"
1125 bootoutput
="bootloader-$modelname.ipod"
1126 # toolset is the tools within the tools directory that we build for
1127 # this particular target.
1128 toolset
=$ipodbitmaptools
1129 # architecture, manufacturer and model for the target-tree build
1131 t_manufacturer
="ipod"
1137 modelname
="ipodvideo"
1138 target
="-DIPOD_VIDEO"
1140 tool
="$rootdir/tools/scramble -add=ipvd"
1141 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1142 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1143 output
="rockbox.ipod"
1144 appextra
="recorder:gui"
1147 bootoutput
="bootloader-$modelname.ipod"
1148 # toolset is the tools within the tools directory that we build for
1149 # this particular target.
1150 toolset
=$ipodbitmaptools
1151 # architecture, manufacturer and model for the target-tree build
1153 t_manufacturer
="ipod"
1163 tool
="$rootdir/tools/scramble -add=ip3g"
1164 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1165 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1166 output
="rockbox.ipod"
1167 appextra
="recorder:gui"
1170 bootoutput
="bootloader-$modelname.ipod"
1171 # toolset is the tools within the tools directory that we build for
1172 # this particular target.
1173 toolset
=$ipodbitmaptools
1174 # architecture, manufacturer and model for the target-tree build
1176 t_manufacturer
="ipod"
1186 tool
="$rootdir/tools/scramble -add=ip4g"
1187 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1188 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1189 output
="rockbox.ipod"
1190 appextra
="recorder:gui"
1193 bootoutput
="bootloader-$modelname.ipod"
1194 # toolset is the tools within the tools directory that we build for
1195 # this particular target.
1196 toolset
=$ipodbitmaptools
1197 # architecture, manufacturer and model for the target-tree build
1199 t_manufacturer
="ipod"
1205 modelname
="ipodmini"
1206 target
="-DIPOD_MINI"
1209 tool
="$rootdir/tools/scramble -add=mini"
1210 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1211 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1212 output
="rockbox.ipod"
1213 appextra
="recorder:gui"
1216 bootoutput
="bootloader-$modelname.ipod"
1217 # toolset is the tools within the tools directory that we build for
1218 # this particular target.
1219 toolset
=$ipodbitmaptools
1220 # architecture, manufacturer and model for the target-tree build
1222 t_manufacturer
="ipod"
1228 modelname
="ipodmini2g"
1229 target
="-DIPOD_MINI2G"
1232 tool
="$rootdir/tools/scramble -add=mn2g"
1233 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1234 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1235 output
="rockbox.ipod"
1236 appextra
="recorder:gui"
1239 bootoutput
="bootloader-$modelname.ipod"
1240 # toolset is the tools within the tools directory that we build for
1241 # this particular target.
1242 toolset
=$ipodbitmaptools
1243 # architecture, manufacturer and model for the target-tree build
1245 t_manufacturer
="ipod"
1251 modelname
="ipod1g2g"
1252 target
="-DIPOD_1G2G"
1255 tool
="$rootdir/tools/scramble -add=1g2g"
1256 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1257 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1258 output
="rockbox.ipod"
1259 appextra
="recorder:gui"
1262 bootoutput
="bootloader-$modelname.ipod"
1263 # toolset is the tools within the tools directory that we build for
1264 # this particular target.
1265 toolset
=$ipodbitmaptools
1266 # architecture, manufacturer and model for the target-tree build
1268 t_manufacturer
="ipod"
1275 target
="-DIAUDIO_X5"
1278 tool
="$rootdir/tools/scramble -add=iax5"
1279 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1280 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1281 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1282 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1283 output
="rockbox.iaudio"
1284 appextra
="recorder:gui"
1287 # toolset is the tools within the tools directory that we build for
1288 # this particular target.
1289 toolset
="$iaudiobitmaptools"
1290 # architecture, manufacturer and model for the target-tree build
1292 t_manufacturer
="iaudio"
1299 target
="-DIAUDIO_M5"
1302 tool
="$rootdir/tools/scramble -add=iam5"
1303 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1304 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1305 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1306 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1307 output
="rockbox.iaudio"
1308 appextra
="recorder:gui"
1311 # toolset is the tools within the tools directory that we build for
1312 # this particular target.
1313 toolset
="$iaudiobitmaptools"
1314 # architecture, manufacturer and model for the target-tree build
1316 t_manufacturer
="iaudio"
1326 tool
="$rootdir/tools/scramble -add=i7"
1327 boottool
="$rootdir/tools/scramble -tcc=crc"
1328 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1329 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1330 output
="rockbox.iaudio"
1331 appextra
="recorder:gui"
1334 bootoutput
="I7_FW.BIN"
1335 # toolset is the tools within the tools directory that we build for
1336 # this particular target.
1337 toolset
="$tccbitmaptools"
1338 # architecture, manufacturer and model for the target-tree build
1340 t_manufacturer
="tcc77x"
1350 tool
="$rootdir/tools/scramble -add=d2"
1351 boottool
="$rootdir/tools/scramble -tcc=crc"
1352 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1353 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1355 appextra
="recorder:gui"
1358 toolset
="$tccbitmaptools"
1359 # architecture, manufacturer and model for the target-tree build
1361 t_manufacturer
="tcc780x"
1368 target
="-DIAUDIO_M3"
1371 tool
="$rootdir/tools/scramble -add=iam3"
1372 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1373 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1374 output
="rockbox.iaudio"
1375 appextra
="recorder:gui"
1378 # toolset is the tools within the tools directory that we build for
1379 # this particular target.
1380 toolset
="$iaudiobitmaptools"
1381 # architecture, manufacturer and model for the target-tree build
1383 t_manufacturer
="iaudio"
1389 modelname
="gigabeatf"
1390 target
="-DGIGABEAT_F"
1393 tool
="$rootdir/tools/scramble -add=giga"
1394 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1395 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1396 output
="rockbox.gigabeat"
1397 appextra
="recorder:gui"
1400 toolset
=$gigabeatbitmaptools
1401 boottool
="$rootdir/tools/scramble -gigabeat"
1402 bootoutput
="FWIMG01.DAT"
1403 # architecture, manufacturer and model for the target-tree build
1405 t_manufacturer
="s3c2440"
1406 t_model
="gigabeat-fx"
1411 modelname
="gigabeats"
1412 target
="-DGIGABEAT_S"
1415 tool
="$rootdir/tools/scramble -add=gigs"
1416 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1417 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1418 output
="rockbox.gigabeat"
1419 appextra
="recorder:gui"
1422 toolset
="$gigabeatbitmaptools mknkboot"
1423 boottool
="$rootdir/tools/scramble -gigabeats"
1425 # architecture, manufacturer and model for the target-tree build
1427 t_manufacturer
="imx31"
1428 t_model
="gigabeat-s"
1433 modelname
="mrobe500"
1434 target
="-DMROBE_500"
1437 tool
="$rootdir/tools/scramble -add=m500"
1438 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1439 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1440 output
="rockbox.mrobe500"
1441 appextra
="recorder:gui"
1444 toolset
=$gigabeatbitmaptools
1446 bootoutput
="rockbox.mrboot"
1447 # architecture, manufacturer and model for the target-tree build
1449 t_manufacturer
="tms320dm320"
1455 modelname
="mrobe100"
1456 target
="-DMROBE_100"
1459 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1460 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1461 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1462 output
="rockbox.mi4"
1463 appextra
="recorder:gui"
1466 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1467 bootoutput
="pp5020.mi4"
1468 # toolset is the tools within the tools directory that we build for
1469 # this particular target.
1470 toolset
=$scramblebitmaptools
1471 # architecture, manufacturer and model for the target-tree build
1473 t_manufacturer
="olympus"
1479 modelname
="logikdax"
1480 target
="-DLOGIK_DAX"
1483 tool
="$rootdir/tools/scramble -add=ldax"
1484 boottool
="$rootdir/tools/scramble -tcc=crc"
1485 bootoutput
="player.rom"
1486 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1487 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1488 output
="rockbox.logik"
1489 appextra
="recorder:gui"
1492 # toolset is the tools within the tools directory that we build for
1493 # this particular target.
1494 toolset
=$tccbitmaptools
1495 # architecture, manufacturer and model for the target-tree build
1497 t_manufacturer
="tcc77x"
1503 modelname
="creativezvm30"
1504 target
="-DCREATIVE_ZVM"
1507 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1508 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1509 tool
="$rootdir/tools/scramble -creative=zvm"
1511 output
="rockbox.zvm"
1512 appextra
="recorder:gui"
1515 toolset
=$ipodbitmaptools
1516 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1517 bootoutput
="rockbox.zvmboot"
1518 # architecture, manufacturer and model for the target-tree build
1520 t_manufacturer
="tms320dm320"
1521 t_model
="creative-zvm"
1526 modelname
="creativezvm60"
1527 target
="-DCREATIVE_ZVM60GB"
1530 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1531 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1532 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1534 output
="rockbox.zvm60"
1535 appextra
="recorder:gui"
1538 toolset
=$ipodbitmaptools
1539 boottool
="$rootdir/tools/scramble -creative=zvm60"
1540 bootoutput
="rockbox.zvm60boot"
1541 # architecture, manufacturer and model for the target-tree build
1543 t_manufacturer
="tms320dm320"
1544 t_model
="creative-zvm"
1547 92|creativezenvision
)
1549 modelname
="creativezv"
1550 target
="-DCREATIVE_ZV"
1553 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1554 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1555 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1558 appextra
="recorder:gui"
1561 toolset
=$ipodbitmaptools
1562 boottool
="$rootdir/tools/scramble -creative=zenvision"
1563 bootoutput
="rockbox.zvboot"
1564 # architecture, manufacturer and model for the target-tree build
1566 t_manufacturer
="tms320dm320"
1567 t_model
="creative-zvm"
1573 target
="-DSANSA_E200"
1574 memory
=32 # supposedly
1576 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1577 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1578 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1579 output
="rockbox.mi4"
1580 appextra
="recorder:gui"
1583 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1584 bootoutput
="PP5022.mi4"
1585 # toolset is the tools within the tools directory that we build for
1586 # this particular target.
1587 toolset
=$scramblebitmaptools
1588 # architecture, manufacturer and model for the target-tree build
1590 t_manufacturer
="sandisk"
1591 t_model
="sansa-e200"
1595 # the e200R model is pretty much identical to the e200, it only has a
1596 # different option to the scramble tool when building a bootloader and
1597 # makes the bootloader output file name in all lower case.
1600 target
="-DSANSA_E200"
1601 memory
=32 # supposedly
1603 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1604 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1605 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1606 output
="rockbox.mi4"
1607 appextra
="recorder:gui"
1610 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1611 bootoutput
="pp5022.mi4"
1612 # toolset is the tools within the tools directory that we build for
1613 # this particular target.
1614 toolset
=$scramblebitmaptools
1615 # architecture, manufacturer and model for the target-tree build
1617 t_manufacturer
="sandisk"
1618 t_model
="sansa-e200"
1624 target
="-DSANSA_C200"
1625 memory
=32 # supposedly
1627 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1628 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1629 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1630 output
="rockbox.mi4"
1631 appextra
="recorder:gui"
1634 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1635 bootoutput
="firmware.mi4"
1636 # toolset is the tools within the tools directory that we build for
1637 # this particular target.
1638 toolset
=$scramblebitmaptools
1639 # architecture, manufacturer and model for the target-tree build
1641 t_manufacturer
="sandisk"
1642 t_model
="sansa-c200"
1648 target
="-DSANSA_M200"
1651 tool
="$rootdir/tools/scramble -add=m200"
1652 boottool
="$rootdir/tools/scramble -tcc=crc"
1653 bootoutput
="player.rom"
1654 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1655 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1656 output
="rockbox.m200"
1657 appextra
="recorder:gui"
1660 # toolset is the tools within the tools directory that we build for
1661 # this particular target.
1662 toolset
=$tccbitmaptools
1663 # architecture, manufacturer and model for the target-tree build
1665 t_manufacturer
="tcc77x"
1672 target
="-DSANSA_C100"
1673 memory
=32 # unsure, must check
1675 tool
="$rootdir/tools/scramble -add=c100"
1676 boottool
="$rootdir/tools/scramble -tcc=crc"
1677 bootoutput
="player.rom"
1678 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1679 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1680 output
="rockbox.c100"
1681 appextra
="recorder:gui"
1683 # toolset is the tools within the tools directory that we build for
1684 # this particular target.
1685 toolset
=$tccbitmaptools
1686 # architecture, manufacturer and model for the target-tree build
1688 t_manufacturer
="tcc77x"
1695 target
="-DSANSA_CLIP"
1698 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1699 bmp2rb_native
="$bmp2rb_mono"
1700 tool
="$rootdir/tools/scramble -add=clip"
1701 output
="rockbox.sansa"
1702 bootoutput
="bootloader-clip.sansa"
1703 appextra
="recorder:gui"
1706 toolset
=$scramblebitmaptools
1708 t_manufacturer
="as3525"
1709 t_model
="sansa-clip"
1716 target
="-DSANSA_E200V2"
1719 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1720 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1721 tool
="$rootdir/tools/scramble -add=e2v2"
1722 output
="rockbox.sansa"
1723 bootoutput
="bootloader-e200v2.sansa"
1724 appextra
="recorder:gui"
1727 toolset
=$scramblebitmaptools
1729 t_manufacturer
="as3525"
1730 t_model
="sansa-e200v2"
1737 target
="-DSANSA_M200V4"
1740 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1741 bmp2rb_native
="$bmp2rb_mono"
1742 tool
="$rootdir/tools/scramble -add=m2v4"
1743 output
="rockbox.sansa"
1744 bootoutput
="bootloader-m200v4.sansa"
1745 appextra
="recorder:gui"
1748 toolset
=$scramblebitmaptools
1750 t_manufacturer
="as3525"
1751 t_model
="sansa-m200v4"
1758 target
="-DSANSA_FUZE"
1761 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1762 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1763 tool
="$rootdir/tools/scramble -add=fuze"
1764 output
="rockbox.sansa"
1765 bootoutput
="bootloader-fuze.sansa"
1766 appextra
="recorder:gui"
1769 toolset
=$scramblebitmaptools
1771 t_manufacturer
="as3525"
1772 t_model
="sansa-fuze"
1779 target
="-DSANSA_C200V2"
1780 memory
=2 # as per OF diagnosis mode
1782 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1783 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1784 tool
="$rootdir/tools/scramble -add=c2v2"
1785 output
="rockbox.sansa"
1786 bootoutput
="bootloader-c200v2.sansa"
1787 appextra
="recorder:gui"
1790 # toolset is the tools within the tools directory that we build for
1791 # this particular target.
1792 toolset
=$scramblebitmaptools
1793 # architecture, manufacturer and model for the target-tree build
1795 t_manufacturer
="as3525"
1796 t_model
="sansa-c200v2"
1802 target
="-DELIO_TPJ1022"
1805 tool
="$rootdir/tools/scramble -add tpj2"
1806 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1807 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1808 output
="rockbox.elio"
1809 appextra
="recorder:gui"
1812 boottool
="$rootdir/tools/scramble -mi4v2"
1813 bootoutput
="pp5020.mi4"
1814 # toolset is the tools within the tools directory that we build for
1815 # this particular target.
1816 toolset
=$scramblebitmaptools
1817 # architecture, manufacturer and model for the target-tree build
1819 t_manufacturer
="tatung"
1826 target
="-DPHILIPS_SA9200"
1827 memory
=32 # supposedly
1829 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1830 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1831 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1832 output
="rockbox.mi4"
1833 appextra
="recorder:gui"
1836 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1837 bootoutput
="FWImage.ebn"
1838 # toolset is the tools within the tools directory that we build for
1839 # this particular target.
1840 toolset
=$scramblebitmaptools
1841 # architecture, manufacturer and model for the target-tree build
1843 t_manufacturer
="philips"
1850 target
="-DPHILIPS_HDD1630"
1851 memory
=32 # supposedly
1853 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1854 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1855 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1856 output
="rockbox.mi4"
1857 appextra
="recorder:gui"
1860 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1861 bootoutput
="FWImage.ebn"
1862 # toolset is the tools within the tools directory that we build for
1863 # this particular target.
1864 toolset
=$scramblebitmaptools
1865 # architecture, manufacturer and model for the target-tree build
1867 t_manufacturer
="philips"
1873 modelname
="meizum6sl"
1874 target
="-DMEIZU_M6SL"
1878 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1879 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1880 output
="rockbox.meizu"
1881 appextra
="recorder:gui"
1884 toolset
=$genericbitmaptools
1886 bootoutput
="rockboot.ebn"
1887 # architecture, manufacturer and model for the target-tree build
1889 t_manufacturer
="s5l8700"
1890 t_model
="meizu-m6sl"
1895 modelname
="meizum6sp"
1896 target
="-DMEIZU_M6SP"
1900 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1901 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1902 output
="rockbox.meizu"
1903 appextra
="recorder:gui"
1906 toolset
=$genericbitmaptools
1908 bootoutput
="rockboot.ebn"
1909 # architecture, manufacturer and model for the target-tree build
1911 t_manufacturer
="s5l8700"
1912 t_model
="meizu-m6sp"
1922 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1923 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1924 output
="rockbox.meizu"
1925 appextra
="recorder:gui"
1928 toolset
=$genericbitmaptools
1930 bootoutput
="rockboot.ebn"
1931 # architecture, manufacturer and model for the target-tree build
1933 t_manufacturer
="s5l8700"
1939 modelname
="ondavx747"
1940 target
="-DONDA_VX747"
1943 tool
="$rootdir/tools/scramble -add=x747"
1944 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1945 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1946 output
="rockbox.vx747"
1947 appextra
="recorder:gui"
1950 toolset
=$genericbitmaptools
1952 bootoutput
="rockboot.vx747"
1953 # architecture, manufacturer and model for the target-tree build
1955 t_manufacturer
="ingenic_jz47xx"
1956 t_model
="onda_vx747"
1961 modelname
="ondavx767"
1962 target
="-DONDA_VX767"
1966 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1967 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1968 output
="rockbox.vx767"
1969 appextra
="recorder:gui"
1972 toolset
=$genericbitmaptools
1974 bootoutput
="rockboot.vx767"
1975 # architecture, manufacturer and model for the target-tree build
1977 t_manufacturer
="ingenic_jz47xx"
1978 t_model
="onda_vx767"
1983 modelname
="ondavx747p"
1984 target
="-DONDA_VX747P"
1988 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1989 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1990 output
="rockbox.vx747p"
1991 appextra
="recorder:gui"
1994 toolset
=$genericbitmaptools
1996 bootoutput
="rockboot.vx747p"
1997 # architecture, manufacturer and model for the target-tree build
1999 t_manufacturer
="ingenic_jz47xx"
2000 t_model
="onda_vx747"
2004 echo "Please select a supported target platform!"
2010 echo "Platform set to $modelname"
2014 ############################################################################
2015 # Amount of memory, for those that can differ. They have $memory unset at
2019 if [ -z "$memory" ]; then
2022 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2023 if [ "1" != `parse_args --ram` ]; then
2024 size
=`parse_args --ram`;
2038 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2039 if [ "1" != `parse_args --ram` ]; then
2040 size
=`parse_args --ram`;
2054 echo "Memory size selected: $memory MB"
2059 ##################################################################
2060 # Figure out build "type"
2063 # the ifp7x0 is the only platform that supports building a gdb stub like
2067 gdbstub
="(G)DB stub, "
2070 gdbstub
="(I)installer, "
2073 gdbstub
="(E)raser, "
2078 if [ "1" != `parse_args --type` ]; then
2079 btype
=`parse_args --type`;
2081 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2087 appsdir
='\$(ROOTDIR)/bootloader'
2089 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2091 echo "e200R-installer build selected"
2094 appsdir
='\$(ROOTDIR)/bootloader'
2096 echo "C2(4)0 or C2(5)0"
2100 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2101 echo "c240 eraser build selected"
2104 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2105 echo "c240 eraser build selected"
2109 echo "c200 eraser build selected"
2112 if test $t_manufacturer = "archos"; then
2113 # Archos SH-based players do this somewhat differently for
2115 appsdir
='\$(ROOTDIR)/flash/bootbox'
2118 appsdir
='\$(ROOTDIR)/bootloader'
2121 if test -n "$boottool"; then
2124 if test -n "$bootoutput"; then
2128 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2130 echo "Bootloader build selected"
2135 extradefines
="-DSIMULATOR"
2138 echo "Simulator build selected"
2141 echo "Advanced build selected"
2145 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2146 appsdir
='\$(ROOTDIR)/gdb'
2155 echo "GDB stub build selected"
2160 echo "Manual build selected"
2163 if [ "$modelname" = "e200r" ]; then
2164 echo "Do not use the e200R target for regular builds. Use e200 instead."
2168 btype
="N" # set it explicitly since RET only gets here as well
2169 echo "Normal build selected"
2173 # to be able running "make manual" from non-manual configuration
2176 manualdev
="recorderv2fm"
2179 manualdev
="recorderv2fm"
2185 manualdev
="ipodmini"
2188 manualdev
=$modelname
2192 if [ -z "$debug" ]; then
2193 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2196 echo "Using source code root directory: $rootdir"
2198 # this was once possible to change at build-time, but no more:
2203 if [ "yes" = "$simulator" ]; then
2204 # setup compiler and things for simulator
2207 if [ -d "simdisk" ]; then
2208 echo "Subdirectory 'simdisk' already present"
2211 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2215 # Now, figure out version number of the (gcc) compiler we are about to use
2216 gccver
=`$CC -dumpversion`;
2218 # figure out the binutil version too and display it, mostly for the build
2219 # system etc to be able to see it easier
2220 if [ $uname = "Darwin" ]; then
2221 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2223 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2226 if [ -z "$gccver" ]; then
2227 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2228 echo "WARNING: this may cause your build to fail since we cannot do the"
2229 echo "WARNING: checks we want now."
2232 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2235 num1
=`echo $gccver | cut -d . -f1`
2236 num2
=`echo $gccver | cut -d . -f2`
2237 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2244 echo "Using $CC $gccver ($gccnum)"
2246 if test "$gccnum" -ge "400"; then
2247 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2248 # so we ignore that warnings for now
2250 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2253 if test "$gccnum" -ge "401"; then
2254 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2255 # will break strict-aliasing rules"
2257 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2260 if test "$gccnum" -ge "402"; then
2261 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2262 # and later would throw it for several valid cases
2263 GCCOPTS
="$GCCOPTS -Wno-override-init"
2271 # cross-compile for win32
2274 # Verify that the cross-compiler is of a recommended version!
2275 if test "$gccver" != "$gccchoice"; then
2276 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2277 echo "WARNING: version $gccchoice!"
2278 echo "WARNING: This may cause your build to fail since it may be a version"
2279 echo "WARNING: that isn't functional or known to not be the best choice."
2280 echo "WARNING: If you suffer from build problems, you know that this is"
2281 echo "WARNING: a likely source for them..."
2289 echo "Using $LD $ldver"
2291 # check the compiler for SH platforms
2292 if test "$CC" = "sh-elf-gcc"; then
2293 if test "$gccnum" -lt "400"; then
2294 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2295 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2297 # figure out patch status
2298 gccpatch
=`$CC --version`;
2300 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2301 echo "gcc $gccver is rockbox patched"
2302 # then convert -O to -Os to get smaller binaries!
2303 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2305 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2306 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2311 if test "$CC" = "m68k-elf-gcc"; then
2312 # convert -O to -Os to get smaller binaries!
2313 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2316 if [ "1" != `parse_args --ccache` ]; then
2317 echo "Enable ccache for building"
2320 if [ "1" = `parse_args --no-ccache` ]; then
2321 ccache
=`findtool ccache`
2322 if test -n "$ccache"; then
2323 echo "Found and uses ccache ($ccache)"
2328 # figure out the full path to the various commands if possible
2329 HOSTCC
=`findtool gcc --lit`
2330 HOSTAR
=`findtool ar --lit`
2331 CC
=`findtool ${CC} --lit`
2332 LD
=`findtool ${AR} --lit`
2333 AR
=`findtool ${AR} --lit`
2334 AS
=`findtool ${AS} --lit`
2335 OC
=`findtool ${OC} --lit`
2336 WINDRES
=`findtool ${WINDRES} --lit`
2337 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2338 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2339 RANLIB
=`findtool ${RANLIB} --lit`
2341 if test -n "$ccache"; then
2345 if test "X$endian" = "Xbig"; then
2346 defendian
="ROCKBOX_BIG_ENDIAN"
2348 defendian
="ROCKBOX_LITTLE_ENDIAN"
2351 if [ "1" != `parse_args --rbdir` ]; then
2352 rbdir
=`parse_args --rbdir`;
2353 echo "Using alternate rockbox dir: ${rbdir}"
2357 -e "s,@ENDIAN@,${defendian},g" \
2358 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2359 -e "s,@config_rtc@,$config_rtc,g" \
2360 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2361 -e "s,@RBDIR@,${rbdir},g" \
2363 /* This header was made by configure */
2364 #ifndef __BUILD_AUTOCONF_H
2365 #define __BUILD_AUTOCONF_H
2367 /* Define endianess for the target or simulator platform */
2370 /* Define this if you build rockbox to support the logf logging and display */
2371 #undef ROCKBOX_HAS_LOGF
2373 /* optional defines for RTC mod for h1x0 */
2377 /* root of Rockbox */
2378 #define ROCKBOX_DIR "/@RBDIR@"
2380 #endif /* __BUILD_AUTOCONF_H */
2383 if test -n "$t_cpu"; then
2384 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2385 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2386 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2390 if test "$simulator" = "yes"; then
2391 # add simul make stuff on the #SIMUL# line
2392 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2393 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2395 # delete the lines that match
2396 simmagic1
='/@SIMUL1@/D'
2397 simmagic2
='/@SIMUL2@/D'
2400 if test "$swcodec" = "yes"; then
2401 voicetoolset
="rbspeexenc voicefont wavtrim"
2403 voicetoolset
="voicefont wavtrim"
2406 if test "$apps" = "apps"; then
2407 # only when we build "real" apps we build the .lng files
2411 #### Fix the cmdline ###
2412 if test -n "$ccache"; then
2416 cmdline
="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2422 -e "s,@ROOTDIR@,${rootdir},g" \
2423 -e "s,@DEBUG@,${debug},g" \
2424 -e "s,@MEMORY@,${memory},g" \
2425 -e "s,@TARGET_ID@,${target_id},g" \
2426 -e "s,@TARGET@,${target},g" \
2427 -e "s,@CPU@,${t_cpu},g" \
2428 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2429 -e "s,@MODELNAME@,${modelname},g" \
2430 -e "s,@LANGUAGE@,${language},g" \
2431 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2432 -e "s,@PWD@,${pwd},g" \
2433 -e "s,@HOSTCC@,${HOSTCC},g" \
2434 -e "s,@HOSTAR@,${HOSTAR},g" \
2435 -e "s,@CC@,${CC},g" \
2436 -e "s,@LD@,${LD},g" \
2437 -e "s,@AR@,${AR},g" \
2438 -e "s,@AS@,${AS},g" \
2439 -e "s,@OC@,${OC},g" \
2440 -e "s,@WINDRES@,${WINDRES},g" \
2441 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2442 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2443 -e "s,@RANLIB@,${RANLIB},g" \
2444 -e "s,@TOOL@,${tool},g" \
2445 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2446 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2447 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2448 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2449 -e "s,@OUTPUT@,${output},g" \
2450 -e "s,@APPEXTRA@,${appextra},g" \
2451 -e "s,@ARCHOSROM@,${archosrom},g" \
2452 -e "s,@FLASHFILE@,${flash},g" \
2453 -e "s,@PLUGINS@,${plugins},g" \
2454 -e "s,@CODECS@,${swcodec},g" \
2455 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2456 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2457 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2458 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2459 -e "s!@LDOPTS@!${LDOPTS}!g" \
2460 -e "s,@LOADADDRESS@,${loadaddress},g" \
2461 -e "s,@EXTRADEF@,${extradefines},g" \
2462 -e "s,@APPSDIR@,${appsdir},g" \
2463 -e "s,@FIRMDIR@,${firmdir},g" \
2464 -e "s,@TOOLSDIR@,${toolsdir},g" \
2465 -e "s,@APPS@,${apps},g" \
2466 -e "s,@SIMVER@,${simver},g" \
2467 -e "s,@GCCVER@,${gccver},g" \
2468 -e "s,@GCCNUM@,${gccnum},g" \
2469 -e "s,@UNAME@,${uname},g" \
2470 -e "s,@ENDIAN@,${defendian},g" \
2471 -e "s,@TOOLSET@,${toolset},g" \
2474 -e "s,@MANUALDEV@,${manualdev},g" \
2475 -e "s,@ENCODER@,${ENC_CMD},g" \
2476 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2477 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2478 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2479 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2480 -e "s,@LANGS@,${buildlangs},g" \
2481 -e "s,@USE_ELF@,${USE_ELF},g" \
2482 -e "s,@RBDIR@,${rbdir},g" \
2483 -e "s,@CMDLINE@,$cmdline,g" \
2485 ## Automatically generated. http://www.rockbox.org/
2487 export ROOTDIR=@ROOTDIR@
2488 export FIRMDIR=@FIRMDIR@
2489 export APPSDIR=@APPSDIR@
2490 export TOOLSDIR=@TOOLSDIR@
2491 export DOCSDIR=\$(ROOTDIR)/docs
2492 export MANUALDIR=\${ROOTDIR}/manual
2493 export DEBUG=@DEBUG@
2494 export MODELNAME=@MODELNAME@
2495 export ARCHOSROM=@ARCHOSROM@
2496 export FLASHFILE=@FLASHFILE@
2497 export TARGET_ID=@TARGET_ID@
2498 export TARGET=@TARGET@
2500 export MANUFACTURER=@MANUFACTURER@
2502 export BUILDDIR=@PWD@
2503 export LANGUAGE=@LANGUAGE@
2504 export VOICELANGUAGE=@VOICELANGUAGE@
2505 export MEMORYSIZE=@MEMORY@
2506 export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
2507 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2508 export MKFIRMWARE=@TOOL@
2509 export BMP2RB_MONO=@BMP2RB_MONO@
2510 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2511 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2512 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2513 export BINARY=@OUTPUT@
2514 export APPEXTRA=@APPEXTRA@
2515 export ENABLEDPLUGINS=@PLUGINS@
2516 export SOFTWARECODECS=@CODECS@
2517 export EXTRA_DEFINES=@EXTRADEF@
2518 export HOSTCC=@HOSTCC@
2519 export HOSTAR=@HOSTAR@
2525 export WINDRES=@WINDRES@
2526 export DLLTOOL=@DLLTOOL@
2527 export DLLWRAP=@DLLWRAP@
2528 export RANLIB=@RANLIB@
2529 export PROFILE_OPTS=@PROFILE_OPTS@
2530 export SIMVER=@SIMVER@
2531 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2532 export GCCOPTS=@GCCOPTS@
2533 export TARGET_INC=@TARGET_INC@
2534 export LOADADDRESS=@LOADADDRESS@
2535 export SHARED_FLAG=@SHARED_FLAG@
2536 export LDOPTS=@LDOPTS@
2537 export GCCVER=@GCCVER@
2538 export GCCNUM=@GCCNUM@
2539 export UNAME=@UNAME@
2540 export MANUALDEV=@MANUALDEV@
2541 export TTS_OPTS=@TTS_OPTS@
2542 export TTS_ENGINE=@TTS_ENGINE@
2543 export ENC_OPTS=@ENC_OPTS@
2544 export ENCODER=@ENCODER@
2545 export USE_ELF=@USE_ELF@
2546 export RBDIR=@RBDIR@
2548 CONFIGURE_OPTIONS=@CMDLINE@
2550 include \$(TOOLSDIR)/root.make
2554 echo "Created Makefile"