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 # Select which voice to use for Festival
530 if [ "$TTS_ENGINE" = "festival" ]; then
532 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
533 if [ "$i" = "1" ]; then
534 TTS_FESTIVAL_VOICE
="$voice" # Default choice
536 printf "%3d. %s\n" "$i" "$voice"
539 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
542 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
543 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
544 TTS_FESTIVAL_VOICE
="$voice"
548 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
549 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
552 # Allow the user to input manual commandline options
553 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
554 USER_TTS_OPTS
=`input`
555 if [ -n "$USER_TTS_OPTS" ]; then
556 TTS_OPTS
="$USER_TTS_OPTS"
561 if [ "$swcodec" = "yes" ]; then
564 ENC_OPTS
="-q 4 -c 10"
566 if [ -n "`findtool lame`" ]; then
569 ENC_OPTS
="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
571 echo "You need LAME in the system path to build voice files for"
572 echo "HWCODEC targets."
577 echo "Using $ENCODER for encoding voice clips"
579 # Allow the user to input manual commandline options
580 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
581 USER_ENC_OPTS
=`input`
582 if [ -n "$USER_ENC_OPTS" ]; then
583 ENC_OPTS
=$USER_ENC_OPTS
587 if [ -n "`findtool cygpath`" ]; then
588 TEMPDIR
=`cygpath . -a -w`
593 # figure out which languages that are around
594 for file in $rootdir/apps
/lang
/*.lang
; do
595 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
596 langs
="$langs $clean"
600 for one
in $langs; do
610 # Allow the user to pass a comma-separated list of langauges
611 for thispick
in `echo $pick | sed 's/,/ /g'`; do
613 for one
in $langs; do
614 # Accept both the language number and name
615 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
616 if [ "$output" = "" ]; then
630 if test "$opt" = "--help"; then
631 echo "Rockbox configure script."
632 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
633 echo "Do *NOT* run this within the tools directory!"
636 Usage: configure [OPTION]...
638 --target=TARGET Sets the target, TARGET can be either the target ID or
639 corresponding string. Run without this option to see all
642 --ram=RAM Sets the RAM for certain targets. Even though any number
643 is accepted, not every number is correct. The default
644 value will be applied, if you entered a wrong number
645 (which depends on the target). Watch the output. Run
646 without this option if you are not sure which the right
649 --type=TYPE Sets the build type. The shortcut is also valid.
650 Run without this option to see available types.
652 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
653 This is useful for having multiple alternate builds on
654 your device that you can load with ROLO. However as the
655 bootloader looks for .rockbox you won't be able to boot
658 --ccache Enable ccache use (done by default these days)
659 --no-ccache Disable ccache use
660 --help Shows this message (must not be used with other options)
667 if test -r "configure"; then
668 # this is a check for a configure script in the current directory, it there
669 # is one, try to figure out if it is this one!
671 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
672 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
673 echo "It will only cause you pain and grief. Instead do this:"
676 echo " mkdir build-dir"
678 echo " ../tools/configure"
680 echo "Much happiness will arise from this. Enjoy"
685 # get our current directory
688 if { echo $pwd |
grep " "; } then
689 echo "You're running this script in a path that contains space. The build"
690 echo "system is unfortunately not clever enough to deal with this. Please"
691 echo "run the script from a different path, rename the path or fix the build"
696 if [ -z "$rootdir" ]; then
697 ##################################################################
698 # Figure out where the source code root is!
700 rootdir
=`dirname $0`/..
/
702 #####################################################################
703 # Convert the possibly relative directory name to an absolute version
709 # cd back to the build dir
714 appsdir
='\$(ROOTDIR)/apps'
715 firmdir
='\$(ROOTDIR)/firmware'
716 toolsdir
='\$(ROOTDIR)/tools'
719 ##################################################################
720 # Figure out target platform
723 if [ "1" != `parse_args --target` ]; then
724 buildfor
=`parse_args --target`;
726 echo "Enter target platform:"
728 ==Archos== ==iriver== ==Apple iPod==
729 0) Player/Studio 10) H120/H140 20) Color/Photo
730 1) Recorder 11) H320/H340 21) Nano
731 2) FM Recorder 12) iHP-100/110/115 22) Video
732 3) Recorder v2 13) iFP-790 23) 3G
733 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
734 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
736 ==Toshiba== 27) 1G, 2G
738 ==Cowon/iAudio== 41) Gigabeat S ==SanDisk==
739 30) X5/X5V/X5L 50) Sansa e200
740 31) M5/M5L ==Tatung== 51) Sansa e200R
741 32) 7 60) Elio TPJ-1022 52) Sansa c200
742 33) D2 53) Sansa m200
743 34) M3/M3L ==Olympus== 54) Sansa c100
744 70) M:Robe 500 55) Sansa Clip
745 ==Creative== 71) M:Robe 100 56) Sansa e200v2
746 90) Zen Vision:M 30GB 57) Sansa m200v4
747 91) Zen Vision:M 60GB ==Philips== 58) Sansa Fuze
748 92) Zen Vision 100) GoGear SA9200 59) Sansa c200v2
751 ==Onda== 80) DAX 1GB MP3/DAB
754 122) VX747+ 111) M6SP
762 # Set of tools built for all target platforms:
763 toolset
="rdf2binary convbdf codepages"
765 # Toolsets for some target families:
766 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
767 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
768 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
769 ipodbitmaptools
="$toolset scramble bmp2rb"
770 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
771 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
772 # generic is used by IFP, Meizu and Onda
773 genericbitmaptools
="$toolset bmp2rb"
774 # scramble is used by all other targets
775 scramblebitmaptools
="$genericbitmaptools scramble"
778 # ---- For each target ----
781 # target_id: a unique number identifying this target, IS NOT the menu number.
782 # Just use the currently highest number+1 when you add a new
784 # modelname: short model name used all over to identify this target
785 # memory: number of megabytes of RAM this target has. If the amount can
786 # be selected by the size prompt, let memory be unset here
787 # target: -Ddefine passed to the build commands to make the correct
788 # config-*.h file get included etc
789 # tool: the tool that takes a plain binary and converts that into a
790 # working "firmware" file for your target
791 # output: the final output file name
792 # boottool: the tool that takes a plain binary and generates a bootloader
793 # file for your target (or blank to use $tool)
794 # bootoutput:the final output file name for the bootloader (or blank to use
796 # appextra: passed to the APPEXTRA variable in the Makefiles.
797 # TODO: add proper explanation
798 # archosrom: used only for Archos targets that build a special flashable .ucl
800 # flash: name of output for flashing, for targets where there's a special
801 # file output for this.
802 # plugins: set to 'yes' to build the plugins. Early development builds can
803 # set this to no in the early stages to have an easier life for a
805 # swcodec: set 'yes' on swcodec targets
806 # toolset: lists what particular tools in the tools/ directory that this
807 # target needs to have built prior to building Rockbox
810 # *cc: sets up gcc and compiler options for your target builds. Note
811 # that if you select a simulator build, the compiler selection is
812 # overridden later in the script.
819 target
="-DARCHOS_PLAYER"
821 tool
="$rootdir/tools/scramble"
823 appextra
="player:gui"
824 archosrom
="$pwd/rombox.ucl"
825 flash
="$pwd/rockbox.ucl"
829 # toolset is the tools within the tools directory that we build for
830 # this particular target.
831 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
833 # Note: the convbdf is present in the toolset just because: 1) the
834 # firmware/Makefile assumes it is present always, and 2) we will need it when we
835 # build the player simulator
838 t_manufacturer
="archos"
845 target
="-DARCHOS_RECORDER"
847 tool
="$rootdir/tools/scramble"
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"
866 modelname
="fmrecorder"
867 target
="-DARCHOS_FMRECORDER"
869 tool
="$rootdir/tools/scramble -fm"
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"
888 modelname
="recorderv2"
889 target
="-DARCHOS_RECORDERV2"
891 tool
="$rootdir/tools/scramble -v2"
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 is the tools within the tools directory that we build for
901 # this particular target.
902 toolset
=$archosbitmaptools
904 t_manufacturer
="archos"
911 target
="-DARCHOS_ONDIOSP"
913 tool
="$rootdir/tools/scramble -osp"
914 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
915 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
917 appextra
="recorder:gui"
918 archosrom
="$pwd/rombox.ucl"
919 flash
="$pwd/rockbox.ucl"
922 # toolset is the tools within the tools directory that we build for
923 # this particular target.
924 toolset
=$archosbitmaptools
926 t_manufacturer
="archos"
933 target
="-DARCHOS_ONDIOFM"
935 tool
="$rootdir/tools/scramble -ofm"
936 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
937 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
939 appextra
="recorder:gui"
940 #archosrom="$pwd/rombox.ucl"
941 flash
="$pwd/rockbox.ucl"
944 toolset
=$archosbitmaptools
946 t_manufacturer
="archos"
953 target
="-DARCHOS_AV300"
956 tool
="$rootdir/tools/scramble -mm=C"
957 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
958 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
960 appextra
="recorder:gui"
963 # toolset is the tools within the tools directory that we build for
964 # this particular target.
965 toolset
="$toolset scramble descramble bmp2rb"
966 # architecture, manufacturer and model for the target-tree build
968 t_manufacturer
="archos"
975 target
="-DIRIVER_H120"
978 tool
="$rootdir/tools/scramble -add=h120"
979 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
980 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
981 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
982 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
983 output
="rockbox.iriver"
984 appextra
="recorder:gui"
985 flash
="$pwd/rombox.iriver"
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_H300"
1002 tool
="$rootdir/tools/scramble -add=h300"
1003 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1004 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1005 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1006 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1007 output
="rockbox.iriver"
1008 appextra
="recorder:gui"
1011 # toolset is the tools within the tools directory that we build for
1012 # this particular target.
1013 toolset
=$iriverbitmaptools
1015 t_manufacturer
="iriver"
1022 target
="-DIRIVER_H100"
1025 tool
="$rootdir/tools/scramble -add=h100"
1026 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1027 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1028 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1029 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1030 output
="rockbox.iriver"
1031 appextra
="recorder:gui"
1032 flash
="$pwd/rombox.iriver"
1035 # toolset is the tools within the tools directory that we build for
1036 # this particular target.
1037 toolset
=$iriverbitmaptools
1039 t_manufacturer
="iriver"
1046 target
="-DIRIVER_IFP7XX"
1050 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1051 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1052 output
="rockbox.wma"
1053 appextra
="recorder:gui"
1056 # toolset is the tools within the tools directory that we build for
1057 # this particular target.
1058 toolset
=$genericbitmaptools
1060 t_manufacturer
="pnx0101"
1061 t_model
="iriver-ifp7xx"
1067 target
="-DIRIVER_H10"
1070 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1071 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1072 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1073 output
="rockbox.mi4"
1074 appextra
="recorder:gui"
1077 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1078 bootoutput
="H10_20GC.mi4"
1079 # toolset is the tools within the tools directory that we build for
1080 # this particular target.
1081 toolset
=$scramblebitmaptools
1082 # architecture, manufacturer and model for the target-tree build
1084 t_manufacturer
="iriver"
1091 target
="-DIRIVER_H10_5GB"
1094 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1095 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1096 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1097 output
="rockbox.mi4"
1098 appextra
="recorder:gui"
1101 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1102 bootoutput
="H10.mi4"
1103 # toolset is the tools within the tools directory that we build for
1104 # this particular target.
1105 toolset
=$scramblebitmaptools
1106 # architecture, manufacturer and model for the target-tree build
1108 t_manufacturer
="iriver"
1114 modelname
="ipodcolor"
1115 target
="-DIPOD_COLOR"
1118 tool
="$rootdir/tools/scramble -add=ipco"
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
="ipodnano"
1138 target
="-DIPOD_NANO"
1141 tool
="$rootdir/tools/scramble -add=nano"
1142 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1143 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1144 output
="rockbox.ipod"
1145 appextra
="recorder:gui"
1148 bootoutput
="bootloader-$modelname.ipod"
1149 # toolset is the tools within the tools directory that we build for
1150 # this particular target.
1151 toolset
=$ipodbitmaptools
1152 # architecture, manufacturer and model for the target-tree build
1154 t_manufacturer
="ipod"
1160 modelname
="ipodvideo"
1161 target
="-DIPOD_VIDEO"
1163 tool
="$rootdir/tools/scramble -add=ipvd"
1164 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1165 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
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=ip3g"
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"
1209 tool
="$rootdir/tools/scramble -add=ip4g"
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
="ipodmini"
1229 target
="-DIPOD_MINI"
1232 tool
="$rootdir/tools/scramble -add=mini"
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
="ipodmini2g"
1252 target
="-DIPOD_MINI2G"
1255 tool
="$rootdir/tools/scramble -add=mn2g"
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"
1274 modelname
="ipod1g2g"
1275 target
="-DIPOD_1G2G"
1278 tool
="$rootdir/tools/scramble -add=1g2g"
1279 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1280 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1281 output
="rockbox.ipod"
1282 appextra
="recorder:gui"
1285 bootoutput
="bootloader-$modelname.ipod"
1286 # toolset is the tools within the tools directory that we build for
1287 # this particular target.
1288 toolset
=$ipodbitmaptools
1289 # architecture, manufacturer and model for the target-tree build
1291 t_manufacturer
="ipod"
1298 target
="-DIAUDIO_X5"
1301 tool
="$rootdir/tools/scramble -add=iax5"
1302 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1303 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1304 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1305 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1306 output
="rockbox.iaudio"
1307 appextra
="recorder:gui"
1310 # toolset is the tools within the tools directory that we build for
1311 # this particular target.
1312 toolset
="$iaudiobitmaptools"
1313 # architecture, manufacturer and model for the target-tree build
1315 t_manufacturer
="iaudio"
1322 target
="-DIAUDIO_M5"
1325 tool
="$rootdir/tools/scramble -add=iam5"
1326 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1327 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1328 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1329 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1330 output
="rockbox.iaudio"
1331 appextra
="recorder:gui"
1334 # toolset is the tools within the tools directory that we build for
1335 # this particular target.
1336 toolset
="$iaudiobitmaptools"
1337 # architecture, manufacturer and model for the target-tree build
1339 t_manufacturer
="iaudio"
1349 tool
="$rootdir/tools/scramble -add=i7"
1350 boottool
="$rootdir/tools/scramble -tcc=crc"
1351 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1352 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1353 output
="rockbox.iaudio"
1354 appextra
="recorder:gui"
1357 bootoutput
="I7_FW.BIN"
1358 # toolset is the tools within the tools directory that we build for
1359 # this particular target.
1360 toolset
="$tccbitmaptools"
1361 # architecture, manufacturer and model for the target-tree build
1363 t_manufacturer
="tcc77x"
1373 tool
="$rootdir/tools/scramble -add=d2"
1374 boottool
="$rootdir/tools/scramble -tcc=crc"
1375 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1376 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1378 appextra
="recorder:gui"
1381 toolset
="$tccbitmaptools"
1382 # architecture, manufacturer and model for the target-tree build
1384 t_manufacturer
="tcc780x"
1391 target
="-DIAUDIO_M3"
1394 tool
="$rootdir/tools/scramble -add=iam3"
1395 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1396 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1397 output
="rockbox.iaudio"
1398 appextra
="recorder:gui"
1401 # toolset is the tools within the tools directory that we build for
1402 # this particular target.
1403 toolset
="$iaudiobitmaptools"
1404 # architecture, manufacturer and model for the target-tree build
1406 t_manufacturer
="iaudio"
1412 modelname
="gigabeatf"
1413 target
="-DGIGABEAT_F"
1416 tool
="$rootdir/tools/scramble -add=giga"
1417 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1418 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1419 output
="rockbox.gigabeat"
1420 appextra
="recorder:gui"
1423 toolset
=$gigabeatbitmaptools
1424 boottool
="$rootdir/tools/scramble -gigabeat"
1425 bootoutput
="FWIMG01.DAT"
1426 # architecture, manufacturer and model for the target-tree build
1428 t_manufacturer
="s3c2440"
1429 t_model
="gigabeat-fx"
1434 modelname
="gigabeats"
1435 target
="-DGIGABEAT_S"
1438 tool
="$rootdir/tools/scramble -add=gigs"
1439 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1440 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1441 output
="rockbox.gigabeat"
1442 appextra
="recorder:gui"
1445 toolset
="$gigabeatbitmaptools mknkboot"
1446 boottool
="$rootdir/tools/scramble -gigabeats"
1448 # architecture, manufacturer and model for the target-tree build
1450 t_manufacturer
="imx31"
1451 t_model
="gigabeat-s"
1456 modelname
="mrobe500"
1457 target
="-DMROBE_500"
1460 tool
="$rootdir/tools/scramble -add=m500"
1461 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1462 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1463 output
="rockbox.mrobe500"
1464 appextra
="recorder:gui"
1467 toolset
=$gigabeatbitmaptools
1469 bootoutput
="rockbox.mrboot"
1470 # architecture, manufacturer and model for the target-tree build
1472 t_manufacturer
="tms320dm320"
1478 modelname
="mrobe100"
1479 target
="-DMROBE_100"
1482 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1483 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1484 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1485 output
="rockbox.mi4"
1486 appextra
="recorder:gui"
1489 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1490 bootoutput
="pp5020.mi4"
1491 # toolset is the tools within the tools directory that we build for
1492 # this particular target.
1493 toolset
=$scramblebitmaptools
1494 # architecture, manufacturer and model for the target-tree build
1496 t_manufacturer
="olympus"
1502 modelname
="logikdax"
1503 target
="-DLOGIK_DAX"
1506 tool
="$rootdir/tools/scramble -add=ldax"
1507 boottool
="$rootdir/tools/scramble -tcc=crc"
1508 bootoutput
="player.rom"
1509 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1510 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1511 output
="rockbox.logik"
1512 appextra
="recorder:gui"
1515 # toolset is the tools within the tools directory that we build for
1516 # this particular target.
1517 toolset
=$tccbitmaptools
1518 # architecture, manufacturer and model for the target-tree build
1520 t_manufacturer
="tcc77x"
1526 modelname
="creativezvm30"
1527 target
="-DCREATIVE_ZVM"
1530 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1531 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1532 tool
="$rootdir/tools/scramble -creative=zvm"
1534 output
="rockbox.zvm"
1535 appextra
="recorder:gui"
1538 toolset
=$ipodbitmaptools
1539 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1540 bootoutput
="rockbox.zvmboot"
1541 # architecture, manufacturer and model for the target-tree build
1543 t_manufacturer
="tms320dm320"
1544 t_model
="creative-zvm"
1549 modelname
="creativezvm60"
1550 target
="-DCREATIVE_ZVM60GB"
1553 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1554 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1555 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1557 output
="rockbox.zvm60"
1558 appextra
="recorder:gui"
1561 toolset
=$ipodbitmaptools
1562 boottool
="$rootdir/tools/scramble -creative=zvm60"
1563 bootoutput
="rockbox.zvm60boot"
1564 # architecture, manufacturer and model for the target-tree build
1566 t_manufacturer
="tms320dm320"
1567 t_model
="creative-zvm"
1570 92|creativezenvision
)
1572 modelname
="creativezv"
1573 target
="-DCREATIVE_ZV"
1576 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1577 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1578 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1581 appextra
="recorder:gui"
1584 toolset
=$ipodbitmaptools
1585 boottool
="$rootdir/tools/scramble -creative=zenvision"
1586 bootoutput
="rockbox.zvboot"
1587 # architecture, manufacturer and model for the target-tree build
1589 t_manufacturer
="tms320dm320"
1590 t_model
="creative-zvm"
1596 target
="-DSANSA_E200"
1597 memory
=32 # supposedly
1599 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1600 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1601 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1602 output
="rockbox.mi4"
1603 appextra
="recorder:gui"
1606 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1607 bootoutput
="PP5022.mi4"
1608 # toolset is the tools within the tools directory that we build for
1609 # this particular target.
1610 toolset
=$scramblebitmaptools
1611 # architecture, manufacturer and model for the target-tree build
1613 t_manufacturer
="sandisk"
1614 t_model
="sansa-e200"
1618 # the e200R model is pretty much identical to the e200, it only has a
1619 # different option to the scramble tool when building a bootloader and
1620 # makes the bootloader output file name in all lower case.
1623 target
="-DSANSA_E200"
1624 memory
=32 # supposedly
1626 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1627 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1628 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1629 output
="rockbox.mi4"
1630 appextra
="recorder:gui"
1633 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1634 bootoutput
="pp5022.mi4"
1635 # toolset is the tools within the tools directory that we build for
1636 # this particular target.
1637 toolset
=$scramblebitmaptools
1638 # architecture, manufacturer and model for the target-tree build
1640 t_manufacturer
="sandisk"
1641 t_model
="sansa-e200"
1647 target
="-DSANSA_C200"
1648 memory
=32 # supposedly
1650 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1651 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1652 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1653 output
="rockbox.mi4"
1654 appextra
="recorder:gui"
1657 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1658 bootoutput
="firmware.mi4"
1659 # toolset is the tools within the tools directory that we build for
1660 # this particular target.
1661 toolset
=$scramblebitmaptools
1662 # architecture, manufacturer and model for the target-tree build
1664 t_manufacturer
="sandisk"
1665 t_model
="sansa-c200"
1671 target
="-DSANSA_M200"
1674 tool
="$rootdir/tools/scramble -add=m200"
1675 boottool
="$rootdir/tools/scramble -tcc=crc"
1676 bootoutput
="player.rom"
1677 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1678 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1679 output
="rockbox.m200"
1680 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_C100"
1696 memory
=32 # unsure, must check
1698 tool
="$rootdir/tools/scramble -add=c100"
1699 boottool
="$rootdir/tools/scramble -tcc=crc"
1700 bootoutput
="player.rom"
1701 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1702 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1703 output
="rockbox.c100"
1704 appextra
="recorder:gui"
1706 # toolset is the tools within the tools directory that we build for
1707 # this particular target.
1708 toolset
=$tccbitmaptools
1709 # architecture, manufacturer and model for the target-tree build
1711 t_manufacturer
="tcc77x"
1718 target
="-DSANSA_CLIP"
1721 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1722 bmp2rb_native
="$bmp2rb_mono"
1723 tool
="$rootdir/tools/scramble -add=clip"
1724 output
="rockbox.sansa"
1725 bootoutput
="bootloader-clip.sansa"
1726 appextra
="recorder:gui"
1729 toolset
=$scramblebitmaptools
1731 t_manufacturer
="as3525"
1732 t_model
="sansa-clip"
1739 target
="-DSANSA_E200V2"
1742 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1743 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1744 tool
="$rootdir/tools/scramble -add=e2v2"
1745 output
="rockbox.sansa"
1746 bootoutput
="bootloader-e200v2.sansa"
1747 appextra
="recorder:gui"
1750 toolset
=$scramblebitmaptools
1752 t_manufacturer
="as3525"
1753 t_model
="sansa-e200v2"
1760 target
="-DSANSA_M200V4"
1763 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1764 bmp2rb_native
="$bmp2rb_mono"
1765 tool
="$rootdir/tools/scramble -add=m2v4"
1766 output
="rockbox.sansa"
1767 bootoutput
="bootloader-m200v4.sansa"
1768 appextra
="recorder:gui"
1771 toolset
=$scramblebitmaptools
1773 t_manufacturer
="as3525"
1774 t_model
="sansa-m200v4"
1781 target
="-DSANSA_FUZE"
1784 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1785 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1786 tool
="$rootdir/tools/scramble -add=fuze"
1787 output
="rockbox.sansa"
1788 bootoutput
="bootloader-fuze.sansa"
1789 appextra
="recorder:gui"
1792 toolset
=$scramblebitmaptools
1794 t_manufacturer
="as3525"
1795 t_model
="sansa-fuze"
1802 target
="-DSANSA_C200V2"
1803 memory
=2 # as per OF diagnosis mode
1805 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1806 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1807 tool
="$rootdir/tools/scramble -add=c2v2"
1808 output
="rockbox.sansa"
1809 bootoutput
="bootloader-c200v2.sansa"
1810 appextra
="recorder:gui"
1813 # toolset is the tools within the tools directory that we build for
1814 # this particular target.
1815 toolset
=$scramblebitmaptools
1816 # architecture, manufacturer and model for the target-tree build
1818 t_manufacturer
="as3525"
1819 t_model
="sansa-c200v2"
1825 target
="-DELIO_TPJ1022"
1828 tool
="$rootdir/tools/scramble -add tpj2"
1829 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1830 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1831 output
="rockbox.elio"
1832 appextra
="recorder:gui"
1835 boottool
="$rootdir/tools/scramble -mi4v2"
1836 bootoutput
="pp5020.mi4"
1837 # toolset is the tools within the tools directory that we build for
1838 # this particular target.
1839 toolset
=$scramblebitmaptools
1840 # architecture, manufacturer and model for the target-tree build
1842 t_manufacturer
="tatung"
1849 target
="-DPHILIPS_SA9200"
1850 memory
=32 # supposedly
1852 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1853 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1854 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1855 output
="rockbox.mi4"
1856 appextra
="recorder:gui"
1859 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1860 bootoutput
="FWImage.ebn"
1861 # toolset is the tools within the tools directory that we build for
1862 # this particular target.
1863 toolset
=$scramblebitmaptools
1864 # architecture, manufacturer and model for the target-tree build
1866 t_manufacturer
="philips"
1873 target
="-DPHILIPS_HDD1630"
1874 memory
=32 # supposedly
1876 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1877 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1878 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1879 output
="rockbox.mi4"
1880 appextra
="recorder:gui"
1883 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1884 bootoutput
="FWImage.ebn"
1885 # toolset is the tools within the tools directory that we build for
1886 # this particular target.
1887 toolset
=$scramblebitmaptools
1888 # architecture, manufacturer and model for the target-tree build
1890 t_manufacturer
="philips"
1896 modelname
="meizum6sl"
1897 target
="-DMEIZU_M6SL"
1901 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1902 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1903 output
="rockbox.meizu"
1904 appextra
="recorder:gui"
1907 toolset
=$genericbitmaptools
1909 bootoutput
="rockboot.ebn"
1910 # architecture, manufacturer and model for the target-tree build
1912 t_manufacturer
="s5l8700"
1913 t_model
="meizu-m6sl"
1918 modelname
="meizum6sp"
1919 target
="-DMEIZU_M6SP"
1923 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1924 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1925 output
="rockbox.meizu"
1926 appextra
="recorder:gui"
1929 toolset
=$genericbitmaptools
1931 bootoutput
="rockboot.ebn"
1932 # architecture, manufacturer and model for the target-tree build
1934 t_manufacturer
="s5l8700"
1935 t_model
="meizu-m6sp"
1945 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1946 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1947 output
="rockbox.meizu"
1948 appextra
="recorder:gui"
1951 toolset
=$genericbitmaptools
1953 bootoutput
="rockboot.ebn"
1954 # architecture, manufacturer and model for the target-tree build
1956 t_manufacturer
="s5l8700"
1962 modelname
="ondavx747"
1963 target
="-DONDA_VX747"
1966 tool
="$rootdir/tools/scramble -add=x747"
1967 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1968 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1969 output
="rockbox.vx747"
1970 appextra
="recorder:gui"
1973 toolset
=$genericbitmaptools
1975 bootoutput
="rockboot.vx747"
1976 # architecture, manufacturer and model for the target-tree build
1978 t_manufacturer
="ingenic_jz47xx"
1979 t_model
="onda_vx747"
1984 modelname
="ondavx767"
1985 target
="-DONDA_VX767"
1989 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1990 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1991 output
="rockbox.vx767"
1992 appextra
="recorder:gui"
1995 toolset
=$genericbitmaptools
1997 bootoutput
="rockboot.vx767"
1998 # architecture, manufacturer and model for the target-tree build
2000 t_manufacturer
="ingenic_jz47xx"
2001 t_model
="onda_vx767"
2006 modelname
="ondavx747p"
2007 target
="-DONDA_VX747P"
2011 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2012 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2013 output
="rockbox.vx747p"
2014 appextra
="recorder:gui"
2017 toolset
=$genericbitmaptools
2019 bootoutput
="rockboot.vx747p"
2020 # architecture, manufacturer and model for the target-tree build
2022 t_manufacturer
="ingenic_jz47xx"
2023 t_model
="onda_vx747"
2027 echo "Please select a supported target platform!"
2033 echo "Platform set to $modelname"
2037 ############################################################################
2038 # Amount of memory, for those that can differ. They have $memory unset at
2042 if [ -z "$memory" ]; then
2045 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2046 if [ "1" != `parse_args --ram` ]; then
2047 size
=`parse_args --ram`;
2061 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2062 if [ "1" != `parse_args --ram` ]; then
2063 size
=`parse_args --ram`;
2077 echo "Memory size selected: $memory MB"
2082 ##################################################################
2083 # Figure out build "type"
2086 # the ifp7x0 is the only platform that supports building a gdb stub like
2090 gdbstub
="(G)DB stub, "
2093 gdbstub
="(I)installer, "
2096 gdbstub
="(E)raser, "
2101 if [ "1" != `parse_args --type` ]; then
2102 btype
=`parse_args --type`;
2104 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2110 appsdir
='\$(ROOTDIR)/bootloader'
2112 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2114 echo "e200R-installer build selected"
2117 appsdir
='\$(ROOTDIR)/bootloader'
2119 echo "C2(4)0 or C2(5)0"
2123 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2124 echo "c240 eraser build selected"
2127 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2128 echo "c240 eraser build selected"
2132 echo "c200 eraser build selected"
2135 if test $t_manufacturer = "archos"; then
2136 # Archos SH-based players do this somewhat differently for
2138 appsdir
='\$(ROOTDIR)/flash/bootbox'
2141 appsdir
='\$(ROOTDIR)/bootloader'
2144 if test -n "$boottool"; then
2147 if test -n "$bootoutput"; then
2151 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2153 echo "Bootloader build selected"
2158 extradefines
="-DSIMULATOR"
2161 echo "Simulator build selected"
2164 echo "Advanced build selected"
2168 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2169 appsdir
='\$(ROOTDIR)/gdb'
2178 echo "GDB stub build selected"
2183 echo "Manual build selected"
2186 if [ "$modelname" = "e200r" ]; then
2187 echo "Do not use the e200R target for regular builds. Use e200 instead."
2191 btype
="N" # set it explicitly since RET only gets here as well
2192 echo "Normal build selected"
2196 # to be able running "make manual" from non-manual configuration
2199 manualdev
="recorderv2fm"
2202 manualdev
="recorderv2fm"
2208 manualdev
="ipodmini"
2211 manualdev
=$modelname
2215 if [ -z "$debug" ]; then
2216 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2219 echo "Using source code root directory: $rootdir"
2221 # this was once possible to change at build-time, but no more:
2226 if [ "yes" = "$simulator" ]; then
2227 # setup compiler and things for simulator
2230 if [ -d "simdisk" ]; then
2231 echo "Subdirectory 'simdisk' already present"
2234 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2238 # Now, figure out version number of the (gcc) compiler we are about to use
2239 gccver
=`$CC -dumpversion`;
2241 # figure out the binutil version too and display it, mostly for the build
2242 # system etc to be able to see it easier
2243 if [ $uname = "Darwin" ]; then
2244 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2246 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2249 if [ -z "$gccver" ]; then
2250 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2251 echo "WARNING: this may cause your build to fail since we cannot do the"
2252 echo "WARNING: checks we want now."
2255 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2258 num1
=`echo $gccver | cut -d . -f1`
2259 num2
=`echo $gccver | cut -d . -f2`
2260 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2267 echo "Using $CC $gccver ($gccnum)"
2269 if test "$gccnum" -ge "400"; then
2270 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2271 # so we ignore that warnings for now
2273 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2276 if test "$gccnum" -ge "401"; then
2277 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2278 # will break strict-aliasing rules"
2280 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2283 if test "$gccnum" -ge "402"; then
2284 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2285 # and later would throw it for several valid cases
2286 GCCOPTS
="$GCCOPTS -Wno-override-init"
2294 # cross-compile for win32
2297 # Verify that the cross-compiler is of a recommended version!
2298 if test "$gccver" != "$gccchoice"; then
2299 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2300 echo "WARNING: version $gccchoice!"
2301 echo "WARNING: This may cause your build to fail since it may be a version"
2302 echo "WARNING: that isn't functional or known to not be the best choice."
2303 echo "WARNING: If you suffer from build problems, you know that this is"
2304 echo "WARNING: a likely source for them..."
2312 echo "Using $LD $ldver"
2314 # check the compiler for SH platforms
2315 if test "$CC" = "sh-elf-gcc"; then
2316 if test "$gccnum" -lt "400"; then
2317 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2318 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2320 # figure out patch status
2321 gccpatch
=`$CC --version`;
2323 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2324 echo "gcc $gccver is rockbox patched"
2325 # then convert -O to -Os to get smaller binaries!
2326 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2328 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2329 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2334 if test "$CC" = "m68k-elf-gcc"; then
2335 # convert -O to -Os to get smaller binaries!
2336 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2339 if [ "1" != `parse_args --ccache` ]; then
2340 echo "Enable ccache for building"
2343 if [ "1" = `parse_args --no-ccache` ]; then
2344 ccache
=`findtool ccache`
2345 if test -n "$ccache"; then
2346 echo "Found and uses ccache ($ccache)"
2351 # figure out the full path to the various commands if possible
2352 HOSTCC
=`findtool gcc --lit`
2353 HOSTAR
=`findtool ar --lit`
2354 CC
=`findtool ${CC} --lit`
2355 LD
=`findtool ${AR} --lit`
2356 AR
=`findtool ${AR} --lit`
2357 AS
=`findtool ${AS} --lit`
2358 OC
=`findtool ${OC} --lit`
2359 WINDRES
=`findtool ${WINDRES} --lit`
2360 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2361 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2362 RANLIB
=`findtool ${RANLIB} --lit`
2364 if test -n "$ccache"; then
2368 if test "X$endian" = "Xbig"; then
2369 defendian
="ROCKBOX_BIG_ENDIAN"
2371 defendian
="ROCKBOX_LITTLE_ENDIAN"
2374 if [ "1" != `parse_args --rbdir` ]; then
2375 rbdir
=`parse_args --rbdir`;
2376 echo "Using alternate rockbox dir: ${rbdir}"
2380 -e "s,@ENDIAN@,${defendian},g" \
2381 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2382 -e "s,@config_rtc@,$config_rtc,g" \
2383 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2384 -e "s,@RBDIR@,${rbdir},g" \
2386 /* This header was made by configure */
2387 #ifndef __BUILD_AUTOCONF_H
2388 #define __BUILD_AUTOCONF_H
2390 /* Define endianess for the target or simulator platform */
2393 /* Define this if you build rockbox to support the logf logging and display */
2394 #undef ROCKBOX_HAS_LOGF
2396 /* optional defines for RTC mod for h1x0 */
2400 /* root of Rockbox */
2401 #define ROCKBOX_DIR "/@RBDIR@"
2403 #endif /* __BUILD_AUTOCONF_H */
2406 if test -n "$t_cpu"; then
2407 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2408 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2409 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2413 if test "$simulator" = "yes"; then
2414 # add simul make stuff on the #SIMUL# line
2415 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2416 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2418 # delete the lines that match
2419 simmagic1
='/@SIMUL1@/D'
2420 simmagic2
='/@SIMUL2@/D'
2423 if test "$swcodec" = "yes"; then
2424 voicetoolset
="rbspeexenc voicefont wavtrim"
2426 voicetoolset
="voicefont wavtrim"
2429 if test "$apps" = "apps"; then
2430 # only when we build "real" apps we build the .lng files
2434 #### Fix the cmdline ###
2435 if test -n "$ccache"; then
2439 cmdline
="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2445 -e "s,@ROOTDIR@,${rootdir},g" \
2446 -e "s,@DEBUG@,${debug},g" \
2447 -e "s,@MEMORY@,${memory},g" \
2448 -e "s,@TARGET_ID@,${target_id},g" \
2449 -e "s,@TARGET@,${target},g" \
2450 -e "s,@CPU@,${t_cpu},g" \
2451 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2452 -e "s,@MODELNAME@,${modelname},g" \
2453 -e "s,@LANGUAGE@,${language},g" \
2454 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2455 -e "s,@PWD@,${pwd},g" \
2456 -e "s,@HOSTCC@,${HOSTCC},g" \
2457 -e "s,@HOSTAR@,${HOSTAR},g" \
2458 -e "s,@CC@,${CC},g" \
2459 -e "s,@LD@,${LD},g" \
2460 -e "s,@AR@,${AR},g" \
2461 -e "s,@AS@,${AS},g" \
2462 -e "s,@OC@,${OC},g" \
2463 -e "s,@WINDRES@,${WINDRES},g" \
2464 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2465 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2466 -e "s,@RANLIB@,${RANLIB},g" \
2467 -e "s,@TOOL@,${tool},g" \
2468 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2469 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2470 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2471 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2472 -e "s,@OUTPUT@,${output},g" \
2473 -e "s,@APPEXTRA@,${appextra},g" \
2474 -e "s,@ARCHOSROM@,${archosrom},g" \
2475 -e "s,@FLASHFILE@,${flash},g" \
2476 -e "s,@PLUGINS@,${plugins},g" \
2477 -e "s,@CODECS@,${swcodec},g" \
2478 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2479 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2480 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2481 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2482 -e "s!@LDOPTS@!${LDOPTS}!g" \
2483 -e "s,@LOADADDRESS@,${loadaddress},g" \
2484 -e "s,@EXTRADEF@,${extradefines},g" \
2485 -e "s,@APPSDIR@,${appsdir},g" \
2486 -e "s,@FIRMDIR@,${firmdir},g" \
2487 -e "s,@TOOLSDIR@,${toolsdir},g" \
2488 -e "s,@APPS@,${apps},g" \
2489 -e "s,@SIMVER@,${simver},g" \
2490 -e "s,@GCCVER@,${gccver},g" \
2491 -e "s,@GCCNUM@,${gccnum},g" \
2492 -e "s,@UNAME@,${uname},g" \
2493 -e "s,@ENDIAN@,${defendian},g" \
2494 -e "s,@TOOLSET@,${toolset},g" \
2497 -e "s,@MANUALDEV@,${manualdev},g" \
2498 -e "s,@ENCODER@,${ENC_CMD},g" \
2499 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2500 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2501 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2502 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2503 -e "s,@LANGS@,${buildlangs},g" \
2504 -e "s,@USE_ELF@,${USE_ELF},g" \
2505 -e "s,@RBDIR@,${rbdir},g" \
2506 -e "s,@CMDLINE@,$cmdline,g" \
2508 ## Automatically generated. http://www.rockbox.org/
2510 export ROOTDIR=@ROOTDIR@
2511 export FIRMDIR=@FIRMDIR@
2512 export APPSDIR=@APPSDIR@
2513 export TOOLSDIR=@TOOLSDIR@
2514 export DOCSDIR=\$(ROOTDIR)/docs
2515 export MANUALDIR=\${ROOTDIR}/manual
2516 export DEBUG=@DEBUG@
2517 export MODELNAME=@MODELNAME@
2518 export ARCHOSROM=@ARCHOSROM@
2519 export FLASHFILE=@FLASHFILE@
2520 export TARGET_ID=@TARGET_ID@
2521 export TARGET=@TARGET@
2523 export MANUFACTURER=@MANUFACTURER@
2525 export BUILDDIR=@PWD@
2526 export LANGUAGE=@LANGUAGE@
2527 export VOICELANGUAGE=@VOICELANGUAGE@
2528 export MEMORYSIZE=@MEMORY@
2529 export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
2530 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2531 export MKFIRMWARE=@TOOL@
2532 export BMP2RB_MONO=@BMP2RB_MONO@
2533 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2534 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2535 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2536 export BINARY=@OUTPUT@
2537 export APPEXTRA=@APPEXTRA@
2538 export ENABLEDPLUGINS=@PLUGINS@
2539 export SOFTWARECODECS=@CODECS@
2540 export EXTRA_DEFINES=@EXTRADEF@
2541 export HOSTCC=@HOSTCC@
2542 export HOSTAR=@HOSTAR@
2548 export WINDRES=@WINDRES@
2549 export DLLTOOL=@DLLTOOL@
2550 export DLLWRAP=@DLLWRAP@
2551 export RANLIB=@RANLIB@
2552 export PROFILE_OPTS=@PROFILE_OPTS@
2553 export SIMVER=@SIMVER@
2554 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2555 export GCCOPTS=@GCCOPTS@
2556 export TARGET_INC=@TARGET_INC@
2557 export LOADADDRESS=@LOADADDRESS@
2558 export SHARED_FLAG=@SHARED_FLAG@
2559 export LDOPTS=@LDOPTS@
2560 export GCCVER=@GCCVER@
2561 export GCCNUM=@GCCNUM@
2562 export UNAME=@UNAME@
2563 export MANUALDEV=@MANUALDEV@
2564 export TTS_OPTS=@TTS_OPTS@
2565 export TTS_ENGINE=@TTS_ENGINE@
2566 export ENC_OPTS=@ENC_OPTS@
2567 export ENCODER=@ENCODER@
2568 export USE_ELF=@USE_ELF@
2569 export RBDIR=@RBDIR@
2571 CONFIGURE_OPTIONS=@CMDLINE@
2573 include \$(TOOLSDIR)/root.make
2577 echo "Created Makefile"