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" -a "$t_manufacturer" != "as3525"; 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-long-calls"
308 GCCOPTS
="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
309 GCCOPTIMIZE
="-fomit-frame-pointer"
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 [ "$t_model" = "ondio" ]; then
325 printf ", (B)acklight MOD"
327 if [ "$modelname" = "m5" ]; then
328 printf ", (F)M radio MOD"
330 if [ "$modelname" = "h120" ]; then
337 while [ $cont = "1" ]; do
343 if [ "yes" = "$profile" ]; then
344 echo "Debug is incompatible with profiling"
351 echo "logf() support enabled"
355 echo "Simulator build enabled"
359 if [ "yes" = "$use_debug" ]; then
360 echo "Profiling is incompatible with debug"
362 echo "Profiling support is enabled"
367 echo "Voice build selected"
371 if [ "$memory" = "2" ]; then
373 echo "Memory size selected: 8MB"
379 if [ "$t_model" = "ondio" ]; then
380 have_backlight
="#define HAVE_BACKLIGHT"
381 echo "Backlight functions enabled"
387 if [ "$modelname" = "m5" ]; then
388 have_fmradio_in
="#define HAVE_FMRADIO_IN"
389 echo "FM radio functions enabled"
395 if [ "$modelname" = "h120" ]; then
396 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
397 have_rtc_alarm
="#define HAVE_RTC_ALARM"
398 echo "RTC functions enabled (DS1339/DS3231)"
410 if [ "yes" = "$voice" ]; then
411 # Ask about languages to build
412 echo "Select a number for the language to use (default is english)"
413 # The multiple-language feature is currently broken
414 # echo "You may enter a comma-separated list of languages to build"
417 voicelanguage
=`whichlang`
419 if [ -z "$voicelanguage" ]; then
421 voicelanguage
="english"
423 echo "Voice language set to $voicelanguage"
425 # Configure encoder and TTS engine for each language
426 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
427 voiceconfig
"$thislang"
430 if [ "yes" = "$use_debug" ]; then
432 GCCOPTS
="$GCCOPTS -g -DDEBUG"
434 if [ "yes" = "$logf" ]; then
435 use_logf
="#define ROCKBOX_HAS_LOGF 1"
437 if [ "yes" = "$simulator" ]; then
439 extradefines
="$extradefines -DSIMULATOR"
443 if [ "yes" = "$profile" ]; then
444 extradefines
="$extradefines -DRB_PROFILE"
445 PROFILE_OPTS
="-finstrument-functions"
449 # Configure voice settings
452 echo "Building $thislang voice for $modelname. Select options"
455 if [ -n "`findtool flite`" ]; then
459 DEFAULT_TTS_OPTS
=$FLITE_OPTS
460 DEFAULT_NOISEFLOOR
="500"
463 if [ -n "`findtool espeak`" ]; then
467 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
468 DEFAULT_NOISEFLOOR
="500"
471 if [ -n "`findtool festival`" ]; then
472 FESTIVAL
="(F)estival "
475 FESTIVAL_OPTS
="--language italian"
478 FESTIVAL_OPTS
="--language spanish"
481 FESTIVAL_OPTS
="--language finnish"
484 FESTIVAL_OPTS
="--language czech"
490 DEFAULT_TTS
="festival"
491 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
492 DEFAULT_NOISEFLOOR
="500"
495 if [ -n "`findtool swift`" ]; then
499 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
500 DEFAULT_NOISEFLOOR
="500"
503 # Allow SAPI if Windows is in use
504 if [ -n "`findtool winver`" ]; then
508 DEFAULT_TTS_OPTS
=$SAPI_OPTS
509 DEFAULT_NOISEFLOOR
="500"
513 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
514 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
518 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
523 NOISEFLOOR
="500" # TODO: check this value
529 TTS_OPTS
=$ESPEAK_OPTS
532 TTS_ENGINE
="festival"
534 TTS_OPTS
=$FESTIVAL_OPTS
547 TTS_ENGINE
=$DEFAULT_TTS
548 TTS_OPTS
=$DEFAULT_TTS_OPTS
549 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
551 echo "Using $TTS_ENGINE for TTS"
553 # Select which voice to use for Festival
554 if [ "$TTS_ENGINE" = "festival" ]; then
556 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
557 if [ "$i" = "1" ]; then
558 TTS_FESTIVAL_VOICE
="$voice" # Default choice
560 printf "%3d. %s\n" "$i" "$voice"
563 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
566 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
567 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
568 TTS_FESTIVAL_VOICE
="$voice"
572 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
573 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
576 # Allow the user to input manual commandline options
577 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
578 USER_TTS_OPTS
=`input`
579 if [ -n "$USER_TTS_OPTS" ]; then
580 TTS_OPTS
="$USER_TTS_OPTS"
585 if [ "$swcodec" = "yes" ]; then
588 ENC_OPTS
="-q 4 -c 10"
590 if [ -n "`findtool lame`" ]; then
593 ENC_OPTS
="--resample 12 -t -m m -h -V 9.999 -S -B 64 --vbr-new"
595 echo "You need LAME in the system path to build voice files for"
596 echo "HWCODEC targets."
601 echo "Using $ENCODER for encoding voice clips"
603 # Allow the user to input manual commandline options
604 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
605 USER_ENC_OPTS
=`input`
606 if [ -n "$USER_ENC_OPTS" ]; then
607 ENC_OPTS
=$USER_ENC_OPTS
611 if [ -n "`findtool cygpath`" ]; then
612 TEMPDIR
=`cygpath . -a -w`
617 # figure out which languages that are around
618 for file in $rootdir/apps
/lang
/*.lang
; do
619 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
620 langs
="$langs $clean"
624 for one
in $langs; do
634 # Allow the user to pass a comma-separated list of langauges
635 for thispick
in `echo $pick | sed 's/,/ /g'`; do
637 for one
in $langs; do
638 # Accept both the language number and name
639 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
640 if [ "$output" = "" ]; then
654 if test "$opt" = "--help"; then
655 echo "Rockbox configure script."
656 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
657 echo "Do *NOT* run this within the tools directory!"
660 Usage: configure [OPTION]...
662 --target=TARGET Sets the target, TARGET can be either the target ID or
663 corresponding string. Run without this option to see all
666 --ram=RAM Sets the RAM for certain targets. Even though any number
667 is accepted, not every number is correct. The default
668 value will be applied, if you entered a wrong number
669 (which depends on the target). Watch the output. Run
670 without this option if you are not sure which the right
673 --type=TYPE Sets the build type. The shortcut is also valid.
674 Run without this option to see available types.
676 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
677 This is useful for having multiple alternate builds on
678 your device that you can load with ROLO. However as the
679 bootloader looks for .rockbox you won't be able to boot
682 --ccache Enable ccache use (done by default these days)
683 --no-ccache Disable ccache use
684 --help Shows this message (must not be used with other options)
691 if test -r "configure"; then
692 # this is a check for a configure script in the current directory, it there
693 # is one, try to figure out if it is this one!
695 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
696 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
697 echo "It will only cause you pain and grief. Instead do this:"
700 echo " mkdir build-dir"
702 echo " ../tools/configure"
704 echo "Much happiness will arise from this. Enjoy"
709 # get our current directory
712 if { echo $pwd |
grep " "; } then
713 echo "You're running this script in a path that contains space. The build"
714 echo "system is unfortunately not clever enough to deal with this. Please"
715 echo "run the script from a different path, rename the path or fix the build"
720 if [ -z "$rootdir" ]; then
721 ##################################################################
722 # Figure out where the source code root is!
724 rootdir
=`dirname $0`/..
/
726 #####################################################################
727 # Convert the possibly relative directory name to an absolute version
733 # cd back to the build dir
738 appsdir
='\$(ROOTDIR)/apps'
739 firmdir
='\$(ROOTDIR)/firmware'
740 toolsdir
='\$(ROOTDIR)/tools'
743 ##################################################################
744 # Figure out target platform
747 if [ "1" != `parse_args --target` ]; then
748 buildfor
=`parse_args --target`;
750 echo "Enter target platform:"
752 ==Archos== ==iriver== ==Apple iPod==
753 0) Player/Studio 10) H120/H140 20) Color/Photo
754 1) Recorder 11) H320/H340 21) Nano
755 2) FM Recorder 12) iHP-100/110/115 22) Video
756 3) Recorder v2 13) iFP-790 23) 3G
757 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
758 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
760 ==Toshiba== 27) 1G, 2G
761 ==Cowon/iAudio== 40) Gigabeat F
762 30) X5/X5V/X5L 41) Gigabeat S ==SanDisk==
763 31) M5/M5L 50) Sansa e200
764 32) 7 ==Olympus= 51) Sansa e200R
765 33) D2 70) M:Robe 500 52) Sansa c200
766 34) M3/M3L 71) M:Robe 100 53) Sansa m200
768 ==Creative== ==Philips== 55) Sansa Clip
769 90) Zen Vision:M 30GB 100) GoGear SA9200 56) Sansa e200v2
770 91) Zen Vision:M 60GB 101) GoGear HDD1630/ 57) Sansa m200v4
771 92) Zen Vision HDD1830 58) Sansa Fuze
773 ==Onda== ==Meizu== 60) Sansa Clipv2
775 121) VX767 111) M6SP ==Logik==
776 122) VX747+ 112) M3 80) DAX 1GB MP3/DAB
778 ==Samsung== ==Tatung== ==Lyre project==
779 140) YH-820 150) Elio TPJ-1022 130) Lyre proto 1
787 # Set of tools built for all target platforms:
788 toolset
="rdf2binary convbdf codepages"
790 # Toolsets for some target families:
791 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
792 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
793 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
794 ipodbitmaptools
="$toolset scramble bmp2rb"
795 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
796 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
797 # generic is used by IFP, Meizu and Onda
798 genericbitmaptools
="$toolset bmp2rb"
799 # scramble is used by all other targets
800 scramblebitmaptools
="$genericbitmaptools scramble"
803 # ---- For each target ----
806 # target_id: a unique number identifying this target, IS NOT the menu number.
807 # Just use the currently highest number+1 when you add a new
809 # modelname: short model name used all over to identify this target
810 # memory: number of megabytes of RAM this target has. If the amount can
811 # be selected by the size prompt, let memory be unset here
812 # target: -Ddefine passed to the build commands to make the correct
813 # config-*.h file get included etc
814 # tool: the tool that takes a plain binary and converts that into a
815 # working "firmware" file for your target
816 # output: the final output file name
817 # boottool: the tool that takes a plain binary and generates a bootloader
818 # file for your target (or blank to use $tool)
819 # bootoutput:the final output file name for the bootloader (or blank to use
821 # appextra: passed to the APPEXTRA variable in the Makefiles.
822 # TODO: add proper explanation
823 # archosrom: used only for Archos targets that build a special flashable .ucl
825 # flash: name of output for flashing, for targets where there's a special
826 # file output for this.
827 # plugins: set to 'yes' to build the plugins. Early development builds can
828 # set this to no in the early stages to have an easier life for a
830 # swcodec: set 'yes' on swcodec targets
831 # toolset: lists what particular tools in the tools/ directory that this
832 # target needs to have built prior to building Rockbox
835 # *cc: sets up gcc and compiler options for your target builds. Note
836 # that if you select a simulator build, the compiler selection is
837 # overridden later in the script.
844 target
="-DARCHOS_PLAYER"
846 tool
="$rootdir/tools/scramble"
848 appextra
="player:gui"
849 archosrom
="$pwd/rombox.ucl"
850 flash
="$pwd/rockbox.ucl"
854 # toolset is the tools within the tools directory that we build for
855 # this particular target.
856 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
858 # Note: the convbdf is present in the toolset just because: 1) the
859 # firmware/Makefile assumes it is present always, and 2) we will need it when we
860 # build the player simulator
863 t_manufacturer
="archos"
870 target
="-DARCHOS_RECORDER"
872 tool
="$rootdir/tools/scramble"
873 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
874 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
876 appextra
="recorder:gui"
877 #archosrom="$pwd/rombox.ucl"
878 flash
="$pwd/rockbox.ucl"
881 # toolset is the tools within the tools directory that we build for
882 # this particular target.
883 toolset
=$archosbitmaptools
885 t_manufacturer
="archos"
891 modelname
="fmrecorder"
892 target
="-DARCHOS_FMRECORDER"
894 tool
="$rootdir/tools/scramble -fm"
895 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
896 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
898 appextra
="recorder:gui"
899 #archosrom="$pwd/rombox.ucl"
900 flash
="$pwd/rockbox.ucl"
903 # toolset is the tools within the tools directory that we build for
904 # this particular target.
905 toolset
=$archosbitmaptools
907 t_manufacturer
="archos"
913 modelname
="recorderv2"
914 target
="-DARCHOS_RECORDERV2"
916 tool
="$rootdir/tools/scramble -v2"
917 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
918 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
920 appextra
="recorder:gui"
921 #archosrom="$pwd/rombox.ucl"
922 flash
="$pwd/rockbox.ucl"
925 # toolset is the tools within the tools directory that we build for
926 # this particular target.
927 toolset
=$archosbitmaptools
929 t_manufacturer
="archos"
936 target
="-DARCHOS_ONDIOSP"
938 tool
="$rootdir/tools/scramble -osp"
939 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
940 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
942 appextra
="recorder:gui"
943 archosrom
="$pwd/rombox.ucl"
944 flash
="$pwd/rockbox.ucl"
947 # toolset is the tools within the tools directory that we build for
948 # this particular target.
949 toolset
=$archosbitmaptools
951 t_manufacturer
="archos"
958 target
="-DARCHOS_ONDIOFM"
960 tool
="$rootdir/tools/scramble -ofm"
961 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
962 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
964 appextra
="recorder:gui"
965 #archosrom="$pwd/rombox.ucl"
966 flash
="$pwd/rockbox.ucl"
969 toolset
=$archosbitmaptools
971 t_manufacturer
="archos"
978 target
="-DARCHOS_AV300"
981 tool
="$rootdir/tools/scramble -mm=C"
982 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
983 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
985 appextra
="recorder:gui"
988 # toolset is the tools within the tools directory that we build for
989 # this particular target.
990 toolset
="$toolset scramble descramble bmp2rb"
991 # architecture, manufacturer and model for the target-tree build
993 t_manufacturer
="archos"
1000 target
="-DIRIVER_H120"
1003 tool
="$rootdir/tools/scramble -add=h120"
1004 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1005 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1006 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1007 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1008 output
="rockbox.iriver"
1009 appextra
="recorder:gui"
1010 flash
="$pwd/rombox.iriver"
1013 # toolset is the tools within the tools directory that we build for
1014 # this particular target.
1015 toolset
=$iriverbitmaptools
1017 t_manufacturer
="iriver"
1024 target
="-DIRIVER_H300"
1027 tool
="$rootdir/tools/scramble -add=h300"
1028 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1029 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1030 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1031 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1032 output
="rockbox.iriver"
1033 appextra
="recorder:gui"
1036 # toolset is the tools within the tools directory that we build for
1037 # this particular target.
1038 toolset
=$iriverbitmaptools
1040 t_manufacturer
="iriver"
1047 target
="-DIRIVER_H100"
1050 tool
="$rootdir/tools/scramble -add=h100"
1051 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1052 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1053 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1054 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1055 output
="rockbox.iriver"
1056 appextra
="recorder:gui"
1057 flash
="$pwd/rombox.iriver"
1060 # toolset is the tools within the tools directory that we build for
1061 # this particular target.
1062 toolset
=$iriverbitmaptools
1064 t_manufacturer
="iriver"
1071 target
="-DIRIVER_IFP7XX"
1075 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1076 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1077 output
="rockbox.wma"
1078 appextra
="recorder:gui"
1081 # toolset is the tools within the tools directory that we build for
1082 # this particular target.
1083 toolset
=$genericbitmaptools
1085 t_manufacturer
="pnx0101"
1086 t_model
="iriver-ifp7xx"
1092 target
="-DIRIVER_H10"
1095 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1096 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1097 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1098 output
="rockbox.mi4"
1099 appextra
="recorder:gui"
1102 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1103 bootoutput
="H10_20GC.mi4"
1104 # toolset is the tools within the tools directory that we build for
1105 # this particular target.
1106 toolset
=$scramblebitmaptools
1107 # architecture, manufacturer and model for the target-tree build
1109 t_manufacturer
="iriver"
1116 target
="-DIRIVER_H10_5GB"
1119 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1120 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1121 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1122 output
="rockbox.mi4"
1123 appextra
="recorder:gui"
1126 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1127 bootoutput
="H10.mi4"
1128 # toolset is the tools within the tools directory that we build for
1129 # this particular target.
1130 toolset
=$scramblebitmaptools
1131 # architecture, manufacturer and model for the target-tree build
1133 t_manufacturer
="iriver"
1139 modelname
="ipodcolor"
1140 target
="-DIPOD_COLOR"
1143 tool
="$rootdir/tools/scramble -add=ipco"
1144 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1145 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1146 output
="rockbox.ipod"
1147 appextra
="recorder:gui"
1150 bootoutput
="bootloader-$modelname.ipod"
1151 # toolset is the tools within the tools directory that we build for
1152 # this particular target.
1153 toolset
=$ipodbitmaptools
1154 # architecture, manufacturer and model for the target-tree build
1156 t_manufacturer
="ipod"
1162 modelname
="ipodnano"
1163 target
="-DIPOD_NANO"
1166 tool
="$rootdir/tools/scramble -add=nano"
1167 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1168 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1169 output
="rockbox.ipod"
1170 appextra
="recorder:gui"
1173 bootoutput
="bootloader-$modelname.ipod"
1174 # toolset is the tools within the tools directory that we build for
1175 # this particular target.
1176 toolset
=$ipodbitmaptools
1177 # architecture, manufacturer and model for the target-tree build
1179 t_manufacturer
="ipod"
1185 modelname
="ipodvideo"
1186 target
="-DIPOD_VIDEO"
1188 tool
="$rootdir/tools/scramble -add=ipvd"
1189 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1190 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1191 output
="rockbox.ipod"
1192 appextra
="recorder:gui"
1195 bootoutput
="bootloader-$modelname.ipod"
1196 # toolset is the tools within the tools directory that we build for
1197 # this particular target.
1198 toolset
=$ipodbitmaptools
1199 # architecture, manufacturer and model for the target-tree build
1201 t_manufacturer
="ipod"
1211 tool
="$rootdir/tools/scramble -add=ip3g"
1212 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1213 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1214 output
="rockbox.ipod"
1215 appextra
="recorder:gui"
1218 bootoutput
="bootloader-$modelname.ipod"
1219 # toolset is the tools within the tools directory that we build for
1220 # this particular target.
1221 toolset
=$ipodbitmaptools
1222 # architecture, manufacturer and model for the target-tree build
1224 t_manufacturer
="ipod"
1234 tool
="$rootdir/tools/scramble -add=ip4g"
1235 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1236 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1237 output
="rockbox.ipod"
1238 appextra
="recorder:gui"
1241 bootoutput
="bootloader-$modelname.ipod"
1242 # toolset is the tools within the tools directory that we build for
1243 # this particular target.
1244 toolset
=$ipodbitmaptools
1245 # architecture, manufacturer and model for the target-tree build
1247 t_manufacturer
="ipod"
1253 modelname
="ipodmini"
1254 target
="-DIPOD_MINI"
1257 tool
="$rootdir/tools/scramble -add=mini"
1258 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1259 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1260 output
="rockbox.ipod"
1261 appextra
="recorder:gui"
1264 bootoutput
="bootloader-$modelname.ipod"
1265 # toolset is the tools within the tools directory that we build for
1266 # this particular target.
1267 toolset
=$ipodbitmaptools
1268 # architecture, manufacturer and model for the target-tree build
1270 t_manufacturer
="ipod"
1276 modelname
="ipodmini2g"
1277 target
="-DIPOD_MINI2G"
1280 tool
="$rootdir/tools/scramble -add=mn2g"
1281 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1282 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1283 output
="rockbox.ipod"
1284 appextra
="recorder:gui"
1287 bootoutput
="bootloader-$modelname.ipod"
1288 # toolset is the tools within the tools directory that we build for
1289 # this particular target.
1290 toolset
=$ipodbitmaptools
1291 # architecture, manufacturer and model for the target-tree build
1293 t_manufacturer
="ipod"
1299 modelname
="ipod1g2g"
1300 target
="-DIPOD_1G2G"
1303 tool
="$rootdir/tools/scramble -add=1g2g"
1304 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1305 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1306 output
="rockbox.ipod"
1307 appextra
="recorder:gui"
1310 bootoutput
="bootloader-$modelname.ipod"
1311 # toolset is the tools within the tools directory that we build for
1312 # this particular target.
1313 toolset
=$ipodbitmaptools
1314 # architecture, manufacturer and model for the target-tree build
1316 t_manufacturer
="ipod"
1323 target
="-DIAUDIO_X5"
1326 tool
="$rootdir/tools/scramble -add=iax5"
1327 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1328 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1329 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1330 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1331 output
="rockbox.iaudio"
1332 appextra
="recorder:gui"
1335 # toolset is the tools within the tools directory that we build for
1336 # this particular target.
1337 toolset
="$iaudiobitmaptools"
1338 # architecture, manufacturer and model for the target-tree build
1340 t_manufacturer
="iaudio"
1347 target
="-DIAUDIO_M5"
1350 tool
="$rootdir/tools/scramble -add=iam5"
1351 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1352 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1353 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1354 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1355 output
="rockbox.iaudio"
1356 appextra
="recorder:gui"
1359 # toolset is the tools within the tools directory that we build for
1360 # this particular target.
1361 toolset
="$iaudiobitmaptools"
1362 # architecture, manufacturer and model for the target-tree build
1364 t_manufacturer
="iaudio"
1374 tool
="$rootdir/tools/scramble -add=i7"
1375 boottool
="$rootdir/tools/scramble -tcc=crc"
1376 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1377 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1378 output
="rockbox.iaudio"
1379 appextra
="recorder:gui"
1382 bootoutput
="I7_FW.BIN"
1383 # toolset is the tools within the tools directory that we build for
1384 # this particular target.
1385 toolset
="$tccbitmaptools"
1386 # architecture, manufacturer and model for the target-tree build
1388 t_manufacturer
="tcc77x"
1398 tool
="$rootdir/tools/scramble -add=d2"
1399 boottool
="$rootdir/tools/scramble -tcc=crc"
1400 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1401 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1403 appextra
="recorder:gui"
1406 toolset
="$tccbitmaptools"
1407 # architecture, manufacturer and model for the target-tree build
1409 t_manufacturer
="tcc780x"
1416 target
="-DIAUDIO_M3"
1419 tool
="$rootdir/tools/scramble -add=iam3"
1420 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1421 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1422 output
="rockbox.iaudio"
1423 appextra
="recorder:gui"
1426 # toolset is the tools within the tools directory that we build for
1427 # this particular target.
1428 toolset
="$iaudiobitmaptools"
1429 # architecture, manufacturer and model for the target-tree build
1431 t_manufacturer
="iaudio"
1437 modelname
="gigabeatf"
1438 target
="-DGIGABEAT_F"
1441 tool
="$rootdir/tools/scramble -add=giga"
1442 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1443 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1444 output
="rockbox.gigabeat"
1445 appextra
="recorder:gui"
1448 toolset
=$gigabeatbitmaptools
1449 boottool
="$rootdir/tools/scramble -gigabeat"
1450 bootoutput
="FWIMG01.DAT"
1451 # architecture, manufacturer and model for the target-tree build
1453 t_manufacturer
="s3c2440"
1454 t_model
="gigabeat-fx"
1459 modelname
="gigabeats"
1460 target
="-DGIGABEAT_S"
1463 tool
="$rootdir/tools/scramble -add=gigs"
1464 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1465 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1466 output
="rockbox.gigabeat"
1467 appextra
="recorder:gui"
1470 toolset
="$gigabeatbitmaptools mknkboot"
1471 boottool
="$rootdir/tools/scramble -gigabeats"
1473 # architecture, manufacturer and model for the target-tree build
1475 t_manufacturer
="imx31"
1476 t_model
="gigabeat-s"
1481 modelname
="mrobe500"
1482 target
="-DMROBE_500"
1485 tool
="$rootdir/tools/scramble -add=m500"
1486 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1487 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1488 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1489 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1490 output
="rockbox.mrobe500"
1491 appextra
="recorder:gui"
1494 toolset
=$gigabeatbitmaptools
1496 bootoutput
="rockbox.mrboot"
1497 # architecture, manufacturer and model for the target-tree build
1499 t_manufacturer
="tms320dm320"
1505 modelname
="mrobe100"
1506 target
="-DMROBE_100"
1509 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1510 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1511 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1512 output
="rockbox.mi4"
1513 appextra
="recorder:gui"
1516 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1517 bootoutput
="pp5020.mi4"
1518 # toolset is the tools within the tools directory that we build for
1519 # this particular target.
1520 toolset
=$scramblebitmaptools
1521 # architecture, manufacturer and model for the target-tree build
1523 t_manufacturer
="olympus"
1529 modelname
="logikdax"
1530 target
="-DLOGIK_DAX"
1533 tool
="$rootdir/tools/scramble -add=ldax"
1534 boottool
="$rootdir/tools/scramble -tcc=crc"
1535 bootoutput
="player.rom"
1536 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1537 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1538 output
="rockbox.logik"
1539 appextra
="recorder:gui"
1542 # toolset is the tools within the tools directory that we build for
1543 # this particular target.
1544 toolset
=$tccbitmaptools
1545 # architecture, manufacturer and model for the target-tree build
1547 t_manufacturer
="tcc77x"
1553 modelname
="creativezvm30"
1554 target
="-DCREATIVE_ZVM"
1557 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1558 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1559 tool
="$rootdir/tools/scramble -creative=zvm"
1561 output
="rockbox.zvm"
1562 appextra
="recorder:gui"
1565 toolset
=$ipodbitmaptools
1566 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1567 bootoutput
="rockbox.zvmboot"
1568 # architecture, manufacturer and model for the target-tree build
1570 t_manufacturer
="tms320dm320"
1571 t_model
="creative-zvm"
1576 modelname
="creativezvm60"
1577 target
="-DCREATIVE_ZVM60GB"
1580 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1581 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1582 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1584 output
="rockbox.zvm60"
1585 appextra
="recorder:gui"
1588 toolset
=$ipodbitmaptools
1589 boottool
="$rootdir/tools/scramble -creative=zvm60"
1590 bootoutput
="rockbox.zvm60boot"
1591 # architecture, manufacturer and model for the target-tree build
1593 t_manufacturer
="tms320dm320"
1594 t_model
="creative-zvm"
1597 92|creativezenvision
)
1599 modelname
="creativezv"
1600 target
="-DCREATIVE_ZV"
1603 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1604 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1605 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1608 appextra
="recorder:gui"
1611 toolset
=$ipodbitmaptools
1612 boottool
="$rootdir/tools/scramble -creative=zenvision"
1613 bootoutput
="rockbox.zvboot"
1614 # architecture, manufacturer and model for the target-tree build
1616 t_manufacturer
="tms320dm320"
1617 t_model
="creative-zvm"
1623 target
="-DSANSA_E200"
1624 memory
=32 # supposedly
1626 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1627 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1628 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1629 output
="rockbox.mi4"
1630 appextra
="recorder:gui"
1633 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1634 bootoutput
="PP5022.mi4"
1635 # toolset is the tools within the tools directory that we build for
1636 # this particular target.
1637 toolset
=$scramblebitmaptools
1638 # architecture, manufacturer and model for the target-tree build
1640 t_manufacturer
="sandisk"
1641 t_model
="sansa-e200"
1645 # the e200R model is pretty much identical to the e200, it only has a
1646 # different option to the scramble tool when building a bootloader and
1647 # makes the bootloader output file name in all lower case.
1650 target
="-DSANSA_E200"
1651 memory
=32 # supposedly
1653 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1654 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1655 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1656 output
="rockbox.mi4"
1657 appextra
="recorder:gui"
1660 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1661 bootoutput
="pp5022.mi4"
1662 # toolset is the tools within the tools directory that we build for
1663 # this particular target.
1664 toolset
=$scramblebitmaptools
1665 # architecture, manufacturer and model for the target-tree build
1667 t_manufacturer
="sandisk"
1668 t_model
="sansa-e200"
1674 target
="-DSANSA_C200"
1675 memory
=32 # supposedly
1677 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1678 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1679 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1680 output
="rockbox.mi4"
1681 appextra
="recorder:gui"
1684 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1685 bootoutput
="firmware.mi4"
1686 # toolset is the tools within the tools directory that we build for
1687 # this particular target.
1688 toolset
=$scramblebitmaptools
1689 # architecture, manufacturer and model for the target-tree build
1691 t_manufacturer
="sandisk"
1692 t_model
="sansa-c200"
1698 target
="-DSANSA_M200"
1701 tool
="$rootdir/tools/scramble -add=m200"
1702 boottool
="$rootdir/tools/scramble -tcc=crc"
1703 bootoutput
="player.rom"
1704 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1705 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1706 output
="rockbox.m200"
1707 appextra
="recorder:gui"
1710 # toolset is the tools within the tools directory that we build for
1711 # this particular target.
1712 toolset
=$tccbitmaptools
1713 # architecture, manufacturer and model for the target-tree build
1715 t_manufacturer
="tcc77x"
1722 target
="-DSANSA_C100"
1725 tool
="$rootdir/tools/scramble -add=c100"
1726 boottool
="$rootdir/tools/scramble -tcc=crc"
1727 bootoutput
="player.rom"
1728 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1729 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1730 output
="rockbox.c100"
1731 appextra
="recorder:gui"
1734 # toolset is the tools within the tools directory that we build for
1735 # this particular target.
1736 toolset
=$tccbitmaptools
1737 # architecture, manufacturer and model for the target-tree build
1739 t_manufacturer
="tcc77x"
1746 target
="-DSANSA_CLIP"
1748 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1749 bmp2rb_native
="$bmp2rb_mono"
1750 tool
="$rootdir/tools/scramble -add=clip"
1751 output
="rockbox.sansa"
1752 bootoutput
="bootloader-clip.sansa"
1753 appextra
="recorder:gui"
1756 toolset
=$scramblebitmaptools
1758 t_manufacturer
="as3525"
1759 t_model
="sansa-clip"
1767 target
="-DSANSA_E200V2"
1769 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1770 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1771 tool
="$rootdir/tools/scramble -add=e2v2"
1772 output
="rockbox.sansa"
1773 bootoutput
="bootloader-e200v2.sansa"
1774 appextra
="recorder:gui"
1777 toolset
=$scramblebitmaptools
1779 t_manufacturer
="as3525"
1780 t_model
="sansa-e200v2"
1788 target
="-DSANSA_M200V4"
1790 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1791 bmp2rb_native
="$bmp2rb_mono"
1792 tool
="$rootdir/tools/scramble -add=m2v4"
1793 output
="rockbox.sansa"
1794 bootoutput
="bootloader-m200v4.sansa"
1795 appextra
="recorder:gui"
1798 toolset
=$scramblebitmaptools
1800 t_manufacturer
="as3525"
1801 t_model
="sansa-m200v4"
1809 target
="-DSANSA_FUZE"
1811 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1812 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1813 tool
="$rootdir/tools/scramble -add=fuze"
1814 output
="rockbox.sansa"
1815 bootoutput
="bootloader-fuze.sansa"
1816 appextra
="recorder:gui"
1819 toolset
=$scramblebitmaptools
1821 t_manufacturer
="as3525"
1822 t_model
="sansa-fuze"
1830 target
="-DSANSA_C200V2"
1831 memory
=2 # as per OF diagnosis mode
1832 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1833 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1834 tool
="$rootdir/tools/scramble -add=c2v2"
1835 output
="rockbox.sansa"
1836 bootoutput
="bootloader-c200v2.sansa"
1837 appextra
="recorder:gui"
1840 # toolset is the tools within the tools directory that we build for
1841 # this particular target.
1842 toolset
=$scramblebitmaptools
1843 # architecture, manufacturer and model for the target-tree build
1845 t_manufacturer
="as3525"
1846 t_model
="sansa-c200v2"
1851 echo "Sansa Clipv2 is not yet supported !"
1855 target
="-DSANSA_CLIPV2"
1858 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1859 bmp2rb_native
="$bmp2rb_mono"
1860 tool
="$rootdir/tools/scramble -add=clv2"
1861 output
="rockbox.sansa"
1862 bootoutput
="bootloader-clipv2.sansa"
1863 appextra
="recorder:gui"
1866 toolset
=$scramblebitmaptools
1868 t_manufacturer
="as3525"
1869 t_model
="sansa-clipv2"
1875 target
="-DELIO_TPJ1022"
1878 tool
="$rootdir/tools/scramble -add tpj2"
1879 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1880 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1881 output
="rockbox.elio"
1882 appextra
="recorder:gui"
1885 boottool
="$rootdir/tools/scramble -mi4v2"
1886 bootoutput
="pp5020.mi4"
1887 # toolset is the tools within the tools directory that we build for
1888 # this particular target.
1889 toolset
=$scramblebitmaptools
1890 # architecture, manufacturer and model for the target-tree build
1892 t_manufacturer
="tatung"
1899 target
="-DPHILIPS_SA9200"
1900 memory
=32 # supposedly
1902 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
1903 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1904 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1905 output
="rockbox.mi4"
1906 appextra
="recorder:gui"
1909 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
1910 bootoutput
="FWImage.ebn"
1911 # toolset is the tools within the tools directory that we build for
1912 # this particular target.
1913 toolset
=$scramblebitmaptools
1914 # architecture, manufacturer and model for the target-tree build
1916 t_manufacturer
="philips"
1923 target
="-DPHILIPS_HDD1630"
1924 memory
=32 # supposedly
1926 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1927 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1928 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1929 output
="rockbox.mi4"
1930 appextra
="recorder:gui"
1933 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1934 bootoutput
="FWImage.ebn"
1935 # toolset is the tools within the tools directory that we build for
1936 # this particular target.
1937 toolset
=$scramblebitmaptools
1938 # architecture, manufacturer and model for the target-tree build
1940 t_manufacturer
="philips"
1946 modelname
="meizum6sl"
1947 target
="-DMEIZU_M6SL"
1951 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1952 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1953 output
="rockbox.meizu"
1954 appextra
="recorder:gui"
1957 toolset
=$genericbitmaptools
1959 bootoutput
="rockboot.ebn"
1960 # architecture, manufacturer and model for the target-tree build
1962 t_manufacturer
="s5l8700"
1963 t_model
="meizu-m6sl"
1968 modelname
="meizum6sp"
1969 target
="-DMEIZU_M6SP"
1973 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1974 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1975 output
="rockbox.meizu"
1976 appextra
="recorder:gui"
1979 toolset
=$genericbitmaptools
1981 bootoutput
="rockboot.ebn"
1982 # architecture, manufacturer and model for the target-tree build
1984 t_manufacturer
="s5l8700"
1985 t_model
="meizu-m6sp"
1995 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1996 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1997 output
="rockbox.meizu"
1998 appextra
="recorder:gui"
2001 toolset
=$genericbitmaptools
2003 bootoutput
="rockboot.ebn"
2004 # architecture, manufacturer and model for the target-tree build
2006 t_manufacturer
="s5l8700"
2012 modelname
="ondavx747"
2013 target
="-DONDA_VX747"
2016 tool
="$rootdir/tools/scramble -add=x747"
2017 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2018 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2019 output
="rockbox.vx747"
2020 appextra
="recorder:gui"
2023 toolset
=$genericbitmaptools
2025 bootoutput
="rockboot.vx747"
2026 # architecture, manufacturer and model for the target-tree build
2028 t_manufacturer
="ingenic_jz47xx"
2029 t_model
="onda_vx747"
2034 modelname
="ondavx767"
2035 target
="-DONDA_VX767"
2039 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2040 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2041 output
="rockbox.vx767"
2042 appextra
="recorder:gui"
2045 toolset
=$genericbitmaptools
2047 bootoutput
="rockboot.vx767"
2048 # architecture, manufacturer and model for the target-tree build
2050 t_manufacturer
="ingenic_jz47xx"
2051 t_model
="onda_vx767"
2056 modelname
="ondavx747p"
2057 target
="-DONDA_VX747P"
2061 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2062 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2063 output
="rockbox.vx747p"
2064 appextra
="recorder:gui"
2067 toolset
=$genericbitmaptools
2069 bootoutput
="rockboot.vx747p"
2070 # architecture, manufacturer and model for the target-tree build
2072 t_manufacturer
="ingenic_jz47xx"
2073 t_model
="onda_vx747"
2078 modelname
="lyre_proto1"
2079 target
="-DLYRE_PROTO1"
2083 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2084 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2085 output
="rockbox.lyre"
2086 appextra
="recorder:gui"
2089 toolset
=$scramblebitmaptools
2091 bootoutput
="bootloader-proto1.lyre"
2092 # architecture, manufacturer and model for the target-tree build
2094 t_manufacturer
="at91sam"
2095 t_model
="lyre_proto1"
2101 target
="-DSAMSUNG_YH820"
2104 tool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
2105 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2106 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2107 output
="rockbox.mi4"
2108 appextra
="recorder:gui"
2111 boottool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
2112 bootoutput
="FW_YH820.mi4"
2113 # toolset is the tools within the tools directory that we build for
2114 # this particular target.
2115 toolset
=$scramblebitmaptools
2116 # architecture, manufacturer and model for the target-tree build
2118 t_manufacturer
="samsung"
2125 target
="-DSAMSUNG_YH920"
2128 tool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
2129 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2130 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
2131 output
="rockbox.mi4"
2132 appextra
="recorder:gui"
2135 boottool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
2136 bootoutput
="PP5020.mi4"
2137 # toolset is the tools within the tools directory that we build for
2138 # this particular target.
2139 toolset
=$scramblebitmaptools
2140 # architecture, manufacturer and model for the target-tree build
2142 t_manufacturer
="samsung"
2149 target
="-DSAMSUNG_YH925"
2152 tool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
2153 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2154 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2155 output
="rockbox.mi4"
2156 appextra
="recorder:gui"
2159 boottool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
2160 bootoutput
="FW_YH925.mi4"
2161 # toolset is the tools within the tools directory that we build for
2162 # this particular target.
2163 toolset
=$scramblebitmaptools
2164 # architecture, manufacturer and model for the target-tree build
2166 t_manufacturer
="samsung"
2171 echo "Please select a supported target platform!"
2177 echo "Platform set to $modelname"
2181 ############################################################################
2182 # Amount of memory, for those that can differ. They have $memory unset at
2186 if [ -z "$memory" ]; then
2189 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2190 if [ "1" != `parse_args --ram` ]; then
2191 size
=`parse_args --ram`;
2205 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2206 if [ "1" != `parse_args --ram` ]; then
2207 size
=`parse_args --ram`;
2221 echo "Memory size selected: $memory MB"
2226 ##################################################################
2227 # Figure out build "type"
2230 # the ifp7x0 is the only platform that supports building a gdb stub like
2234 gdbstub
="(G)DB stub, "
2237 gdbstub
="(I)nstaller, "
2240 gdbstub
="(E)raser, "
2245 if [ "1" != `parse_args --type` ]; then
2246 btype
=`parse_args --type`;
2248 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2254 appsdir
='\$(ROOTDIR)/bootloader'
2256 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2258 echo "e200R-installer build selected"
2261 appsdir
='\$(ROOTDIR)/bootloader'
2263 echo "C2(4)0 or C2(5)0"
2267 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2268 echo "c240 eraser build selected"
2271 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2272 echo "c240 eraser build selected"
2276 echo "c200 eraser build selected"
2279 if test $t_manufacturer = "archos"; then
2280 # Archos SH-based players do this somewhat differently for
2282 appsdir
='\$(ROOTDIR)/flash/bootbox'
2285 appsdir
='\$(ROOTDIR)/bootloader'
2288 if test -n "$boottool"; then
2291 if test -n "$bootoutput"; then
2295 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2297 echo "Bootloader build selected"
2302 extradefines
="-DSIMULATOR"
2305 echo "Simulator build selected"
2308 echo "Advanced build selected"
2312 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2313 appsdir
='\$(ROOTDIR)/gdb'
2322 echo "GDB stub build selected"
2327 echo "Manual build selected"
2330 if [ "$modelname" = "e200r" ]; then
2331 echo "Do not use the e200R target for regular builds. Use e200 instead."
2335 btype
="N" # set it explicitly since RET only gets here as well
2336 echo "Normal build selected"
2340 # to be able running "make manual" from non-manual configuration
2343 manualdev
="recorderv2fm"
2346 manualdev
="recorderv2fm"
2352 manualdev
="ipodmini"
2355 manualdev
=$modelname
2359 if [ -z "$debug" ]; then
2360 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2363 echo "Using source code root directory: $rootdir"
2365 # this was once possible to change at build-time, but no more:
2370 if [ "yes" = "$simulator" ]; then
2371 # setup compiler and things for simulator
2374 if [ -d "simdisk" ]; then
2375 echo "Subdirectory 'simdisk' already present"
2378 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2382 # Now, figure out version number of the (gcc) compiler we are about to use
2383 gccver
=`$CC -dumpversion`;
2385 # figure out the binutil version too and display it, mostly for the build
2386 # system etc to be able to see it easier
2387 if [ $uname = "Darwin" ]; then
2388 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2390 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2393 if [ -z "$gccver" ]; then
2394 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2395 echo "WARNING: this may cause your build to fail since we cannot do the"
2396 echo "WARNING: checks we want now."
2399 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2402 num1
=`echo $gccver | cut -d . -f1`
2403 num2
=`echo $gccver | cut -d . -f2`
2404 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2411 echo "Using $CC $gccver ($gccnum)"
2413 if test "$gccnum" -ge "400"; then
2414 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2415 # so we ignore that warnings for now
2417 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2420 if test "$gccnum" -ge "401"; then
2421 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2422 # will break strict-aliasing rules"
2424 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2427 if test "$gccnum" -ge "402"; then
2428 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2429 # and later would throw it for several valid cases
2430 GCCOPTS
="$GCCOPTS -Wno-override-init"
2438 # cross-compile for win32
2441 # Verify that the cross-compiler is of a recommended version!
2442 if test "$gccver" != "$gccchoice"; then
2443 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2444 echo "WARNING: version $gccchoice!"
2445 echo "WARNING: This may cause your build to fail since it may be a version"
2446 echo "WARNING: that isn't functional or known to not be the best choice."
2447 echo "WARNING: If you suffer from build problems, you know that this is"
2448 echo "WARNING: a likely source for them..."
2456 echo "Using $LD $ldver"
2458 # check the compiler for SH platforms
2459 if test "$CC" = "sh-elf-gcc"; then
2460 if test "$gccnum" -lt "400"; then
2461 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2462 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2464 # figure out patch status
2465 gccpatch
=`$CC --version`;
2467 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2468 echo "gcc $gccver is rockbox patched"
2469 # then convert -O to -Os to get smaller binaries!
2470 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2472 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2473 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2478 if test "$CC" = "m68k-elf-gcc"; then
2479 # convert -O to -Os to get smaller binaries!
2480 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2483 if [ "1" != `parse_args --ccache` ]; then
2484 echo "Enable ccache for building"
2487 if [ "1" = `parse_args --no-ccache` ]; then
2488 ccache
=`findtool ccache`
2489 if test -n "$ccache"; then
2490 echo "Found and uses ccache ($ccache)"
2495 # figure out the full path to the various commands if possible
2496 HOSTCC
=`findtool gcc --lit`
2497 HOSTAR
=`findtool ar --lit`
2498 CC
=`findtool ${CC} --lit`
2499 LD
=`findtool ${AR} --lit`
2500 AR
=`findtool ${AR} --lit`
2501 AS
=`findtool ${AS} --lit`
2502 OC
=`findtool ${OC} --lit`
2503 WINDRES
=`findtool ${WINDRES} --lit`
2504 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2505 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2506 RANLIB
=`findtool ${RANLIB} --lit`
2508 if test -n "$ccache"; then
2512 if test "X$endian" = "Xbig"; then
2513 defendian
="ROCKBOX_BIG_ENDIAN"
2515 defendian
="ROCKBOX_LITTLE_ENDIAN"
2518 if [ "1" != `parse_args --rbdir` ]; then
2519 rbdir
=`parse_args --rbdir`;
2520 echo "Using alternate rockbox dir: ${rbdir}"
2524 -e "s,@ENDIAN@,${defendian},g" \
2525 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2526 -e "s,@config_rtc@,$config_rtc,g" \
2527 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2528 -e "s,@RBDIR@,${rbdir},g" \
2529 -e "s,@have_backlight@,$have_backlight,g" \
2530 -e "s,@have_fmradio_in@,$have_fmradio_in,g" \
2532 /* This header was made by configure */
2533 #ifndef __BUILD_AUTOCONF_H
2534 #define __BUILD_AUTOCONF_H
2536 /* Define endianess for the target or simulator platform */
2539 /* Define this if you build rockbox to support the logf logging and display */
2540 #undef ROCKBOX_HAS_LOGF
2542 /* optional define for a backlight modded Ondio */
2545 /* optional define for FM radio mod for iAudio M5 */
2548 /* optional defines for RTC mod for h1x0 */
2552 /* root of Rockbox */
2553 #define ROCKBOX_DIR "/@RBDIR@"
2555 #endif /* __BUILD_AUTOCONF_H */
2558 if test -n "$t_cpu"; then
2559 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2560 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2561 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2565 if test "$simulator" = "yes"; then
2566 # add simul make stuff on the #SIMUL# line
2567 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2568 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2570 # delete the lines that match
2571 simmagic1
='/@SIMUL1@/D'
2572 simmagic2
='/@SIMUL2@/D'
2575 if test "$swcodec" = "yes"; then
2576 voicetoolset
="rbspeexenc voicefont wavtrim"
2578 voicetoolset
="voicefont wavtrim"
2581 if test "$apps" = "apps"; then
2582 # only when we build "real" apps we build the .lng files
2586 #### Fix the cmdline ###
2587 if test -n "$ccache"; then
2591 cmdline
="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2597 -e "s,@ROOTDIR@,${rootdir},g" \
2598 -e "s,@DEBUG@,${debug},g" \
2599 -e "s,@MEMORY@,${memory},g" \
2600 -e "s,@TARGET_ID@,${target_id},g" \
2601 -e "s,@TARGET@,${target},g" \
2602 -e "s,@CPU@,${t_cpu},g" \
2603 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2604 -e "s,@MODELNAME@,${modelname},g" \
2605 -e "s,@LANGUAGE@,${language},g" \
2606 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2607 -e "s,@PWD@,${pwd},g" \
2608 -e "s,@HOSTCC@,${HOSTCC},g" \
2609 -e "s,@HOSTAR@,${HOSTAR},g" \
2610 -e "s,@CC@,${CC},g" \
2611 -e "s,@LD@,${LD},g" \
2612 -e "s,@AR@,${AR},g" \
2613 -e "s,@AS@,${AS},g" \
2614 -e "s,@OC@,${OC},g" \
2615 -e "s,@WINDRES@,${WINDRES},g" \
2616 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2617 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2618 -e "s,@RANLIB@,${RANLIB},g" \
2619 -e "s,@TOOL@,${tool},g" \
2620 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2621 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2622 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2623 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2624 -e "s,@OUTPUT@,${output},g" \
2625 -e "s,@APPEXTRA@,${appextra},g" \
2626 -e "s,@ARCHOSROM@,${archosrom},g" \
2627 -e "s,@FLASHFILE@,${flash},g" \
2628 -e "s,@PLUGINS@,${plugins},g" \
2629 -e "s,@CODECS@,${swcodec},g" \
2630 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2631 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2632 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2633 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2634 -e "s!@LDOPTS@!${LDOPTS}!g" \
2635 -e "s,@LOADADDRESS@,${loadaddress},g" \
2636 -e "s,@EXTRADEF@,${extradefines},g" \
2637 -e "s,@APPSDIR@,${appsdir},g" \
2638 -e "s,@FIRMDIR@,${firmdir},g" \
2639 -e "s,@TOOLSDIR@,${toolsdir},g" \
2640 -e "s,@APPS@,${apps},g" \
2641 -e "s,@SIMVER@,${simver},g" \
2642 -e "s,@GCCVER@,${gccver},g" \
2643 -e "s,@GCCNUM@,${gccnum},g" \
2644 -e "s,@UNAME@,${uname},g" \
2645 -e "s,@ENDIAN@,${defendian},g" \
2646 -e "s,@TOOLSET@,${toolset},g" \
2649 -e "s,@MANUALDEV@,${manualdev},g" \
2650 -e "s,@ENCODER@,${ENC_CMD},g" \
2651 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2652 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2653 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2654 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2655 -e "s,@LANGS@,${buildlangs},g" \
2656 -e "s,@USE_ELF@,${USE_ELF},g" \
2657 -e "s,@RBDIR@,${rbdir},g" \
2658 -e "s,@PREFIX@,$PREFIX,g" \
2659 -e "s,@CMDLINE@,$cmdline,g" \
2661 ## Automatically generated. http://www.rockbox.org/
2663 export ROOTDIR=@ROOTDIR@
2664 export FIRMDIR=@FIRMDIR@
2665 export APPSDIR=@APPSDIR@
2666 export TOOLSDIR=@TOOLSDIR@
2667 export DOCSDIR=\$(ROOTDIR)/docs
2668 export MANUALDIR=\${ROOTDIR}/manual
2669 export DEBUG=@DEBUG@
2670 export MODELNAME=@MODELNAME@
2671 export ARCHOSROM=@ARCHOSROM@
2672 export FLASHFILE=@FLASHFILE@
2673 export TARGET_ID=@TARGET_ID@
2674 export TARGET=@TARGET@
2676 export MANUFACTURER=@MANUFACTURER@
2678 export BUILDDIR=@PWD@
2679 export LANGUAGE=@LANGUAGE@
2680 export VOICELANGUAGE=@VOICELANGUAGE@
2681 export MEMORYSIZE=@MEMORY@
2682 export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
2683 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2684 export MKFIRMWARE=@TOOL@
2685 export BMP2RB_MONO=@BMP2RB_MONO@
2686 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2687 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2688 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2689 export BINARY=@OUTPUT@
2690 export APPEXTRA=@APPEXTRA@
2691 export ENABLEDPLUGINS=@PLUGINS@
2692 export SOFTWARECODECS=@CODECS@
2693 export EXTRA_DEFINES=@EXTRADEF@
2694 export HOSTCC=@HOSTCC@
2695 export HOSTAR=@HOSTAR@
2701 export WINDRES=@WINDRES@
2702 export DLLTOOL=@DLLTOOL@
2703 export DLLWRAP=@DLLWRAP@
2704 export RANLIB=@RANLIB@
2705 export PREFIX=@PREFIX@
2706 export PROFILE_OPTS=@PROFILE_OPTS@
2707 export SIMVER=@SIMVER@
2708 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2709 export GCCOPTS=@GCCOPTS@
2710 export TARGET_INC=@TARGET_INC@
2711 export LOADADDRESS=@LOADADDRESS@
2712 export SHARED_FLAG=@SHARED_FLAG@
2713 export LDOPTS=@LDOPTS@
2714 export GCCVER=@GCCVER@
2715 export GCCNUM=@GCCNUM@
2716 export UNAME=@UNAME@
2717 export MANUALDEV=@MANUALDEV@
2718 export TTS_OPTS=@TTS_OPTS@
2719 export TTS_ENGINE=@TTS_ENGINE@
2720 export ENC_OPTS=@ENC_OPTS@
2721 export ENCODER=@ENCODER@
2722 export USE_ELF=@USE_ELF@
2723 export RBDIR=@RBDIR@
2725 CONFIGURE_OPTIONS=@CMDLINE@
2727 include \$(TOOLSDIR)/root.make
2731 echo "Created Makefile"