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 -mno-long-calls -Wno-parentheses"
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
327 if [ "$t_model" = "ondio" ]; then
328 printf ", (B)acklight MOD"
334 while [ $cont = "1" ]; do
340 if [ "yes" = "$profile" ]; then
341 echo "Debug is incompatible with profiling"
348 echo "logf() support enabled"
352 echo "Simulator build enabled"
356 if [ "yes" = "$use_debug" ]; then
357 echo "Profiling is incompatible with debug"
359 echo "Profiling support is enabled"
364 echo "Voice build selected"
368 if [ "$memory" = "2" ]; then
370 echo "Memory size selected: 8MB"
376 if [ "$modelname" = "h120" ]; then
377 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
378 have_rtc_alarm
="#define HAVE_RTC_ALARM"
379 echo "RTC functions enabled (DS1339/DS3231)"
385 if [ "$t_model" = "ondio" ]; then
386 have_backlight
="#define HAVE_BACKLIGHT"
387 echo "Backlight functions enabled"
399 if [ "yes" = "$voice" ]; then
400 # Ask about languages to build
401 echo "Select a number for the language to use (default is english)"
402 # The multiple-language feature is currently broken
403 # echo "You may enter a comma-separated list of languages to build"
406 voicelanguage
=`whichlang`
408 if [ -z "$voicelanguage" ]; then
410 voicelanguage
="english"
412 echo "Voice language set to $voicelanguage"
414 # Configure encoder and TTS engine for each language
415 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
416 voiceconfig
"$thislang"
419 if [ "yes" = "$use_debug" ]; then
421 GCCOPTS
="$GCCOPTS -g -DDEBUG"
423 if [ "yes" = "$logf" ]; then
424 use_logf
="#define ROCKBOX_HAS_LOGF 1"
426 if [ "yes" = "$simulator" ]; then
428 extradefines
="$extradefines -DSIMULATOR"
432 if [ "yes" = "$profile" ]; then
433 extradefines
="$extradefines -DRB_PROFILE"
434 PROFILE_OPTS
="-finstrument-functions"
438 # Configure voice settings
441 echo "Building $thislang voice for $modelname. Select options"
444 if [ -n "`findtool flite`" ]; then
448 DEFAULT_TTS_OPTS
=$FLITE_OPTS
449 DEFAULT_NOISEFLOOR
="500"
452 if [ -n "`findtool espeak`" ]; then
456 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
457 DEFAULT_NOISEFLOOR
="500"
460 if [ -n "`findtool festival`" ]; then
461 FESTIVAL
="(F)estival "
464 FESTIVAL_OPTS
="--language italian"
467 FESTIVAL_OPTS
="--language spanish"
470 FESTIVAL_OPTS
="--language finnish"
473 FESTIVAL_OPTS
="--language czech"
479 DEFAULT_TTS
="festival"
480 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
481 DEFAULT_NOISEFLOOR
="500"
484 if [ -n "`findtool swift`" ]; then
488 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
489 DEFAULT_NOISEFLOOR
="500"
492 # Allow SAPI if Windows is in use
493 if [ -n "`findtool winver`" ]; then
497 DEFAULT_TTS_OPTS
=$SAPI_OPTS
498 DEFAULT_NOISEFLOOR
="500"
502 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
503 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
507 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
512 NOISEFLOOR
="500" # TODO: check this value
518 TTS_OPTS
=$ESPEAK_OPTS
521 TTS_ENGINE
="festival"
523 TTS_OPTS
=$FESTIVAL_OPTS
536 TTS_ENGINE
=$DEFAULT_TTS
537 TTS_OPTS
=$DEFAULT_TTS_OPTS
538 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
540 echo "Using $TTS_ENGINE for TTS"
542 # Select which voice to use for Festival
543 if [ "$TTS_ENGINE" = "festival" ]; then
545 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
546 if [ "$i" = "1" ]; then
547 TTS_FESTIVAL_VOICE
="$voice" # Default choice
549 printf "%3d. %s\n" "$i" "$voice"
552 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
555 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
556 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
557 TTS_FESTIVAL_VOICE
="$voice"
561 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
562 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
565 # Allow the user to input manual commandline options
566 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
567 USER_TTS_OPTS
=`input`
568 if [ -n "$USER_TTS_OPTS" ]; then
569 TTS_OPTS
="$USER_TTS_OPTS"
574 if [ "$swcodec" = "yes" ]; then
577 ENC_OPTS
="-q 4 -c 10"
579 if [ -n "`findtool lame`" ]; then
582 ENC_OPTS
="--resample 12 -t -m m -h -V 9 -S -B 64 --vbr-new"
584 echo "You need LAME in the system path to build voice files for"
585 echo "HWCODEC targets."
590 echo "Using $ENCODER for encoding voice clips"
592 # Allow the user to input manual commandline options
593 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
594 USER_ENC_OPTS
=`input`
595 if [ -n "$USER_ENC_OPTS" ]; then
596 ENC_OPTS
=$USER_ENC_OPTS
600 if [ -n "`findtool cygpath`" ]; then
601 TEMPDIR
=`cygpath . -a -w`
606 # figure out which languages that are around
607 for file in $rootdir/apps
/lang
/*.lang
; do
608 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
609 langs
="$langs $clean"
613 for one
in $langs; do
623 # Allow the user to pass a comma-separated list of langauges
624 for thispick
in `echo $pick | sed 's/,/ /g'`; do
626 for one
in $langs; do
627 # Accept both the language number and name
628 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
629 if [ "$output" = "" ]; then
643 if test "$opt" = "--help"; then
644 echo "Rockbox configure script."
645 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
646 echo "Do *NOT* run this within the tools directory!"
649 Usage: configure [OPTION]...
651 --target=TARGET Sets the target, TARGET can be either the target ID or
652 corresponding string. Run without this option to see all
655 --ram=RAM Sets the RAM for certain targets. Even though any number
656 is accepted, not every number is correct. The default
657 value will be applied, if you entered a wrong number
658 (which depends on the target). Watch the output. Run
659 without this option if you are not sure which the right
662 --type=TYPE Sets the build type. The shortcut is also valid.
663 Run without this option to see available types.
665 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
666 This is useful for having multiple alternate builds on
667 your device that you can load with ROLO. However as the
668 bootloader looks for .rockbox you won't be able to boot
671 --ccache Enable ccache use (done by default these days)
672 --no-ccache Disable ccache use
673 --help Shows this message (must not be used with other options)
680 if test -r "configure"; then
681 # this is a check for a configure script in the current directory, it there
682 # is one, try to figure out if it is this one!
684 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
685 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
686 echo "It will only cause you pain and grief. Instead do this:"
689 echo " mkdir build-dir"
691 echo " ../tools/configure"
693 echo "Much happiness will arise from this. Enjoy"
698 # get our current directory
701 if { echo $pwd |
grep " "; } then
702 echo "You're running this script in a path that contains space. The build"
703 echo "system is unfortunately not clever enough to deal with this. Please"
704 echo "run the script from a different path, rename the path or fix the build"
709 if [ -z "$rootdir" ]; then
710 ##################################################################
711 # Figure out where the source code root is!
713 rootdir
=`dirname $0`/..
/
715 #####################################################################
716 # Convert the possibly relative directory name to an absolute version
722 # cd back to the build dir
727 appsdir
='\$(ROOTDIR)/apps'
728 firmdir
='\$(ROOTDIR)/firmware'
729 toolsdir
='\$(ROOTDIR)/tools'
732 ##################################################################
733 # Figure out target platform
736 if [ "1" != `parse_args --target` ]; then
737 buildfor
=`parse_args --target`;
739 echo "Enter target platform:"
741 ==Archos== ==iriver== ==Apple iPod==
742 0) Player/Studio 10) H120/H140 20) Color/Photo
743 1) Recorder 11) H320/H340 21) Nano
744 2) FM Recorder 12) iHP-100/110/115 22) Video
745 3) Recorder v2 13) iFP-790 23) 3G
746 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
747 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
749 ==Toshiba== 27) 1G, 2G
750 ==Cowon/iAudio== 40) Gigabeat F
751 30) X5/X5V/X5L 41) Gigabeat S ==SanDisk==
752 31) M5/M5L 50) Sansa e200
753 32) 7 ==Olympus= 51) Sansa e200R
754 33) D2 70) M:Robe 500 52) Sansa c200
755 34) M3/M3L 71) M:Robe 100 53) Sansa m200
757 ==Creative== ==Philips== 55) Sansa Clip
758 90) Zen Vision:M 30GB 100) GoGear SA9200 56) Sansa e200v2
759 91) Zen Vision:M 60GB 101) GoGear HDD1630/ 57) Sansa m200v4
760 92) Zen Vision HDD1830 58) Sansa Fuze
762 ==Onda== ==Meizu== 60) Sansa Clipv2
764 121) VX767 111) M6SP ==Logik==
765 122) VX747+ 112) M3 80) DAX 1GB MP3/DAB
767 ==Samsung== ==Tatung== ==Lyre project==
768 140) YH-820 150) Elio TPJ-1022 130) Lyre proto 1
776 # Set of tools built for all target platforms:
777 toolset
="rdf2binary convbdf codepages"
779 # Toolsets for some target families:
780 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
781 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
782 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
783 ipodbitmaptools
="$toolset scramble bmp2rb"
784 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
785 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
786 # generic is used by IFP, Meizu and Onda
787 genericbitmaptools
="$toolset bmp2rb"
788 # scramble is used by all other targets
789 scramblebitmaptools
="$genericbitmaptools scramble"
792 # ---- For each target ----
795 # target_id: a unique number identifying this target, IS NOT the menu number.
796 # Just use the currently highest number+1 when you add a new
798 # modelname: short model name used all over to identify this target
799 # memory: number of megabytes of RAM this target has. If the amount can
800 # be selected by the size prompt, let memory be unset here
801 # target: -Ddefine passed to the build commands to make the correct
802 # config-*.h file get included etc
803 # tool: the tool that takes a plain binary and converts that into a
804 # working "firmware" file for your target
805 # output: the final output file name
806 # boottool: the tool that takes a plain binary and generates a bootloader
807 # file for your target (or blank to use $tool)
808 # bootoutput:the final output file name for the bootloader (or blank to use
810 # appextra: passed to the APPEXTRA variable in the Makefiles.
811 # TODO: add proper explanation
812 # archosrom: used only for Archos targets that build a special flashable .ucl
814 # flash: name of output for flashing, for targets where there's a special
815 # file output for this.
816 # plugins: set to 'yes' to build the plugins. Early development builds can
817 # set this to no in the early stages to have an easier life for a
819 # swcodec: set 'yes' on swcodec targets
820 # toolset: lists what particular tools in the tools/ directory that this
821 # target needs to have built prior to building Rockbox
824 # *cc: sets up gcc and compiler options for your target builds. Note
825 # that if you select a simulator build, the compiler selection is
826 # overridden later in the script.
833 target
="-DARCHOS_PLAYER"
835 tool
="$rootdir/tools/scramble"
837 appextra
="player:gui"
838 archosrom
="$pwd/rombox.ucl"
839 flash
="$pwd/rockbox.ucl"
843 # toolset is the tools within the tools directory that we build for
844 # this particular target.
845 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
847 # Note: the convbdf is present in the toolset just because: 1) the
848 # firmware/Makefile assumes it is present always, and 2) we will need it when we
849 # build the player simulator
852 t_manufacturer
="archos"
859 target
="-DARCHOS_RECORDER"
861 tool
="$rootdir/tools/scramble"
862 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
863 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
865 appextra
="recorder:gui"
866 #archosrom="$pwd/rombox.ucl"
867 flash
="$pwd/rockbox.ucl"
870 # toolset is the tools within the tools directory that we build for
871 # this particular target.
872 toolset
=$archosbitmaptools
874 t_manufacturer
="archos"
880 modelname
="fmrecorder"
881 target
="-DARCHOS_FMRECORDER"
883 tool
="$rootdir/tools/scramble -fm"
884 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
885 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
887 appextra
="recorder:gui"
888 #archosrom="$pwd/rombox.ucl"
889 flash
="$pwd/rockbox.ucl"
892 # toolset is the tools within the tools directory that we build for
893 # this particular target.
894 toolset
=$archosbitmaptools
896 t_manufacturer
="archos"
902 modelname
="recorderv2"
903 target
="-DARCHOS_RECORDERV2"
905 tool
="$rootdir/tools/scramble -v2"
906 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
907 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
909 appextra
="recorder:gui"
910 #archosrom="$pwd/rombox.ucl"
911 flash
="$pwd/rockbox.ucl"
914 # toolset is the tools within the tools directory that we build for
915 # this particular target.
916 toolset
=$archosbitmaptools
918 t_manufacturer
="archos"
925 target
="-DARCHOS_ONDIOSP"
927 tool
="$rootdir/tools/scramble -osp"
928 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
929 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
931 appextra
="recorder:gui"
932 archosrom
="$pwd/rombox.ucl"
933 flash
="$pwd/rockbox.ucl"
936 # toolset is the tools within the tools directory that we build for
937 # this particular target.
938 toolset
=$archosbitmaptools
940 t_manufacturer
="archos"
947 target
="-DARCHOS_ONDIOFM"
949 tool
="$rootdir/tools/scramble -ofm"
950 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
951 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
953 appextra
="recorder:gui"
954 #archosrom="$pwd/rombox.ucl"
955 flash
="$pwd/rockbox.ucl"
958 toolset
=$archosbitmaptools
960 t_manufacturer
="archos"
967 target
="-DARCHOS_AV300"
970 tool
="$rootdir/tools/scramble -mm=C"
971 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
972 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
974 appextra
="recorder:gui"
977 # toolset is the tools within the tools directory that we build for
978 # this particular target.
979 toolset
="$toolset scramble descramble bmp2rb"
980 # architecture, manufacturer and model for the target-tree build
982 t_manufacturer
="archos"
989 target
="-DIRIVER_H120"
992 tool
="$rootdir/tools/scramble -add=h120"
993 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
994 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
995 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
996 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
997 output
="rockbox.iriver"
998 appextra
="recorder:gui"
999 flash
="$pwd/rombox.iriver"
1002 # toolset is the tools within the tools directory that we build for
1003 # this particular target.
1004 toolset
=$iriverbitmaptools
1006 t_manufacturer
="iriver"
1013 target
="-DIRIVER_H300"
1016 tool
="$rootdir/tools/scramble -add=h300"
1017 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1018 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1019 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1020 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1021 output
="rockbox.iriver"
1022 appextra
="recorder:gui"
1025 # toolset is the tools within the tools directory that we build for
1026 # this particular target.
1027 toolset
=$iriverbitmaptools
1029 t_manufacturer
="iriver"
1036 target
="-DIRIVER_H100"
1039 tool
="$rootdir/tools/scramble -add=h100"
1040 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1041 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1042 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1043 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1044 output
="rockbox.iriver"
1045 appextra
="recorder:gui"
1046 flash
="$pwd/rombox.iriver"
1049 # toolset is the tools within the tools directory that we build for
1050 # this particular target.
1051 toolset
=$iriverbitmaptools
1053 t_manufacturer
="iriver"
1060 target
="-DIRIVER_IFP7XX"
1064 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1065 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1066 output
="rockbox.wma"
1067 appextra
="recorder:gui"
1070 # toolset is the tools within the tools directory that we build for
1071 # this particular target.
1072 toolset
=$genericbitmaptools
1074 t_manufacturer
="pnx0101"
1075 t_model
="iriver-ifp7xx"
1081 target
="-DIRIVER_H10"
1084 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1085 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1086 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1087 output
="rockbox.mi4"
1088 appextra
="recorder:gui"
1091 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1092 bootoutput
="H10_20GC.mi4"
1093 # toolset is the tools within the tools directory that we build for
1094 # this particular target.
1095 toolset
=$scramblebitmaptools
1096 # architecture, manufacturer and model for the target-tree build
1098 t_manufacturer
="iriver"
1105 target
="-DIRIVER_H10_5GB"
1108 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1109 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1110 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1111 output
="rockbox.mi4"
1112 appextra
="recorder:gui"
1115 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1116 bootoutput
="H10.mi4"
1117 # toolset is the tools within the tools directory that we build for
1118 # this particular target.
1119 toolset
=$scramblebitmaptools
1120 # architecture, manufacturer and model for the target-tree build
1122 t_manufacturer
="iriver"
1128 modelname
="ipodcolor"
1129 target
="-DIPOD_COLOR"
1132 tool
="$rootdir/tools/scramble -add=ipco"
1133 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1134 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1135 output
="rockbox.ipod"
1136 appextra
="recorder:gui"
1139 bootoutput
="bootloader-$modelname.ipod"
1140 # toolset is the tools within the tools directory that we build for
1141 # this particular target.
1142 toolset
=$ipodbitmaptools
1143 # architecture, manufacturer and model for the target-tree build
1145 t_manufacturer
="ipod"
1151 modelname
="ipodnano"
1152 target
="-DIPOD_NANO"
1155 tool
="$rootdir/tools/scramble -add=nano"
1156 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1157 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1158 output
="rockbox.ipod"
1159 appextra
="recorder:gui"
1162 bootoutput
="bootloader-$modelname.ipod"
1163 # toolset is the tools within the tools directory that we build for
1164 # this particular target.
1165 toolset
=$ipodbitmaptools
1166 # architecture, manufacturer and model for the target-tree build
1168 t_manufacturer
="ipod"
1174 modelname
="ipodvideo"
1175 target
="-DIPOD_VIDEO"
1177 tool
="$rootdir/tools/scramble -add=ipvd"
1178 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1179 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1180 output
="rockbox.ipod"
1181 appextra
="recorder:gui"
1184 bootoutput
="bootloader-$modelname.ipod"
1185 # toolset is the tools within the tools directory that we build for
1186 # this particular target.
1187 toolset
=$ipodbitmaptools
1188 # architecture, manufacturer and model for the target-tree build
1190 t_manufacturer
="ipod"
1200 tool
="$rootdir/tools/scramble -add=ip3g"
1201 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1202 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1203 output
="rockbox.ipod"
1204 appextra
="recorder:gui"
1207 bootoutput
="bootloader-$modelname.ipod"
1208 # toolset is the tools within the tools directory that we build for
1209 # this particular target.
1210 toolset
=$ipodbitmaptools
1211 # architecture, manufacturer and model for the target-tree build
1213 t_manufacturer
="ipod"
1223 tool
="$rootdir/tools/scramble -add=ip4g"
1224 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1225 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1226 output
="rockbox.ipod"
1227 appextra
="recorder:gui"
1230 bootoutput
="bootloader-$modelname.ipod"
1231 # toolset is the tools within the tools directory that we build for
1232 # this particular target.
1233 toolset
=$ipodbitmaptools
1234 # architecture, manufacturer and model for the target-tree build
1236 t_manufacturer
="ipod"
1242 modelname
="ipodmini"
1243 target
="-DIPOD_MINI"
1246 tool
="$rootdir/tools/scramble -add=mini"
1247 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1248 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1249 output
="rockbox.ipod"
1250 appextra
="recorder:gui"
1253 bootoutput
="bootloader-$modelname.ipod"
1254 # toolset is the tools within the tools directory that we build for
1255 # this particular target.
1256 toolset
=$ipodbitmaptools
1257 # architecture, manufacturer and model for the target-tree build
1259 t_manufacturer
="ipod"
1265 modelname
="ipodmini2g"
1266 target
="-DIPOD_MINI2G"
1269 tool
="$rootdir/tools/scramble -add=mn2g"
1270 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1271 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1272 output
="rockbox.ipod"
1273 appextra
="recorder:gui"
1276 bootoutput
="bootloader-$modelname.ipod"
1277 # toolset is the tools within the tools directory that we build for
1278 # this particular target.
1279 toolset
=$ipodbitmaptools
1280 # architecture, manufacturer and model for the target-tree build
1282 t_manufacturer
="ipod"
1288 modelname
="ipod1g2g"
1289 target
="-DIPOD_1G2G"
1292 tool
="$rootdir/tools/scramble -add=1g2g"
1293 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1294 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1295 output
="rockbox.ipod"
1296 appextra
="recorder:gui"
1299 bootoutput
="bootloader-$modelname.ipod"
1300 # toolset is the tools within the tools directory that we build for
1301 # this particular target.
1302 toolset
=$ipodbitmaptools
1303 # architecture, manufacturer and model for the target-tree build
1305 t_manufacturer
="ipod"
1312 target
="-DIAUDIO_X5"
1315 tool
="$rootdir/tools/scramble -add=iax5"
1316 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1317 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1318 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1319 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1320 output
="rockbox.iaudio"
1321 appextra
="recorder:gui"
1324 # toolset is the tools within the tools directory that we build for
1325 # this particular target.
1326 toolset
="$iaudiobitmaptools"
1327 # architecture, manufacturer and model for the target-tree build
1329 t_manufacturer
="iaudio"
1336 target
="-DIAUDIO_M5"
1339 tool
="$rootdir/tools/scramble -add=iam5"
1340 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1341 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1342 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1343 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1344 output
="rockbox.iaudio"
1345 appextra
="recorder:gui"
1348 # toolset is the tools within the tools directory that we build for
1349 # this particular target.
1350 toolset
="$iaudiobitmaptools"
1351 # architecture, manufacturer and model for the target-tree build
1353 t_manufacturer
="iaudio"
1363 tool
="$rootdir/tools/scramble -add=i7"
1364 boottool
="$rootdir/tools/scramble -tcc=crc"
1365 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1366 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1367 output
="rockbox.iaudio"
1368 appextra
="recorder:gui"
1371 bootoutput
="I7_FW.BIN"
1372 # toolset is the tools within the tools directory that we build for
1373 # this particular target.
1374 toolset
="$tccbitmaptools"
1375 # architecture, manufacturer and model for the target-tree build
1377 t_manufacturer
="tcc77x"
1387 tool
="$rootdir/tools/scramble -add=d2"
1388 boottool
="$rootdir/tools/scramble -tcc=crc"
1389 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1390 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1392 appextra
="recorder:gui"
1395 toolset
="$tccbitmaptools"
1396 # architecture, manufacturer and model for the target-tree build
1398 t_manufacturer
="tcc780x"
1405 target
="-DIAUDIO_M3"
1408 tool
="$rootdir/tools/scramble -add=iam3"
1409 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1410 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1411 output
="rockbox.iaudio"
1412 appextra
="recorder:gui"
1415 # toolset is the tools within the tools directory that we build for
1416 # this particular target.
1417 toolset
="$iaudiobitmaptools"
1418 # architecture, manufacturer and model for the target-tree build
1420 t_manufacturer
="iaudio"
1426 modelname
="gigabeatf"
1427 target
="-DGIGABEAT_F"
1430 tool
="$rootdir/tools/scramble -add=giga"
1431 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1432 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1433 output
="rockbox.gigabeat"
1434 appextra
="recorder:gui"
1437 toolset
=$gigabeatbitmaptools
1438 boottool
="$rootdir/tools/scramble -gigabeat"
1439 bootoutput
="FWIMG01.DAT"
1440 # architecture, manufacturer and model for the target-tree build
1442 t_manufacturer
="s3c2440"
1443 t_model
="gigabeat-fx"
1448 modelname
="gigabeats"
1449 target
="-DGIGABEAT_S"
1452 tool
="$rootdir/tools/scramble -add=gigs"
1453 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1454 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1455 output
="rockbox.gigabeat"
1456 appextra
="recorder:gui"
1459 toolset
="$gigabeatbitmaptools mknkboot"
1460 boottool
="$rootdir/tools/scramble -gigabeats"
1462 # architecture, manufacturer and model for the target-tree build
1464 t_manufacturer
="imx31"
1465 t_model
="gigabeat-s"
1470 modelname
="mrobe500"
1471 target
="-DMROBE_500"
1474 tool
="$rootdir/tools/scramble -add=m500"
1475 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1476 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1477 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1478 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1479 output
="rockbox.mrobe500"
1480 appextra
="recorder:gui"
1483 toolset
=$gigabeatbitmaptools
1485 bootoutput
="rockbox.mrboot"
1486 # architecture, manufacturer and model for the target-tree build
1488 t_manufacturer
="tms320dm320"
1494 modelname
="mrobe100"
1495 target
="-DMROBE_100"
1498 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1499 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1500 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1501 output
="rockbox.mi4"
1502 appextra
="recorder:gui"
1505 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1506 bootoutput
="pp5020.mi4"
1507 # toolset is the tools within the tools directory that we build for
1508 # this particular target.
1509 toolset
=$scramblebitmaptools
1510 # architecture, manufacturer and model for the target-tree build
1512 t_manufacturer
="olympus"
1518 modelname
="logikdax"
1519 target
="-DLOGIK_DAX"
1522 tool
="$rootdir/tools/scramble -add=ldax"
1523 boottool
="$rootdir/tools/scramble -tcc=crc"
1524 bootoutput
="player.rom"
1525 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1526 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1527 output
="rockbox.logik"
1528 appextra
="recorder:gui"
1531 # toolset is the tools within the tools directory that we build for
1532 # this particular target.
1533 toolset
=$tccbitmaptools
1534 # architecture, manufacturer and model for the target-tree build
1536 t_manufacturer
="tcc77x"
1542 modelname
="creativezvm30"
1543 target
="-DCREATIVE_ZVM"
1546 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1547 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1548 tool
="$rootdir/tools/scramble -creative=zvm"
1550 output
="rockbox.zvm"
1551 appextra
="recorder:gui"
1554 toolset
=$ipodbitmaptools
1555 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1556 bootoutput
="rockbox.zvmboot"
1557 # architecture, manufacturer and model for the target-tree build
1559 t_manufacturer
="tms320dm320"
1560 t_model
="creative-zvm"
1565 modelname
="creativezvm60"
1566 target
="-DCREATIVE_ZVM60GB"
1569 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1570 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1571 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1573 output
="rockbox.zvm60"
1574 appextra
="recorder:gui"
1577 toolset
=$ipodbitmaptools
1578 boottool
="$rootdir/tools/scramble -creative=zvm60"
1579 bootoutput
="rockbox.zvm60boot"
1580 # architecture, manufacturer and model for the target-tree build
1582 t_manufacturer
="tms320dm320"
1583 t_model
="creative-zvm"
1586 92|creativezenvision
)
1588 modelname
="creativezv"
1589 target
="-DCREATIVE_ZV"
1592 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1593 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1594 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1597 appextra
="recorder:gui"
1600 toolset
=$ipodbitmaptools
1601 boottool
="$rootdir/tools/scramble -creative=zenvision"
1602 bootoutput
="rockbox.zvboot"
1603 # architecture, manufacturer and model for the target-tree build
1605 t_manufacturer
="tms320dm320"
1606 t_model
="creative-zvm"
1612 target
="-DSANSA_E200"
1613 memory
=32 # supposedly
1615 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1616 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1617 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1618 output
="rockbox.mi4"
1619 appextra
="recorder:gui"
1622 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1623 bootoutput
="PP5022.mi4"
1624 # toolset is the tools within the tools directory that we build for
1625 # this particular target.
1626 toolset
=$scramblebitmaptools
1627 # architecture, manufacturer and model for the target-tree build
1629 t_manufacturer
="sandisk"
1630 t_model
="sansa-e200"
1634 # the e200R model is pretty much identical to the e200, it only has a
1635 # different option to the scramble tool when building a bootloader and
1636 # makes the bootloader output file name in all lower case.
1639 target
="-DSANSA_E200"
1640 memory
=32 # supposedly
1642 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1643 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1644 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1645 output
="rockbox.mi4"
1646 appextra
="recorder:gui"
1649 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1650 bootoutput
="pp5022.mi4"
1651 # toolset is the tools within the tools directory that we build for
1652 # this particular target.
1653 toolset
=$scramblebitmaptools
1654 # architecture, manufacturer and model for the target-tree build
1656 t_manufacturer
="sandisk"
1657 t_model
="sansa-e200"
1663 target
="-DSANSA_C200"
1664 memory
=32 # supposedly
1666 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1667 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1668 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1669 output
="rockbox.mi4"
1670 appextra
="recorder:gui"
1673 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1674 bootoutput
="firmware.mi4"
1675 # toolset is the tools within the tools directory that we build for
1676 # this particular target.
1677 toolset
=$scramblebitmaptools
1678 # architecture, manufacturer and model for the target-tree build
1680 t_manufacturer
="sandisk"
1681 t_model
="sansa-c200"
1687 target
="-DSANSA_M200"
1690 tool
="$rootdir/tools/scramble -add=m200"
1691 boottool
="$rootdir/tools/scramble -tcc=crc"
1692 bootoutput
="player.rom"
1693 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1694 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1695 output
="rockbox.m200"
1696 appextra
="recorder:gui"
1699 # toolset is the tools within the tools directory that we build for
1700 # this particular target.
1701 toolset
=$tccbitmaptools
1702 # architecture, manufacturer and model for the target-tree build
1704 t_manufacturer
="tcc77x"
1711 target
="-DSANSA_C100"
1712 memory
=32 # unsure, must check
1714 tool
="$rootdir/tools/scramble -add=c100"
1715 boottool
="$rootdir/tools/scramble -tcc=crc"
1716 bootoutput
="player.rom"
1717 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1718 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1719 output
="rockbox.c100"
1720 appextra
="recorder:gui"
1722 # toolset is the tools within the tools directory that we build for
1723 # this particular target.
1724 toolset
=$tccbitmaptools
1725 # architecture, manufacturer and model for the target-tree build
1727 t_manufacturer
="tcc77x"
1734 target
="-DSANSA_CLIP"
1737 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1738 bmp2rb_native
="$bmp2rb_mono"
1739 tool
="$rootdir/tools/scramble -add=clip"
1740 output
="rockbox.sansa"
1741 bootoutput
="bootloader-clip.sansa"
1742 appextra
="recorder:gui"
1745 toolset
=$scramblebitmaptools
1747 t_manufacturer
="as3525"
1748 t_model
="sansa-clip"
1755 target
="-DSANSA_E200V2"
1758 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1759 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1760 tool
="$rootdir/tools/scramble -add=e2v2"
1761 output
="rockbox.sansa"
1762 bootoutput
="bootloader-e200v2.sansa"
1763 appextra
="recorder:gui"
1766 toolset
=$scramblebitmaptools
1768 t_manufacturer
="as3525"
1769 t_model
="sansa-e200v2"
1776 target
="-DSANSA_M200V4"
1779 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1780 bmp2rb_native
="$bmp2rb_mono"
1781 tool
="$rootdir/tools/scramble -add=m2v4"
1782 output
="rockbox.sansa"
1783 bootoutput
="bootloader-m200v4.sansa"
1784 appextra
="recorder:gui"
1787 toolset
=$scramblebitmaptools
1789 t_manufacturer
="as3525"
1790 t_model
="sansa-m200v4"
1797 target
="-DSANSA_FUZE"
1800 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1801 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1802 tool
="$rootdir/tools/scramble -add=fuze"
1803 output
="rockbox.sansa"
1804 bootoutput
="bootloader-fuze.sansa"
1805 appextra
="recorder:gui"
1808 toolset
=$scramblebitmaptools
1810 t_manufacturer
="as3525"
1811 t_model
="sansa-fuze"
1818 target
="-DSANSA_C200V2"
1819 memory
=2 # as per OF diagnosis mode
1821 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1822 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1823 tool
="$rootdir/tools/scramble -add=c2v2"
1824 output
="rockbox.sansa"
1825 bootoutput
="bootloader-c200v2.sansa"
1826 appextra
="recorder:gui"
1829 # toolset is the tools within the tools directory that we build for
1830 # this particular target.
1831 toolset
=$scramblebitmaptools
1832 # architecture, manufacturer and model for the target-tree build
1834 t_manufacturer
="as3525"
1835 t_model
="sansa-c200v2"
1839 echo "Sansa Clipv2 is not yet supported !"
1843 target
="-DSANSA_CLIPV2"
1846 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1847 bmp2rb_native
="$bmp2rb_mono"
1848 tool
="$rootdir/tools/scramble -add=clv2"
1849 output
="rockbox.sansa"
1850 bootoutput
="bootloader-clipv2.sansa"
1851 appextra
="recorder:gui"
1854 toolset
=$scramblebitmaptools
1856 t_manufacturer
="as3525"
1857 t_model
="sansa-clipv2"
1863 target
="-DELIO_TPJ1022"
1866 tool
="$rootdir/tools/scramble -add tpj2"
1867 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1868 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1869 output
="rockbox.elio"
1870 appextra
="recorder:gui"
1873 boottool
="$rootdir/tools/scramble -mi4v2"
1874 bootoutput
="pp5020.mi4"
1875 # toolset is the tools within the tools directory that we build for
1876 # this particular target.
1877 toolset
=$scramblebitmaptools
1878 # architecture, manufacturer and model for the target-tree build
1880 t_manufacturer
="tatung"
1887 target
="-DPHILIPS_SA9200"
1888 memory
=32 # supposedly
1890 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1891 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1892 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1893 output
="rockbox.mi4"
1894 appextra
="recorder:gui"
1897 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1898 bootoutput
="FWImage.ebn"
1899 # toolset is the tools within the tools directory that we build for
1900 # this particular target.
1901 toolset
=$scramblebitmaptools
1902 # architecture, manufacturer and model for the target-tree build
1904 t_manufacturer
="philips"
1911 target
="-DPHILIPS_HDD1630"
1912 memory
=32 # supposedly
1914 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1915 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1916 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1917 output
="rockbox.mi4"
1918 appextra
="recorder:gui"
1921 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1922 bootoutput
="FWImage.ebn"
1923 # toolset is the tools within the tools directory that we build for
1924 # this particular target.
1925 toolset
=$scramblebitmaptools
1926 # architecture, manufacturer and model for the target-tree build
1928 t_manufacturer
="philips"
1934 modelname
="meizum6sl"
1935 target
="-DMEIZU_M6SL"
1939 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1940 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1941 output
="rockbox.meizu"
1942 appextra
="recorder:gui"
1945 toolset
=$genericbitmaptools
1947 bootoutput
="rockboot.ebn"
1948 # architecture, manufacturer and model for the target-tree build
1950 t_manufacturer
="s5l8700"
1951 t_model
="meizu-m6sl"
1956 modelname
="meizum6sp"
1957 target
="-DMEIZU_M6SP"
1961 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1962 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1963 output
="rockbox.meizu"
1964 appextra
="recorder:gui"
1967 toolset
=$genericbitmaptools
1969 bootoutput
="rockboot.ebn"
1970 # architecture, manufacturer and model for the target-tree build
1972 t_manufacturer
="s5l8700"
1973 t_model
="meizu-m6sp"
1983 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1984 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1985 output
="rockbox.meizu"
1986 appextra
="recorder:gui"
1989 toolset
=$genericbitmaptools
1991 bootoutput
="rockboot.ebn"
1992 # architecture, manufacturer and model for the target-tree build
1994 t_manufacturer
="s5l8700"
2000 modelname
="ondavx747"
2001 target
="-DONDA_VX747"
2004 tool
="$rootdir/tools/scramble -add=x747"
2005 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2006 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2007 output
="rockbox.vx747"
2008 appextra
="recorder:gui"
2011 toolset
=$genericbitmaptools
2013 bootoutput
="rockboot.vx747"
2014 # architecture, manufacturer and model for the target-tree build
2016 t_manufacturer
="ingenic_jz47xx"
2017 t_model
="onda_vx747"
2022 modelname
="ondavx767"
2023 target
="-DONDA_VX767"
2027 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2028 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2029 output
="rockbox.vx767"
2030 appextra
="recorder:gui"
2033 toolset
=$genericbitmaptools
2035 bootoutput
="rockboot.vx767"
2036 # architecture, manufacturer and model for the target-tree build
2038 t_manufacturer
="ingenic_jz47xx"
2039 t_model
="onda_vx767"
2044 modelname
="ondavx747p"
2045 target
="-DONDA_VX747P"
2049 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2050 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2051 output
="rockbox.vx747p"
2052 appextra
="recorder:gui"
2055 toolset
=$genericbitmaptools
2057 bootoutput
="rockboot.vx747p"
2058 # architecture, manufacturer and model for the target-tree build
2060 t_manufacturer
="ingenic_jz47xx"
2061 t_model
="onda_vx747"
2066 modelname
="lyre_proto1"
2067 target
="-DLYRE_PROTO1"
2071 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2072 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2073 output
="rockbox.lyre"
2074 appextra
="recorder:gui"
2077 toolset
=$scramblebitmaptools
2079 bootoutput
="bootloader-proto1.lyre"
2080 # architecture, manufacturer and model for the target-tree build
2082 t_manufacturer
="at91sam"
2083 t_model
="lyre_proto1"
2089 target
="-DSAMSUNG_YH820"
2092 tool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
2093 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2094 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2095 output
="rockbox.mi4"
2096 appextra
="recorder:gui"
2099 boottool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
2100 bootoutput
="FW_YH820.mi4"
2101 # toolset is the tools within the tools directory that we build for
2102 # this particular target.
2103 toolset
=$scramblebitmaptools
2104 # architecture, manufacturer and model for the target-tree build
2106 t_manufacturer
="samsung"
2113 target
="-DSAMSUNG_YH920"
2116 tool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
2117 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2118 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
2119 output
="rockbox.mi4"
2120 appextra
="recorder:gui"
2123 boottool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
2124 bootoutput
="PP5020.mi4"
2125 # toolset is the tools within the tools directory that we build for
2126 # this particular target.
2127 toolset
=$scramblebitmaptools
2128 # architecture, manufacturer and model for the target-tree build
2130 t_manufacturer
="samsung"
2137 target
="-DSAMSUNG_YH925"
2140 tool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
2141 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2142 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2143 output
="rockbox.mi4"
2144 appextra
="recorder:gui"
2147 boottool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
2148 bootoutput
="FW_YH925.mi4"
2149 # toolset is the tools within the tools directory that we build for
2150 # this particular target.
2151 toolset
=$scramblebitmaptools
2152 # architecture, manufacturer and model for the target-tree build
2154 t_manufacturer
="samsung"
2159 echo "Please select a supported target platform!"
2165 echo "Platform set to $modelname"
2169 ############################################################################
2170 # Amount of memory, for those that can differ. They have $memory unset at
2174 if [ -z "$memory" ]; then
2177 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2178 if [ "1" != `parse_args --ram` ]; then
2179 size
=`parse_args --ram`;
2193 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2194 if [ "1" != `parse_args --ram` ]; then
2195 size
=`parse_args --ram`;
2209 echo "Memory size selected: $memory MB"
2214 ##################################################################
2215 # Figure out build "type"
2218 # the ifp7x0 is the only platform that supports building a gdb stub like
2222 gdbstub
="(G)DB stub, "
2225 gdbstub
="(I)nstaller, "
2228 gdbstub
="(E)raser, "
2233 if [ "1" != `parse_args --type` ]; then
2234 btype
=`parse_args --type`;
2236 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2242 appsdir
='\$(ROOTDIR)/bootloader'
2244 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2246 echo "e200R-installer build selected"
2249 appsdir
='\$(ROOTDIR)/bootloader'
2251 echo "C2(4)0 or C2(5)0"
2255 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2256 echo "c240 eraser build selected"
2259 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2260 echo "c240 eraser build selected"
2264 echo "c200 eraser build selected"
2267 if test $t_manufacturer = "archos"; then
2268 # Archos SH-based players do this somewhat differently for
2270 appsdir
='\$(ROOTDIR)/flash/bootbox'
2273 appsdir
='\$(ROOTDIR)/bootloader'
2276 if test -n "$boottool"; then
2279 if test -n "$bootoutput"; then
2283 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2285 echo "Bootloader build selected"
2290 extradefines
="-DSIMULATOR"
2293 echo "Simulator build selected"
2296 echo "Advanced build selected"
2300 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2301 appsdir
='\$(ROOTDIR)/gdb'
2310 echo "GDB stub build selected"
2315 echo "Manual build selected"
2318 if [ "$modelname" = "e200r" ]; then
2319 echo "Do not use the e200R target for regular builds. Use e200 instead."
2323 btype
="N" # set it explicitly since RET only gets here as well
2324 echo "Normal build selected"
2328 # to be able running "make manual" from non-manual configuration
2331 manualdev
="recorderv2fm"
2334 manualdev
="recorderv2fm"
2340 manualdev
="ipodmini"
2343 manualdev
=$modelname
2347 if [ -z "$debug" ]; then
2348 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2351 echo "Using source code root directory: $rootdir"
2353 # this was once possible to change at build-time, but no more:
2358 if [ "yes" = "$simulator" ]; then
2359 # setup compiler and things for simulator
2362 if [ -d "simdisk" ]; then
2363 echo "Subdirectory 'simdisk' already present"
2366 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2370 # Now, figure out version number of the (gcc) compiler we are about to use
2371 gccver
=`$CC -dumpversion`;
2373 # figure out the binutil version too and display it, mostly for the build
2374 # system etc to be able to see it easier
2375 if [ $uname = "Darwin" ]; then
2376 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2378 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2381 if [ -z "$gccver" ]; then
2382 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2383 echo "WARNING: this may cause your build to fail since we cannot do the"
2384 echo "WARNING: checks we want now."
2387 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2390 num1
=`echo $gccver | cut -d . -f1`
2391 num2
=`echo $gccver | cut -d . -f2`
2392 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2399 echo "Using $CC $gccver ($gccnum)"
2401 if test "$gccnum" -ge "400"; then
2402 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2403 # so we ignore that warnings for now
2405 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2408 if test "$gccnum" -ge "401"; then
2409 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2410 # will break strict-aliasing rules"
2412 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2415 if test "$gccnum" -ge "402"; then
2416 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2417 # and later would throw it for several valid cases
2418 GCCOPTS
="$GCCOPTS -Wno-override-init"
2426 # cross-compile for win32
2429 # Verify that the cross-compiler is of a recommended version!
2430 if test "$gccver" != "$gccchoice"; then
2431 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2432 echo "WARNING: version $gccchoice!"
2433 echo "WARNING: This may cause your build to fail since it may be a version"
2434 echo "WARNING: that isn't functional or known to not be the best choice."
2435 echo "WARNING: If you suffer from build problems, you know that this is"
2436 echo "WARNING: a likely source for them..."
2444 echo "Using $LD $ldver"
2446 # check the compiler for SH platforms
2447 if test "$CC" = "sh-elf-gcc"; then
2448 if test "$gccnum" -lt "400"; then
2449 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2450 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2452 # figure out patch status
2453 gccpatch
=`$CC --version`;
2455 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2456 echo "gcc $gccver is rockbox patched"
2457 # then convert -O to -Os to get smaller binaries!
2458 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2460 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2461 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2466 if test "$CC" = "m68k-elf-gcc"; then
2467 # convert -O to -Os to get smaller binaries!
2468 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2471 if [ "1" != `parse_args --ccache` ]; then
2472 echo "Enable ccache for building"
2475 if [ "1" = `parse_args --no-ccache` ]; then
2476 ccache
=`findtool ccache`
2477 if test -n "$ccache"; then
2478 echo "Found and uses ccache ($ccache)"
2483 # figure out the full path to the various commands if possible
2484 HOSTCC
=`findtool gcc --lit`
2485 HOSTAR
=`findtool ar --lit`
2486 CC
=`findtool ${CC} --lit`
2487 LD
=`findtool ${AR} --lit`
2488 AR
=`findtool ${AR} --lit`
2489 AS
=`findtool ${AS} --lit`
2490 OC
=`findtool ${OC} --lit`
2491 WINDRES
=`findtool ${WINDRES} --lit`
2492 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2493 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2494 RANLIB
=`findtool ${RANLIB} --lit`
2496 if test -n "$ccache"; then
2500 if test "X$endian" = "Xbig"; then
2501 defendian
="ROCKBOX_BIG_ENDIAN"
2503 defendian
="ROCKBOX_LITTLE_ENDIAN"
2506 if [ "1" != `parse_args --rbdir` ]; then
2507 rbdir
=`parse_args --rbdir`;
2508 echo "Using alternate rockbox dir: ${rbdir}"
2512 -e "s,@ENDIAN@,${defendian},g" \
2513 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2514 -e "s,@config_rtc@,$config_rtc,g" \
2515 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2516 -e "s,@RBDIR@,${rbdir},g" \
2517 -e "s,@have_backlight@,$have_backlight,g" \
2519 /* This header was made by configure */
2520 #ifndef __BUILD_AUTOCONF_H
2521 #define __BUILD_AUTOCONF_H
2523 /* Define endianess for the target or simulator platform */
2526 /* Define this if you build rockbox to support the logf logging and display */
2527 #undef ROCKBOX_HAS_LOGF
2529 /* optional defines for RTC mod for h1x0 */
2533 /* optional define for a backlight modded Ondio */
2536 /* root of Rockbox */
2537 #define ROCKBOX_DIR "/@RBDIR@"
2539 #endif /* __BUILD_AUTOCONF_H */
2542 if test -n "$t_cpu"; then
2543 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2544 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2545 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2549 if test "$simulator" = "yes"; then
2550 # add simul make stuff on the #SIMUL# line
2551 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2552 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2554 # delete the lines that match
2555 simmagic1
='/@SIMUL1@/D'
2556 simmagic2
='/@SIMUL2@/D'
2559 if test "$swcodec" = "yes"; then
2560 voicetoolset
="rbspeexenc voicefont wavtrim"
2562 voicetoolset
="voicefont wavtrim"
2565 if test "$apps" = "apps"; then
2566 # only when we build "real" apps we build the .lng files
2570 #### Fix the cmdline ###
2571 if test -n "$ccache"; then
2575 cmdline
="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2581 -e "s,@ROOTDIR@,${rootdir},g" \
2582 -e "s,@DEBUG@,${debug},g" \
2583 -e "s,@MEMORY@,${memory},g" \
2584 -e "s,@TARGET_ID@,${target_id},g" \
2585 -e "s,@TARGET@,${target},g" \
2586 -e "s,@CPU@,${t_cpu},g" \
2587 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2588 -e "s,@MODELNAME@,${modelname},g" \
2589 -e "s,@LANGUAGE@,${language},g" \
2590 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2591 -e "s,@PWD@,${pwd},g" \
2592 -e "s,@HOSTCC@,${HOSTCC},g" \
2593 -e "s,@HOSTAR@,${HOSTAR},g" \
2594 -e "s,@CC@,${CC},g" \
2595 -e "s,@LD@,${LD},g" \
2596 -e "s,@AR@,${AR},g" \
2597 -e "s,@AS@,${AS},g" \
2598 -e "s,@OC@,${OC},g" \
2599 -e "s,@WINDRES@,${WINDRES},g" \
2600 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2601 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2602 -e "s,@RANLIB@,${RANLIB},g" \
2603 -e "s,@TOOL@,${tool},g" \
2604 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2605 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2606 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2607 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2608 -e "s,@OUTPUT@,${output},g" \
2609 -e "s,@APPEXTRA@,${appextra},g" \
2610 -e "s,@ARCHOSROM@,${archosrom},g" \
2611 -e "s,@FLASHFILE@,${flash},g" \
2612 -e "s,@PLUGINS@,${plugins},g" \
2613 -e "s,@CODECS@,${swcodec},g" \
2614 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2615 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2616 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2617 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2618 -e "s!@LDOPTS@!${LDOPTS}!g" \
2619 -e "s,@LOADADDRESS@,${loadaddress},g" \
2620 -e "s,@EXTRADEF@,${extradefines},g" \
2621 -e "s,@APPSDIR@,${appsdir},g" \
2622 -e "s,@FIRMDIR@,${firmdir},g" \
2623 -e "s,@TOOLSDIR@,${toolsdir},g" \
2624 -e "s,@APPS@,${apps},g" \
2625 -e "s,@SIMVER@,${simver},g" \
2626 -e "s,@GCCVER@,${gccver},g" \
2627 -e "s,@GCCNUM@,${gccnum},g" \
2628 -e "s,@UNAME@,${uname},g" \
2629 -e "s,@ENDIAN@,${defendian},g" \
2630 -e "s,@TOOLSET@,${toolset},g" \
2633 -e "s,@MANUALDEV@,${manualdev},g" \
2634 -e "s,@ENCODER@,${ENC_CMD},g" \
2635 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2636 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2637 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2638 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2639 -e "s,@LANGS@,${buildlangs},g" \
2640 -e "s,@USE_ELF@,${USE_ELF},g" \
2641 -e "s,@RBDIR@,${rbdir},g" \
2642 -e "s,@PREFIX@,$PREFIX,g" \
2643 -e "s,@CMDLINE@,$cmdline,g" \
2645 ## Automatically generated. http://www.rockbox.org/
2647 export ROOTDIR=@ROOTDIR@
2648 export FIRMDIR=@FIRMDIR@
2649 export APPSDIR=@APPSDIR@
2650 export TOOLSDIR=@TOOLSDIR@
2651 export DOCSDIR=\$(ROOTDIR)/docs
2652 export MANUALDIR=\${ROOTDIR}/manual
2653 export DEBUG=@DEBUG@
2654 export MODELNAME=@MODELNAME@
2655 export ARCHOSROM=@ARCHOSROM@
2656 export FLASHFILE=@FLASHFILE@
2657 export TARGET_ID=@TARGET_ID@
2658 export TARGET=@TARGET@
2660 export MANUFACTURER=@MANUFACTURER@
2662 export BUILDDIR=@PWD@
2663 export LANGUAGE=@LANGUAGE@
2664 export VOICELANGUAGE=@VOICELANGUAGE@
2665 export MEMORYSIZE=@MEMORY@
2666 export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
2667 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2668 export MKFIRMWARE=@TOOL@
2669 export BMP2RB_MONO=@BMP2RB_MONO@
2670 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2671 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2672 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2673 export BINARY=@OUTPUT@
2674 export APPEXTRA=@APPEXTRA@
2675 export ENABLEDPLUGINS=@PLUGINS@
2676 export SOFTWARECODECS=@CODECS@
2677 export EXTRA_DEFINES=@EXTRADEF@
2678 export HOSTCC=@HOSTCC@
2679 export HOSTAR=@HOSTAR@
2685 export WINDRES=@WINDRES@
2686 export DLLTOOL=@DLLTOOL@
2687 export DLLWRAP=@DLLWRAP@
2688 export RANLIB=@RANLIB@
2689 export PREFIX=@PREFIX@
2690 export PROFILE_OPTS=@PROFILE_OPTS@
2691 export SIMVER=@SIMVER@
2692 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2693 export GCCOPTS=@GCCOPTS@
2694 export TARGET_INC=@TARGET_INC@
2695 export LOADADDRESS=@LOADADDRESS@
2696 export SHARED_FLAG=@SHARED_FLAG@
2697 export LDOPTS=@LDOPTS@
2698 export GCCVER=@GCCVER@
2699 export GCCNUM=@GCCNUM@
2700 export UNAME=@UNAME@
2701 export MANUALDEV=@MANUALDEV@
2702 export TTS_OPTS=@TTS_OPTS@
2703 export TTS_ENGINE=@TTS_ENGINE@
2704 export ENC_OPTS=@ENC_OPTS@
2705 export ENCODER=@ENCODER@
2706 export USE_ELF=@USE_ELF@
2707 export RBDIR=@RBDIR@
2709 CONFIGURE_OPTIONS=@CMDLINE@
2711 include \$(TOOLSDIR)/root.make
2715 echo "Created Makefile"