3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 # global CC options for all platforms
12 CCOPTS
="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes"
14 use_logf
="#undef ROCKBOX_HAS_LOGF"
16 scriptver
=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
19 # Begin Function Definitions
29 WINDRES
=${prefix}windres
30 DLLTOOL
=${prefix}dlltool
31 DLLWRAP
=${prefix}dllwrap
32 RANLIB
=${prefix}ranlib
40 # naive approach to selecting a mingw cross-compiler on linux/*nix
41 echo "Enabling win32 crosscompiling"
43 prefixtools i586-mingw32msvc-
45 # add cross-compiler option(s)
46 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
47 LDOPTS
="`sdl-config --libs` -mconsole"
49 output
="rockboxui.exe" # use this as output binary name
51 endian
="little" # windows is little endian
54 # scan the $PATH for the given command
61 # echo "checks for $file in $path" >&2
62 if test -f "$path/$file"; then
67 # check whether caller wants literal return value if not found
68 if [ "$2" = "--lit" ]; then
73 # parse the argument list, returns the value after the = in case of a
74 # option=value type option, returns 0 in case of --ccache or --no-ccache,
75 # returns 1 if the searched argument type wasn't fount in the argument list
76 # Usage [var = ]`parse_args <argumenttype>`, e.g. `parse_args --target`
78 # var definitons below are needed so that parse_args can see the arguments
79 arg1
=$1 arg2
=$2 arg3
=$3 arg4
=$4 arg5
=$5 arg6
=$6 arg7
=$7 arg8
=$8 arg9
=$9
83 for i
in $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9
85 if [ "$1" = "--ccache" ]; then
86 if [ "$i" = "--ccache" ]; then
89 elif [ "$1" = "--no-ccache" ]; then
90 if [ "$i" = "--no-ccache" ]; then
93 elif [ "$1" = `echo $i|cut -d'=' -f1` ]; then
94 ret
=`echo $i|cut -d'=' -f2`
102 # default tool setup for native building
106 GCCOPTS
='-W -Wall -g -fno-builtin'
108 output
="rockboxui" # use this as default output binary name
110 # generic sdl-config checker
111 sdl
=`findtool sdl-config`
113 if [ -z "$sdl" ]; then
114 echo "configure didn't find sdl-config, which indicates that you"
115 echo "don't have SDL (properly) installed. Please correct and"
116 echo "re-run configure!"
120 # default share option, override below if needed
121 SHARED_FLAG
="-shared"
125 echo "Cygwin host detected"
128 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
129 LDOPTS
="`sdl-config --libs` -mconsole"
131 output
="rockboxui.exe" # use this as output binary name
135 echo "Linux host detected"
136 if [ "0" != `sdl-config --libs |grep -c mwindows` ]; then
137 # Enable crosscompiling if sdl-config is from Windows SDL
140 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
141 LDOPTS
="`sdl-config --libs`"
146 echo "FreeBSD host detected"
148 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
149 LDOPTS
="`sdl-config --libs`"
153 echo "Darwin host detected"
155 GCCOPTS
="$GCCOPTS `sdl-config --cflags`"
156 LDOPTS
="`sdl-config --libs`"
157 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
161 echo "Unsupported system: $uname, fix configure and retry"
166 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
168 if test "X$crosscompile" != "Xyes"; then
169 if [ "`uname -m`" = "x86_64" ] ||
[ "`uname -m`" = "amd64" ]; then
170 # fPIC is needed to make shared objects link
171 # setting visibility to hidden is necessary to avoid strange crashes
172 # due to symbol clashing
173 GCCOPTS
="$GCCOPTS -fPIC -fvisibility=hidden"
177 cat >/tmp
/conftest-
$id.c
<<EOF
179 int main(int argc, char **argv)
182 char *varp = (char *)&var;
190 $CC -o /tmp
/conftest-
$id /tmp
/conftest-
$id.c
2>/dev
/null
192 if test `/tmp/conftest-$id 2>/dev/null` -gt "1"; then
199 echo "Simulator environment deemed $endian endian"
201 # use wildcard here to make it work even if it was named *.exe like
203 rm -f /tmp
/conftest-
$id*
208 # functions for setting up cross-compiler names and options
209 # also set endianess and what the exact recommended gcc version is
210 # the gcc version should most likely match what versions we build with
215 GCCOPTS
="$CCOPTS -m1"
216 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
222 prefixtools calmrisc16-unknown-elf-
223 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
224 GCCOPTIMIZE
="-fomit-frame-pointer"
229 prefixtools m68k-elf-
230 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
231 GCCOPTIMIZE
="-fomit-frame-pointer"
238 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
239 if test "X$1" != "Xshort"; then
240 GCCOPTS
="$GCCOPTS -mlong-calls"
242 GCCOPTIMIZE
="-fomit-frame-pointer"
249 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi -mlong-calls"
250 GCCOPTIMIZE
="-fomit-frame-pointer"
257 GCCOPTS
="$CCOPTS -mbig-endian -mcpu=arm940t -mlong-calls"
258 GCCOPTIMIZE
="-fomit-frame-pointer"
265 GCCOPTS
="$CCOPTS -mcpu=arm9e -mlong-calls"
266 GCCOPTIMIZE
="-fomit-frame-pointer"
273 GCCOPTS
="$CCOPTS -mcpu=arm926ej-s -mlong-calls"
274 GCCOPTIMIZE
="-fomit-frame-pointer"
281 GCCOPTS
="$CCOPTS -mcpu=arm1136jf-s -mlong-calls"
282 GCCOPTIMIZE
="-fomit-frame-pointer"
288 prefixtools mipsel-elf-
289 GCCOPTS
="$CCOPTS -march=mips32 -mno-mips16 -mno-abicalls -mlong-calls"
290 GCCOPTIMIZE
="-fomit-frame-pointer"
291 GCCOPTS
="$GCCOPTS -fno-pic -fno-builtin -fno-exceptions -ffunction-sections -msoft-float -G 0"
297 ##################################################################
298 # Prompt for specific developer options
301 echo "Enter your developer options (press enter when done)"
302 echo -n "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice"
303 if [ "$memory" = "2" ]; then
304 echo -n ", (8)MB MOD"
306 if [ "$modelname" = "h120" ]; then
307 echo -n ", (R)TC MOD"
313 while [ $cont = "1" ]; do
319 if [ "yes" = "$profile" ]; then
320 echo "Debug is incompatible with profiling"
327 echo "logf() support enabled"
331 echo "Simulator build enabled"
335 if [ "yes" = "$use_debug" ]; then
336 echo "Profiling is incompatible with debug"
338 echo "Profiling support is enabled"
343 echo "Voice build selected"
347 if [ "$memory" = "2" ]; then
349 echo "Memory size selected: 8MB"
355 if [ "$modelname" = "h120" ]; then
356 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
357 have_rtc_alarm
="#define HAVE_RTC_ALARM"
358 echo "RTC functions enabled (DS1339/DS3231)"
370 if [ "yes" = "$voice" ]; then
371 # Ask about languages to build
372 echo "Select a number for the language to use (default is english)"
373 # The multiple-language feature is currently broken
374 # echo "You may enter a comma-separated list of languages to build"
377 voicelanguage
=`whichlang`
379 if [ -z "$voicelanguage" ]; then
381 voicelanguage
="english"
383 echo "Voice language set to $voicelanguage"
385 # Configure encoder and TTS engine for each language
386 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
387 voiceconfig
"$thislang"
390 if [ "yes" = "$use_debug" ]; then
392 GCCOPTS
="$GCCOPTS -g -DDEBUG"
394 if [ "yes" = "$logf" ]; then
395 use_logf
="#define ROCKBOX_HAS_LOGF 1"
397 if [ "yes" = "$simulator" ]; then
399 extradefines
="$extradefines -DSIMULATOR"
401 if [ "yes" = "$profile" ]; then
402 extradefines
="$extradefines -DRB_PROFILE"
403 PROFILE_OPTS
="-finstrument-functions"
407 # Configure voice settings
410 echo "Building $thislang voice for $modelname. Select options"
413 if [ -n "`findtool flite`" ]; then
417 DEFAULT_TTS_OPTS
=$FLITE_OPTS
418 DEFAULT_NOISEFLOOR
="500"
421 if [ -n "`findtool espeak`" ]; then
425 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
426 DEFAULT_NOISEFLOOR
="500"
429 if [ -n "`findtool festival`" ]; then
430 FESTIVAL
="(F)estival "
433 FESTIVAL_OPTS
="--language italian"
436 FESTIVAL_OPTS
="--language spanish"
439 FESTIVAL_OPTS
="--language finnish"
442 FESTIVAL_OPTS
="--language czech"
448 DEFAULT_TTS
="festival"
449 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
450 DEFAULT_NOISEFLOOR
="500"
453 if [ -n "`findtool swift`" ]; then
457 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
458 DEFAULT_NOISEFLOOR
="500"
461 # Allow SAPI if Windows is in use
462 if [ -n "`findtool winver`" ]; then
466 DEFAULT_TTS_OPTS
=$SAPI_OPTS
467 DEFAULT_NOISEFLOOR
="500"
471 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
472 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
476 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
481 NOISEFLOOR
="500" # TODO: check this value
487 TTS_OPTS
=$ESPEAK_OPTS
490 TTS_ENGINE
="festival"
492 TTS_OPTS
=$FESTIVAL_OPTS
505 TTS_ENGINE
=$DEFAULT_TTS
506 TTS_OPTS
=$DEFAULT_TTS_OPTS
507 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
509 echo "Using $TTS_ENGINE for TTS"
511 # Allow the user to input manual commandline options
512 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
513 USER_TTS_OPTS
=`input`
514 if [ -n "$USER_TTS_OPTS" ]; then
515 TTS_OPTS
="$USER_TTS_OPTS"
520 if [ "$swcodec" = "yes" ]; then
523 ENC_OPTS
="-q 4 -c 10"
525 if [ -n "`findtool lame`" ]; then
528 ENC_OPTS
="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
530 echo "You need LAME in the system path to build voice files for"
531 echo "HWCODEC targets."
536 echo "Using $ENCODER for encoding voice clips"
538 # Allow the user to input manual commandline options
539 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
540 USER_ENC_OPTS
=`input`
541 if [ -n "$USER_ENC_OPTS" ]; then
542 ENC_OPTS
=$USER_ENC_OPTS
546 if [ -n "`findtool cygpath`" ]; then
547 TEMPDIR
=`cygpath . -a -w`
552 # figure out which languages that are around
553 for file in $rootdir/apps
/lang
/*.lang
; do
554 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
555 langs
="$langs $clean"
559 for one
in $langs; do
569 # Allow the user to pass a comma-separated list of langauges
570 for thispick
in `echo $pick | sed 's/,/ /g'`; do
572 for one
in $langs; do
573 # Accept both the language number and name
574 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
575 if [ "$output" = "" ]; then
589 if test "$opt" = "--help"; then
590 echo "Rockbox configure script."
591 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
592 echo "Do *NOT* run this within the tools directory!"
595 Usage: configure [OPTION]...
597 --target=TARGET Sets the target, TARGET can be either the target ID or
598 corresponding string. Run without this option to see all
601 --ram=RAM Sets the RAM for certain targets. Even though any number
602 is accepted, not every number is correct. The default
603 value will be applied, if you entered a wrong number
604 (which depends on the target). Watch the output. Run
605 without this option if you are not sure which the right
608 --type=TYPE Sets the build type. The shortcut is also valid.
609 Run without this option to see available types.
610 --ccache Enable ccache use (done by default these days)
611 --no-ccache Disable ccache use
612 --help Shows this message (must not be used with other options)
619 if test -r "configure"; then
620 # this is a check for a configure script in the current directory, it there
621 # is one, try to figure out if it is this one!
623 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
624 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
625 echo "It will only cause you pain and grief. Instead do this:"
628 echo " mkdir build-dir"
630 echo " ../tools/configure"
632 echo "Much happiness will arise from this. Enjoy"
637 # get our current directory
640 if { echo $pwd |
grep " "; } then
641 echo "You're running this script in a path that contains space. The build"
642 echo "system is unfortunately not clever enough to deal with this. Please"
643 echo "run the script from a different path, rename the path or fix the build"
648 if [ -z "$rootdir" ]; then
649 ##################################################################
650 # Figure out where the source code root is!
652 rootdir
=`dirname $0`/..
/
654 #####################################################################
655 # Convert the possibly relative directory name to an absolute version
661 # cd back to the build dir
666 appsdir
='\$(ROOTDIR)/apps'
667 firmdir
='\$(ROOTDIR)/firmware'
668 toolsdir
='\$(ROOTDIR)/tools'
671 ##################################################################
672 # Figure out target platform
675 if [ "1" != `parse_args --target` ]; then
676 buildfor
=`parse_args --target`;
678 echo "Enter target platform:"
680 ==Archos== ==iriver== ==Apple iPod==
681 0) Player/Studio 10) H120/H140 20) Color/Photo
682 1) Recorder 11) H320/H340 21) Nano
683 2) FM Recorder 12) iHP-100/110/115 22) Video
684 3) Recorder v2 13) iFP-790 23) 3G
685 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
686 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
688 ==Toshiba== 27) 1G, 2G
690 ==Cowon/iAudio== 41) Gigabeat S ==SanDisk==
691 30) X5/X5V/X5L 50) Sansa e200
692 31) M5/M5L ==Tatung== 51) Sansa e200R
693 32) 7 60) Elio TPJ-1022 52) Sansa c200
694 33) D2 53) Sansa m200
695 34) M3/M3L ==Olympus== 54) Sansa c100
696 70) M:Robe 500 55) Sansa Clip
697 ==Creative== 71) M:Robe 100 56) Sansa e200v2
698 90) Zen Vision:M 30GB 57) Sansa m200v4
699 91) Zen Vision:M 60GB ==Philips== 58) Sansa Fuze
700 92) Zen Vision 100) GoGear SA9200
701 101) GoGear HDD1630 ==Logik==
702 ==Onda== 80) DAX 1GB MP3/DAB
713 # Set of tools built for all target platforms:
714 toolset
="rdf2binary convbdf codepages"
716 # Toolsets for some target families:
717 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
718 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
719 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
720 ipodbitmaptools
="$toolset scramble bmp2rb"
721 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
722 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
723 # generic is used by IFP, Meizu and Onda
724 genericbitmaptools
="$toolset bmp2rb"
725 # scramble is used by all other targets
726 scramblebitmaptools
="$genericbitmaptools scramble"
729 # ---- For each target ----
732 # target_id: a unique number identifying this target, IS NOT the menu number.
733 # Just use the currently highest number+1 when you add a new
735 # modelname: short model name used all over to identify this target
736 # memory: number of megabytes of RAM this target has. If the amount can
737 # be selected by the size prompt, let memory be unset here
738 # target: -Ddefine passed to the build commands to make the correct
739 # config-*.h file get included etc
740 # tool: the tool that takes a plain binary and converts that into a
741 # working "firmware" file for your target
742 # output: the final output file name
743 # boottool: the tool that takes a plain binary and generates a bootloader
744 # file for your target (or blank to use $tool)
745 # bootoutput:the final output file name for the bootloader (or blank to use
747 # appextra: passed to the APPEXTRA variable in the Makefiles.
748 # TODO: add proper explanation
749 # archosrom: used only for Archos targets that build a special flashable .ucl
751 # flash: name of output for flashing, for targets where there's a special
752 # file output for this.
753 # plugins: set to 'yes' to build the plugins. Early development builds can
754 # set this to no in the early stages to have an easier life for a
756 # swcodec: set 'yes' on swcodec targets
757 # toolset: lists what particular tools in the tools/ directory that this
758 # target needs to have built prior to building Rockbox
761 # *cc: sets up gcc and compiler options for your target builds. Note
762 # that if you select a simulator build, the compiler selection is
763 # overridden later in the script.
770 target
="-DARCHOS_PLAYER"
772 tool
="$rootdir/tools/scramble"
774 appextra
="player:gui"
775 archosrom
="$pwd/rombox.ucl"
776 flash
="$pwd/rockbox.ucl"
780 # toolset is the tools within the tools directory that we build for
781 # this particular target.
782 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
784 # Note: the convbdf is present in the toolset just because: 1) the
785 # firmware/Makefile assumes it is present always, and 2) we will need it when we
786 # build the player simulator
789 t_manufacturer
="archos"
796 target
="-DARCHOS_RECORDER"
798 tool
="$rootdir/tools/scramble"
799 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
800 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
802 appextra
="recorder:gui"
803 #archosrom="$pwd/rombox.ucl"
804 flash
="$pwd/rockbox.ucl"
807 # toolset is the tools within the tools directory that we build for
808 # this particular target.
809 toolset
=$archosbitmaptools
811 t_manufacturer
="archos"
817 modelname
="fmrecorder"
818 target
="-DARCHOS_FMRECORDER"
820 tool
="$rootdir/tools/scramble -fm"
821 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
822 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
824 appextra
="recorder:gui"
825 #archosrom="$pwd/rombox.ucl"
826 flash
="$pwd/rockbox.ucl"
829 # toolset is the tools within the tools directory that we build for
830 # this particular target.
831 toolset
=$archosbitmaptools
833 t_manufacturer
="archos"
839 modelname
="recorderv2"
840 target
="-DARCHOS_RECORDERV2"
842 tool
="$rootdir/tools/scramble -v2"
843 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
844 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
846 appextra
="recorder:gui"
847 #archosrom="$pwd/rombox.ucl"
848 flash
="$pwd/rockbox.ucl"
851 # toolset is the tools within the tools directory that we build for
852 # this particular target.
853 toolset
=$archosbitmaptools
855 t_manufacturer
="archos"
862 target
="-DARCHOS_ONDIOSP"
864 tool
="$rootdir/tools/scramble -osp"
865 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
866 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
868 appextra
="recorder:gui"
869 archosrom
="$pwd/rombox.ucl"
870 flash
="$pwd/rockbox.ucl"
873 # toolset is the tools within the tools directory that we build for
874 # this particular target.
875 toolset
=$archosbitmaptools
877 t_manufacturer
="archos"
884 target
="-DARCHOS_ONDIOFM"
886 tool
="$rootdir/tools/scramble -ofm"
887 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
888 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
890 appextra
="recorder:gui"
891 #archosrom="$pwd/rombox.ucl"
892 flash
="$pwd/rockbox.ucl"
895 toolset
=$archosbitmaptools
897 t_manufacturer
="archos"
904 target
="-DARCHOS_AV300"
907 tool
="$rootdir/tools/scramble -mm=C"
908 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
909 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
911 appextra
="recorder:gui"
914 # toolset is the tools within the tools directory that we build for
915 # this particular target.
916 toolset
="$toolset scramble descramble bmp2rb"
917 # architecture, manufacturer and model for the target-tree build
919 t_manufacturer
="archos"
926 target
="-DIRIVER_H120"
929 tool
="$rootdir/tools/scramble -add=h120"
930 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
931 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
932 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
933 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
934 output
="rockbox.iriver"
935 appextra
="recorder:gui"
936 flash
="$pwd/rombox.iriver"
939 # toolset is the tools within the tools directory that we build for
940 # this particular target.
941 toolset
=$iriverbitmaptools
943 t_manufacturer
="iriver"
950 target
="-DIRIVER_H300"
953 tool
="$rootdir/tools/scramble -add=h300"
954 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
955 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
956 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
957 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
958 output
="rockbox.iriver"
959 appextra
="recorder:gui"
962 # toolset is the tools within the tools directory that we build for
963 # this particular target.
964 toolset
=$iriverbitmaptools
966 t_manufacturer
="iriver"
973 target
="-DIRIVER_H100"
976 tool
="$rootdir/tools/scramble -add=h100"
977 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
978 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
979 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
980 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
981 output
="rockbox.iriver"
982 appextra
="recorder:gui"
983 flash
="$pwd/rombox.iriver"
986 # toolset is the tools within the tools directory that we build for
987 # this particular target.
988 toolset
=$iriverbitmaptools
990 t_manufacturer
="iriver"
997 target
="-DIRIVER_IFP7XX"
1001 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1002 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1003 output
="rockbox.wma"
1004 appextra
="recorder:gui"
1007 # toolset is the tools within the tools directory that we build for
1008 # this particular target.
1009 toolset
=$genericbitmaptools
1011 t_manufacturer
="pnx0101"
1012 t_model
="iriver-ifp7xx"
1018 target
="-DIRIVER_H10"
1021 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1022 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1023 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1024 output
="rockbox.mi4"
1025 appextra
="recorder:gui"
1028 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1029 bootoutput
="H10_20GC.mi4"
1030 # toolset is the tools within the tools directory that we build for
1031 # this particular target.
1032 toolset
=$scramblebitmaptools
1033 # architecture, manufacturer and model for the target-tree build
1035 t_manufacturer
="iriver"
1042 target
="-DIRIVER_H10_5GB"
1045 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1046 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1047 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1048 output
="rockbox.mi4"
1049 appextra
="recorder:gui"
1052 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1053 bootoutput
="H10.mi4"
1054 # toolset is the tools within the tools directory that we build for
1055 # this particular target.
1056 toolset
=$scramblebitmaptools
1057 # architecture, manufacturer and model for the target-tree build
1059 t_manufacturer
="iriver"
1065 modelname
="ipodcolor"
1066 target
="-DIPOD_COLOR"
1069 tool
="$rootdir/tools/scramble -add=ipco"
1070 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1071 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1072 output
="rockbox.ipod"
1073 appextra
="recorder:gui"
1076 bootoutput
="bootloader-$modelname.ipod"
1077 # toolset is the tools within the tools directory that we build for
1078 # this particular target.
1079 toolset
=$ipodbitmaptools
1080 # architecture, manufacturer and model for the target-tree build
1082 t_manufacturer
="ipod"
1088 modelname
="ipodnano"
1089 target
="-DIPOD_NANO"
1092 tool
="$rootdir/tools/scramble -add=nano"
1093 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1094 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1095 output
="rockbox.ipod"
1096 appextra
="recorder:gui"
1099 bootoutput
="bootloader-$modelname.ipod"
1100 # toolset is the tools within the tools directory that we build for
1101 # this particular target.
1102 toolset
=$ipodbitmaptools
1103 # architecture, manufacturer and model for the target-tree build
1105 t_manufacturer
="ipod"
1111 modelname
="ipodvideo"
1112 target
="-DIPOD_VIDEO"
1114 tool
="$rootdir/tools/scramble -add=ipvd"
1115 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1116 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1117 output
="rockbox.ipod"
1118 appextra
="recorder:gui"
1121 bootoutput
="bootloader-$modelname.ipod"
1122 # toolset is the tools within the tools directory that we build for
1123 # this particular target.
1124 toolset
=$ipodbitmaptools
1125 # architecture, manufacturer and model for the target-tree build
1127 t_manufacturer
="ipod"
1137 tool
="$rootdir/tools/scramble -add=ip3g"
1138 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1139 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1140 output
="rockbox.ipod"
1141 appextra
="recorder:gui"
1144 bootoutput
="bootloader-$modelname.ipod"
1145 # toolset is the tools within the tools directory that we build for
1146 # this particular target.
1147 toolset
=$ipodbitmaptools
1148 # architecture, manufacturer and model for the target-tree build
1150 t_manufacturer
="ipod"
1160 tool
="$rootdir/tools/scramble -add=ip4g"
1161 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1162 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1163 output
="rockbox.ipod"
1164 appextra
="recorder:gui"
1167 bootoutput
="bootloader-$modelname.ipod"
1168 # toolset is the tools within the tools directory that we build for
1169 # this particular target.
1170 toolset
=$ipodbitmaptools
1171 # architecture, manufacturer and model for the target-tree build
1173 t_manufacturer
="ipod"
1179 modelname
="ipodmini"
1180 target
="-DIPOD_MINI"
1183 tool
="$rootdir/tools/scramble -add=mini"
1184 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1185 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1186 output
="rockbox.ipod"
1187 appextra
="recorder:gui"
1190 bootoutput
="bootloader-$modelname.ipod"
1191 # toolset is the tools within the tools directory that we build for
1192 # this particular target.
1193 toolset
=$ipodbitmaptools
1194 # architecture, manufacturer and model for the target-tree build
1196 t_manufacturer
="ipod"
1202 modelname
="ipodmini2g"
1203 target
="-DIPOD_MINI2G"
1206 tool
="$rootdir/tools/scramble -add=mn2g"
1207 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1208 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1209 output
="rockbox.ipod"
1210 appextra
="recorder:gui"
1213 bootoutput
="bootloader-$modelname.ipod"
1214 # toolset is the tools within the tools directory that we build for
1215 # this particular target.
1216 toolset
=$ipodbitmaptools
1217 # architecture, manufacturer and model for the target-tree build
1219 t_manufacturer
="ipod"
1225 modelname
="ipod1g2g"
1226 target
="-DIPOD_1G2G"
1229 tool
="$rootdir/tools/scramble -add=1g2g"
1230 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1231 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1232 output
="rockbox.ipod"
1233 appextra
="recorder:gui"
1236 bootoutput
="bootloader-$modelname.ipod"
1237 # toolset is the tools within the tools directory that we build for
1238 # this particular target.
1239 toolset
=$ipodbitmaptools
1240 # architecture, manufacturer and model for the target-tree build
1242 t_manufacturer
="ipod"
1249 target
="-DIAUDIO_X5"
1252 tool
="$rootdir/tools/scramble -add=iax5"
1253 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1254 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1255 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1256 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1257 output
="rockbox.iaudio"
1258 appextra
="recorder:gui"
1261 # toolset is the tools within the tools directory that we build for
1262 # this particular target.
1263 toolset
="$iaudiobitmaptools"
1264 # architecture, manufacturer and model for the target-tree build
1266 t_manufacturer
="iaudio"
1273 target
="-DIAUDIO_M5"
1276 tool
="$rootdir/tools/scramble -add=iam5"
1277 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1278 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1279 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1280 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1281 output
="rockbox.iaudio"
1282 appextra
="recorder:gui"
1285 # toolset is the tools within the tools directory that we build for
1286 # this particular target.
1287 toolset
="$iaudiobitmaptools"
1288 # architecture, manufacturer and model for the target-tree build
1290 t_manufacturer
="iaudio"
1300 tool
="$rootdir/tools/scramble -add=i7"
1301 boottool
="$rootdir/tools/scramble -tcc=crc"
1302 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1303 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1304 output
="rockbox.iaudio"
1305 appextra
="recorder:gui"
1308 bootoutput
="I7_FW.BIN"
1309 # toolset is the tools within the tools directory that we build for
1310 # this particular target.
1311 toolset
="$tccbitmaptools"
1312 # architecture, manufacturer and model for the target-tree build
1314 t_manufacturer
="tcc77x"
1324 tool
="$rootdir/tools/scramble -add=d2"
1325 boottool
="$rootdir/tools/scramble -tcc=crc"
1326 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1327 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1329 appextra
="recorder:gui"
1332 toolset
="$tccbitmaptools"
1333 # architecture, manufacturer and model for the target-tree build
1335 t_manufacturer
="tcc780x"
1342 target
="-DIAUDIO_M3"
1345 tool
="$rootdir/tools/scramble -add=iam3"
1346 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1347 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1348 output
="rockbox.iaudio"
1349 appextra
="recorder:gui"
1352 # toolset is the tools within the tools directory that we build for
1353 # this particular target.
1354 toolset
="$iaudiobitmaptools"
1355 # architecture, manufacturer and model for the target-tree build
1357 t_manufacturer
="iaudio"
1363 modelname
="gigabeatf"
1364 target
="-DGIGABEAT_F"
1367 tool
="$rootdir/tools/scramble -add=giga"
1368 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1369 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1370 output
="rockbox.gigabeat"
1371 appextra
="recorder:gui"
1374 toolset
=$gigabeatbitmaptools
1375 boottool
="$rootdir/tools/scramble -gigabeat"
1376 bootoutput
="FWIMG01.DAT"
1377 # architecture, manufacturer and model for the target-tree build
1379 t_manufacturer
="s3c2440"
1380 t_model
="gigabeat-fx"
1385 modelname
="gigabeats"
1386 target
="-DGIGABEAT_S"
1389 tool
="$rootdir/tools/scramble -add=gigs"
1390 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1391 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1392 output
="rockbox.gigabeat"
1393 appextra
="recorder:gui"
1396 toolset
="$gigabeatbitmaptools mknkboot"
1397 boottool
="$rootdir/tools/scramble -gigabeats"
1399 # architecture, manufacturer and model for the target-tree build
1401 t_manufacturer
="imx31"
1402 t_model
="gigabeat-s"
1407 modelname
="mrobe500"
1408 target
="-DMROBE_500"
1411 # tool="$rootdir/tools/scramble -add=m500"
1413 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1414 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1415 output
="rockbox.mrobe500"
1416 appextra
="recorder:gui"
1419 toolset
=$gigabeatbitmaptools
1421 bootoutput
="rockbox.mrboot"
1422 # architecture, manufacturer and model for the target-tree build
1424 t_manufacturer
="tms320dm320"
1430 modelname
="mrobe100"
1431 target
="-DMROBE_100"
1434 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1435 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1436 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1437 output
="rockbox.mi4"
1438 appextra
="recorder:gui"
1441 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1442 bootoutput
="pp5020.mi4"
1443 # toolset is the tools within the tools directory that we build for
1444 # this particular target.
1445 toolset
=$scramblebitmaptools
1446 # architecture, manufacturer and model for the target-tree build
1448 t_manufacturer
="olympus"
1454 modelname
="logikdax"
1455 target
="-DLOGIK_DAX"
1458 tool
="$rootdir/tools/scramble -add=ldax"
1459 boottool
="$rootdir/tools/scramble -tcc=crc"
1460 bootoutput
="player.rom"
1461 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1462 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1463 output
="rockbox.logik"
1464 appextra
="recorder:gui"
1467 # toolset is the tools within the tools directory that we build for
1468 # this particular target.
1469 toolset
=$tccbitmaptools
1470 # architecture, manufacturer and model for the target-tree build
1472 t_manufacturer
="tcc77x"
1478 modelname
="creativezvm30"
1479 target
="-DCREATIVE_ZVM"
1482 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1483 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1484 tool
="$rootdir/tools/scramble -creative=zvm"
1486 output
="rockbox.zvm"
1487 appextra
="recorder:gui"
1490 toolset
=$ipodbitmaptools
1491 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1492 bootoutput
="rockbox.zvmboot"
1493 # architecture, manufacturer and model for the target-tree build
1495 t_manufacturer
="tms320dm320"
1496 t_model
="creative-zvm"
1501 modelname
="creativezvm60"
1502 target
="-DCREATIVE_ZVM60GB"
1505 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1506 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1507 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1509 output
="rockbox.zvm60"
1510 appextra
="recorder:gui"
1513 toolset
=$ipodbitmaptools
1514 boottool
="$rootdir/tools/scramble -creative=zvm60"
1515 bootoutput
="rockbox.zvm60boot"
1516 # architecture, manufacturer and model for the target-tree build
1518 t_manufacturer
="tms320dm320"
1519 t_model
="creative-zvm"
1522 92|creativezenvision
)
1524 modelname
="creativezv"
1525 target
="-DCREATIVE_ZV"
1528 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1529 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1530 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1533 appextra
="recorder:gui"
1536 toolset
=$ipodbitmaptools
1537 boottool
="$rootdir/tools/scramble -creative=zenvision"
1538 bootoutput
="rockbox.zvboot"
1539 # architecture, manufacturer and model for the target-tree build
1541 t_manufacturer
="tms320dm320"
1542 t_model
="creative-zvm"
1548 target
="-DSANSA_E200"
1549 memory
=32 # supposedly
1551 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1552 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1553 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1554 output
="rockbox.mi4"
1555 appextra
="recorder:gui"
1558 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1559 bootoutput
="PP5022.mi4"
1560 # toolset is the tools within the tools directory that we build for
1561 # this particular target.
1562 toolset
=$scramblebitmaptools
1563 # architecture, manufacturer and model for the target-tree build
1565 t_manufacturer
="sandisk"
1566 t_model
="sansa-e200"
1570 # the e200R model is pretty much identical to the e200, it only has a
1571 # different option to the scramble tool when building a bootloader and
1572 # makes the bootloader output file name in all lower case.
1575 target
="-DSANSA_E200"
1576 memory
=32 # supposedly
1578 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1579 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1580 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1581 output
="rockbox.mi4"
1582 appextra
="recorder:gui"
1585 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1586 bootoutput
="pp5022.mi4"
1587 # toolset is the tools within the tools directory that we build for
1588 # this particular target.
1589 toolset
=$scramblebitmaptools
1590 # architecture, manufacturer and model for the target-tree build
1592 t_manufacturer
="sandisk"
1593 t_model
="sansa-e200"
1599 target
="-DSANSA_C200"
1600 memory
=32 # supposedly
1602 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1603 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1604 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1605 output
="rockbox.mi4"
1606 appextra
="recorder:gui"
1609 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1610 bootoutput
="firmware.mi4"
1611 # toolset is the tools within the tools directory that we build for
1612 # this particular target.
1613 toolset
=$scramblebitmaptools
1614 # architecture, manufacturer and model for the target-tree build
1616 t_manufacturer
="sandisk"
1617 t_model
="sansa-c200"
1623 target
="-DSANSA_M200"
1626 tool
="$rootdir/tools/scramble -add=m200"
1627 boottool
="$rootdir/tools/scramble -tcc=crc"
1628 bootoutput
="player.rom"
1629 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1630 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1631 output
="rockbox.m200"
1632 appextra
="recorder:gui"
1635 # toolset is the tools within the tools directory that we build for
1636 # this particular target.
1637 toolset
=$tccbitmaptools
1638 # architecture, manufacturer and model for the target-tree build
1640 t_manufacturer
="tcc77x"
1647 target
="-DSANSA_C100"
1648 memory
=32 # unsure, must check
1650 tool
="$rootdir/tools/scramble -add=c100"
1651 boottool
="$rootdir/tools/scramble -tcc=crc"
1652 bootoutput
="player.rom"
1653 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1654 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1655 output
="rockbox.c100"
1656 appextra
="recorder:gui"
1658 # toolset is the tools within the tools directory that we build for
1659 # this particular target.
1660 toolset
=$tccbitmaptools
1661 # architecture, manufacturer and model for the target-tree build
1663 t_manufacturer
="tcc77x"
1670 target
="-DSANSA_CLIP"
1673 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1674 bmp2rb_native
="$bmp2rb_mono"
1675 tool
="$rootdir/tools/scramble -add=clip"
1676 output
="rockbox.sansa"
1677 bootoutput
="bootloader-clip.sansa"
1678 appextra
="recorder:gui"
1681 toolset
=$scramblebitmaptools
1683 t_manufacturer
="as3525"
1684 t_model
="sansa-clip"
1691 target
="-DSANSA_E200V2"
1694 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1695 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1696 tool
="$rootdir/tools/scramble -add=e2v2"
1697 output
="rockbox.sansa"
1698 bootoutput
="bootloader-e200v2.sansa"
1699 appextra
="recorder:gui"
1702 toolset
=$scramblebitmaptools
1704 t_manufacturer
="as3525"
1705 t_model
="sansa-e200v2"
1712 target
="-DSANSA_M200V4"
1715 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1716 bmp2rb_native
="$bmp2rb_mono"
1717 tool
="$rootdir/tools/scramble -add=m2v4"
1718 output
="rockbox.sansa"
1719 bootoutput
="bootloader-m200v4.sansa"
1720 appextra
="recorder:gui"
1723 toolset
=$scramblebitmaptools
1725 t_manufacturer
="as3525"
1726 t_model
="sansa-m200v4"
1733 target
="-DSANSA_FUZE"
1736 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1737 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1738 tool
="$rootdir/tools/scramble -add=fuze"
1739 output
="rockbox.sansa"
1740 bootoutput
="bootloader-fuze.sansa"
1741 appextra
="recorder:gui"
1744 toolset
=$scramblebitmaptools
1746 t_manufacturer
="as3525"
1747 t_model
="sansa-fuze"
1754 target
="-DELIO_TPJ1022"
1757 tool
="$rootdir/tools/scramble -add tpj2"
1758 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1759 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1760 output
="rockbox.elio"
1761 appextra
="recorder:gui"
1764 boottool
="$rootdir/tools/scramble -mi4v2"
1765 bootoutput
="pp5020.mi4"
1766 # toolset is the tools within the tools directory that we build for
1767 # this particular target.
1768 toolset
=$scramblebitmaptools
1769 # architecture, manufacturer and model for the target-tree build
1771 t_manufacturer
="tatung"
1778 target
="-DPHILIPS_SA9200"
1779 memory
=32 # supposedly
1781 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1782 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1783 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1784 output
="rockbox.mi4"
1785 appextra
="recorder:gui"
1788 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1789 bootoutput
="FWImage.ebn"
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
="philips"
1802 target
="-DPHILIPS_HDD1630"
1803 memory
=32 # supposedly
1805 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1806 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1807 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1808 output
="rockbox.mi4"
1809 appextra
="recorder:gui"
1812 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1813 bootoutput
="FWImage.ebn"
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
="philips"
1825 modelname
="meizum6sl"
1826 target
="-DMEIZU_M6SL"
1830 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1831 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1832 output
="rockbox.meizu"
1833 appextra
="recorder:gui"
1836 toolset
=$genericbitmaptools
1838 bootoutput
="rockboot.ebn"
1839 # architecture, manufacturer and model for the target-tree build
1841 t_manufacturer
="s5l8700"
1842 t_model
="meizu-m6sl"
1847 modelname
="meizum6sp"
1848 target
="-DMEIZU_M6SP"
1852 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1853 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1854 output
="rockbox.meizu"
1855 appextra
="recorder:gui"
1858 toolset
=$genericbitmaptools
1860 bootoutput
="rockboot.ebn"
1861 # architecture, manufacturer and model for the target-tree build
1863 t_manufacturer
="s5l8700"
1864 t_model
="meizu-m6sp"
1874 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1875 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1876 output
="rockbox.meizu"
1877 appextra
="recorder:gui"
1880 toolset
=$genericbitmaptools
1882 bootoutput
="rockboot.ebn"
1883 # architecture, manufacturer and model for the target-tree build
1885 t_manufacturer
="s5l8700"
1891 modelname
="ondavx747"
1892 target
="-DONDA_VX747"
1896 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1897 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1898 output
="rockbox.vx747"
1899 appextra
="recorder:gui"
1902 toolset
=$genericbitmaptools
1904 bootoutput
="rockboot.vx747"
1905 # architecture, manufacturer and model for the target-tree build
1907 t_manufacturer
="ingenic_jz47xx"
1908 t_model
="onda_vx747"
1913 modelname
="ondavx767"
1914 target
="-DONDA_VX767"
1918 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1919 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1920 output
="rockbox.vx767"
1921 appextra
="recorder:gui"
1924 toolset
=$genericbitmaptools
1926 bootoutput
="rockboot.vx767"
1927 # architecture, manufacturer and model for the target-tree build
1929 t_manufacturer
="ingenic_jz47xx"
1930 t_model
="onda_vx767"
1933 echo "Please select a supported target platform!"
1939 echo "Platform set to $modelname"
1943 ############################################################################
1944 # Amount of memory, for those that can differ. They have $memory unset at
1948 if [ -z "$memory" ]; then
1951 echo "Enter size of your RAM (in MB): (Defaults to 32)"
1952 if [ "1" != `parse_args --ram` ]; then
1953 size
=`parse_args --ram`;
1967 echo "Enter size of your RAM (in MB): (Defaults to 2)"
1968 if [ "1" != `parse_args --ram` ]; then
1969 size
=`parse_args --ram`;
1983 echo "Memory size selected: $memory MB"
1988 ##################################################################
1989 # Figure out build "type"
1992 # the ifp7x0 is the only platform that supports building a gdb stub like
1996 gdbstub
="(G)DB stub, "
1999 gdbstub
="(I)installer, "
2002 gdbstub
="(E)raser, "
2007 if [ "1" != `parse_args --type` ]; then
2008 option
=`parse_args --type`;
2010 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2016 appsdir
='\$(ROOTDIR)/bootloader'
2018 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2020 echo "e200R-installer build selected"
2023 appsdir
='\$(ROOTDIR)/bootloader'
2025 echo "C2(4)0 or C2(5)0"
2029 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2030 echo "c240 eraser build selected"
2033 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2034 echo "c240 eraser build selected"
2038 echo "c200 eraser build selected"
2041 if test $t_manufacturer = "archos"; then
2042 # Archos SH-based players do this somewhat differently for
2044 appsdir
='\$(ROOTDIR)/flash/bootbox'
2047 appsdir
='\$(ROOTDIR)/bootloader'
2050 if test -n "$boottool"; then
2053 if test -n "$bootoutput"; then
2057 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2059 echo "Bootloader build selected"
2064 extradefines
="-DSIMULATOR"
2067 echo "Simulator build selected"
2070 echo "Advanced build selected"
2074 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2075 appsdir
='\$(ROOTDIR)/gdb'
2084 echo "GDB stub build selected"
2089 echo "Manual build selected"
2092 if [ "$modelname" = "e200r" ]; then
2093 echo "Do not use the e200R target for regular builds. Use e200 instead."
2097 echo "Normal build selected"
2101 # to be able running "make manual" from non-manual configuration
2104 manualdev
="recorderv2fm"
2107 manualdev
="recorderv2fm"
2113 manualdev
="ipodmini"
2116 manualdev
=$modelname
2120 if [ -z "$debug" ]; then
2121 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2124 echo "Using source code root directory: $rootdir"
2126 # this was once possible to change at build-time, but no more:
2131 if [ "yes" = "$simulator" ]; then
2132 # setup compiler and things for simulator
2135 if [ -d "simdisk" ]; then
2136 echo "Subdirectory 'simdisk' already present"
2139 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2143 # Now, figure out version number of the (gcc) compiler we are about to use
2144 gccver
=`$CC -dumpversion`;
2146 # figure out the binutil version too and display it, mostly for the build
2147 # system etc to be able to see it easier
2148 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2150 if [ -z "$gccver" ]; then
2151 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2152 echo "WARNING: this may cause your build to fail since we cannot do the"
2153 echo "WARNING: checks we want now."
2156 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2159 num1
=`echo $gccver | cut -d . -f1`
2160 num2
=`echo $gccver | cut -d . -f2`
2161 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2168 echo "Using $CC $gccver ($gccnum)"
2170 if test "$gccnum" -ge "400"; then
2171 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2172 # so we ignore that warnings for now
2174 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2177 if test "$gccnum" -ge "401"; then
2178 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2179 # will break strict-aliasing rules"
2181 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2184 if test "$gccnum" -ge "402"; then
2185 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2186 # and later would throw it for several valid cases
2187 GCCOPTS
="$GCCOPTS -Wno-override-init"
2195 # cross-compile for win32
2198 # Verify that the cross-compiler is of a recommended version!
2199 if test "$gccver" != "$gccchoice"; then
2200 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2201 echo "WARNING: version $gccchoice!"
2202 echo "WARNING: This may cause your build to fail since it may be a version"
2203 echo "WARNING: that isn't functional or known to not be the best choice."
2204 echo "WARNING: If you suffer from build problems, you know that this is"
2205 echo "WARNING: a likely source for them..."
2213 echo "Using $LD $ldver"
2215 # check the compiler for SH platforms
2216 if test "$CC" = "sh-elf-gcc"; then
2217 if test "$gccnum" -lt "400"; then
2218 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2219 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2221 # figure out patch status
2222 gccpatch
=`$CC --version`;
2224 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2225 echo "gcc $gccver is rockbox patched"
2226 # then convert -O to -Os to get smaller binaries!
2227 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2229 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2230 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2235 if test "$CC" = "m68k-elf-gcc"; then
2236 # convert -O to -Os to get smaller binaries!
2237 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2240 if [ "1" != `parse_args --ccache` ]; then
2241 echo "Enable ccache for building"
2244 if [ "1" = `parse_args --no-ccache` ]; then
2245 ccache
=`findtool ccache`
2246 if test -n "$ccache"; then
2247 echo "Found and uses ccache ($ccache)"
2252 # figure out the full path to the various commands if possible
2253 HOSTCC
=`findtool gcc --lit`
2254 HOSTAR
=`findtool ar --lit`
2255 CC
=`findtool ${CC} --lit`
2256 LD
=`findtool ${AR} --lit`
2257 AR
=`findtool ${AR} --lit`
2258 AS
=`findtool ${AS} --lit`
2259 OC
=`findtool ${OC} --lit`
2260 WINDRES
=`findtool ${WINDRES} --lit`
2261 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2262 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2263 RANLIB
=`findtool ${RANLIB} --lit`
2265 if test -n "$ccache"; then
2269 if test "X$endian" = "Xbig"; then
2270 defendian
="ROCKBOX_BIG_ENDIAN"
2272 defendian
="ROCKBOX_LITTLE_ENDIAN"
2276 -e "s,@ENDIAN@,${defendian},g" \
2277 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2278 -e "s,@config_rtc@,$config_rtc,g" \
2279 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2281 /* This header was made by configure */
2282 #ifndef __BUILD_AUTOCONF_H
2283 #define __BUILD_AUTOCONF_H
2285 /* Define endianess for the target or simulator platform */
2288 /* Define this if you build rockbox to support the logf logging and display */
2289 #undef ROCKBOX_HAS_LOGF
2291 /* optional defines for RTC mod for h1x0 */
2295 #endif /* __BUILD_AUTOCONF_H */
2298 if test -n "$t_cpu"; then
2299 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2300 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2301 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2305 if test "$simulator" = "yes"; then
2306 # add simul make stuff on the #SIMUL# line
2307 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2308 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2310 # delete the lines that match
2311 simmagic1
='/@SIMUL1@/D'
2312 simmagic2
='/@SIMUL2@/D'
2315 if test "$swcodec" = "yes"; then
2316 voicetoolset
="rbspeexenc voicefont wavtrim"
2318 voicetoolset
="voicefont wavtrim"
2321 if test "$apps" = "apps"; then
2322 # only when we build "real" apps we build the .lng files
2327 -e "s,@ROOTDIR@,${rootdir},g" \
2328 -e "s,@DEBUG@,${debug},g" \
2329 -e "s,@MEMORY@,${memory},g" \
2330 -e "s,@TARGET_ID@,${target_id},g" \
2331 -e "s,@TARGET@,${target},g" \
2332 -e "s,@CPU@,${t_cpu},g" \
2333 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2334 -e "s,@MODELNAME@,${modelname},g" \
2335 -e "s,@LANGUAGE@,${language},g" \
2336 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2337 -e "s,@PWD@,${pwd},g" \
2338 -e "s,@HOSTCC@,${HOSTCC},g" \
2339 -e "s,@HOSTAR@,${HOSTAR},g" \
2340 -e "s,@CC@,${CC},g" \
2341 -e "s,@LD@,${LD},g" \
2342 -e "s,@AR@,${AR},g" \
2343 -e "s,@AS@,${AS},g" \
2344 -e "s,@OC@,${OC},g" \
2345 -e "s,@WINDRES@,${WINDRES},g" \
2346 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2347 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2348 -e "s,@RANLIB@,${RANLIB},g" \
2349 -e "s,@TOOL@,${tool},g" \
2350 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2351 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2352 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2353 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2354 -e "s,@OUTPUT@,${output},g" \
2355 -e "s,@APPEXTRA@,${appextra},g" \
2356 -e "s,@ARCHOSROM@,${archosrom},g" \
2357 -e "s,@FLASHFILE@,${flash},g" \
2358 -e "s,@PLUGINS@,${plugins},g" \
2359 -e "s,@CODECS@,${swcodec},g" \
2360 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2361 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2362 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2363 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2364 -e "s!@LDOPTS@!${LDOPTS}!g" \
2365 -e "s,@LOADADDRESS@,${loadaddress},g" \
2366 -e "s,@EXTRADEF@,${extradefines},g" \
2367 -e "s,@APPSDIR@,${appsdir},g" \
2368 -e "s,@FIRMDIR@,${firmdir},g" \
2369 -e "s,@TOOLSDIR@,${toolsdir},g" \
2370 -e "s,@APPS@,${apps},g" \
2371 -e "s,@SIMVER@,${simver},g" \
2372 -e "s,@GCCVER@,${gccver},g" \
2373 -e "s,@GCCNUM@,${gccnum},g" \
2374 -e "s,@UNAME@,${uname},g" \
2375 -e "s,@ENDIAN@,${defendian},g" \
2376 -e "s,@TOOLSET@,${toolset},g" \
2379 -e "s,@MANUALDEV@,${manualdev},g" \
2380 -e "s,@ENCODER@,${ENC_CMD},g" \
2381 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2382 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2383 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2384 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2385 -e "s,@LANGS@,${buildlangs},g" \
2386 -e "s,@USE_ELF@,${USE_ELF},g" \
2388 ## Automatically generated. http://www.rockbox.org/
2390 export ROOTDIR=@ROOTDIR@
2391 export FIRMDIR=@FIRMDIR@
2392 export APPSDIR=@APPSDIR@
2393 export TOOLSDIR=@TOOLSDIR@
2394 export DOCSDIR=\$(ROOTDIR)/docs
2395 export MANUALDIR=\${ROOTDIR}/manual
2396 export DEBUG=@DEBUG@
2397 export MODELNAME=@MODELNAME@
2398 export ARCHOSROM=@ARCHOSROM@
2399 export FLASHFILE=@FLASHFILE@
2400 export TARGET_ID=@TARGET_ID@
2401 export TARGET=@TARGET@
2403 export MANUFACTURER=@MANUFACTURER@
2405 export BUILDDIR=@PWD@
2406 export LANGUAGE=@LANGUAGE@
2407 export VOICELANGUAGE=@VOICELANGUAGE@
2408 export MEMORYSIZE=@MEMORY@
2409 export VERSION:=\$(shell \$(ROOTDIR)/tools/svnversion.sh \$(ROOTDIR))
2410 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2411 export MKFIRMWARE=@TOOL@
2412 export BMP2RB_MONO=@BMP2RB_MONO@
2413 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2414 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2415 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2416 export BINARY=@OUTPUT@
2417 export APPEXTRA=@APPEXTRA@
2418 export ENABLEDPLUGINS=@PLUGINS@
2419 export SOFTWARECODECS=@CODECS@
2420 export EXTRA_DEFINES=@EXTRADEF@
2421 export HOSTCC=@HOSTCC@
2422 export HOSTAR=@HOSTAR@
2428 export WINDRES=@WINDRES@
2429 export DLLTOOL=@DLLTOOL@
2430 export DLLWRAP=@DLLWRAP@
2431 export RANLIB=@RANLIB@
2432 export PROFILE_OPTS=@PROFILE_OPTS@
2433 export SIMVER=@SIMVER@
2434 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2435 export GCCOPTS=@GCCOPTS@
2436 export TARGET_INC=@TARGET_INC@
2437 export LOADADDRESS=@LOADADDRESS@
2438 export SHARED_FLAG=@SHARED_FLAG@
2439 export LDOPTS=@LDOPTS@
2440 export GCCVER=@GCCVER@
2441 export GCCNUM=@GCCNUM@
2442 export UNAME=@UNAME@
2443 export MANUALDEV=@MANUALDEV@
2444 export TTS_OPTS=@TTS_OPTS@
2445 export TTS_ENGINE=@TTS_ENGINE@
2446 export ENC_OPTS=@ENC_OPTS@
2447 export ENCODER=@ENCODER@
2448 export USE_ELF=@USE_ELF@
2450 include \$(TOOLSDIR)/root.make
2454 echo "Created Makefile"