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 [ "$modelname" = "player" ]; then
325 printf ", Use (A)TA poweroff"
327 if [ "$t_model" = "ondio" ]; then
328 printf ", (B)acklight MOD"
330 if [ "$modelname" = "m5" ]; then
331 printf ", (F)M radio MOD"
333 if [ "$modelname" = "h120" ]; then
340 while [ $cont = "1" ]; do
346 if [ "yes" = "$profile" ]; then
347 echo "Debug is incompatible with profiling"
354 echo "logf() support enabled"
358 echo "Simulator build enabled"
362 if [ "yes" = "$use_debug" ]; then
363 echo "Profiling is incompatible with debug"
365 echo "Profiling support is enabled"
370 echo "Voice build selected"
374 if [ "$memory" = "2" ]; then
376 echo "Memory size selected: 8MB"
382 if [ "$modelname" = "player" ]; then
383 have_ata_poweroff
="#define HAVE_ATA_POWEROFF"
384 echo "ATA poweroff enabled"
390 if [ "$t_model" = "ondio" ]; then
391 have_backlight
="#define HAVE_BACKLIGHT"
392 echo "Backlight functions enabled"
398 if [ "$modelname" = "m5" ]; then
399 have_fmradio_in
="#define HAVE_FMRADIO_IN"
400 echo "FM radio functions enabled"
406 if [ "$modelname" = "h120" ]; then
407 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
408 have_rtc_alarm
="#define HAVE_RTC_ALARM"
409 echo "RTC functions enabled (DS1339/DS3231)"
421 if [ "yes" = "$voice" ]; then
422 # Ask about languages to build
423 echo "Select a number for the language to use (default is english)"
424 # The multiple-language feature is currently broken
425 # echo "You may enter a comma-separated list of languages to build"
428 voicelanguage
=`whichlang`
430 if [ -z "$voicelanguage" ]; then
432 voicelanguage
="english"
434 echo "Voice language set to $voicelanguage"
436 # Configure encoder and TTS engine for each language
437 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
438 voiceconfig
"$thislang"
441 if [ "yes" = "$use_debug" ]; then
443 GCCOPTS
="$GCCOPTS -g -DDEBUG"
445 if [ "yes" = "$logf" ]; then
446 use_logf
="#define ROCKBOX_HAS_LOGF 1"
448 if [ "yes" = "$simulator" ]; then
450 extradefines
="$extradefines -DSIMULATOR"
454 if [ "yes" = "$profile" ]; then
455 extradefines
="$extradefines -DRB_PROFILE"
456 PROFILE_OPTS
="-finstrument-functions"
460 # Configure voice settings
463 echo "Building $thislang voice for $modelname. Select options"
466 if [ -n "`findtool flite`" ]; then
470 DEFAULT_TTS_OPTS
=$FLITE_OPTS
471 DEFAULT_NOISEFLOOR
="500"
474 if [ -n "`findtool espeak`" ]; then
478 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
479 DEFAULT_NOISEFLOOR
="500"
482 if [ -n "`findtool festival`" ]; then
483 FESTIVAL
="(F)estival "
486 FESTIVAL_OPTS
="--language italian"
489 FESTIVAL_OPTS
="--language spanish"
492 FESTIVAL_OPTS
="--language finnish"
495 FESTIVAL_OPTS
="--language czech"
501 DEFAULT_TTS
="festival"
502 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
503 DEFAULT_NOISEFLOOR
="500"
506 if [ -n "`findtool swift`" ]; then
510 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
511 DEFAULT_NOISEFLOOR
="500"
514 # Allow SAPI if Windows is in use
515 if [ -n "`findtool winver`" ]; then
519 DEFAULT_TTS_OPTS
=$SAPI_OPTS
520 DEFAULT_NOISEFLOOR
="500"
524 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
525 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
529 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
534 NOISEFLOOR
="500" # TODO: check this value
540 TTS_OPTS
=$ESPEAK_OPTS
543 TTS_ENGINE
="festival"
545 TTS_OPTS
=$FESTIVAL_OPTS
558 TTS_ENGINE
=$DEFAULT_TTS
559 TTS_OPTS
=$DEFAULT_TTS_OPTS
560 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
562 echo "Using $TTS_ENGINE for TTS"
564 # Select which voice to use for Festival
565 if [ "$TTS_ENGINE" = "festival" ]; then
567 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
568 if [ "$i" = "1" ]; then
569 TTS_FESTIVAL_VOICE
="$voice" # Default choice
571 printf "%3d. %s\n" "$i" "$voice"
574 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
577 for voice
in `echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`; do
578 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
579 TTS_FESTIVAL_VOICE
="$voice"
583 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
584 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
587 # Allow the user to input manual commandline options
588 printf "Enter $TTS_ENGINE options (enter for defaults \"$TTS_OPTS\"): "
589 USER_TTS_OPTS
=`input`
590 if [ -n "$USER_TTS_OPTS" ]; then
591 TTS_OPTS
="$USER_TTS_OPTS"
596 if [ "$swcodec" = "yes" ]; then
599 ENC_OPTS
="-q 4 -c 10"
601 if [ -n "`findtool lame`" ]; then
604 ENC_OPTS
="--resample 12 -t -m m -h -V 9.999 -S -B 64 --vbr-new"
606 echo "You need LAME in the system path to build voice files for"
607 echo "HWCODEC targets."
612 echo "Using $ENCODER for encoding voice clips"
614 # Allow the user to input manual commandline options
615 printf "Enter $ENCODER options (enter for defaults \"$ENC_OPTS\"): "
616 USER_ENC_OPTS
=`input`
617 if [ -n "$USER_ENC_OPTS" ]; then
618 ENC_OPTS
=$USER_ENC_OPTS
622 if [ -n "`findtool cygpath`" ]; then
623 TEMPDIR
=`cygpath . -a -w`
628 # figure out which languages that are around
629 for file in $rootdir/apps
/lang
/*.lang
; do
630 clean
=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
631 langs
="$langs $clean"
635 for one
in $langs; do
645 # Allow the user to pass a comma-separated list of langauges
646 for thispick
in `echo $pick | sed 's/,/ /g'`; do
648 for one
in $langs; do
649 # Accept both the language number and name
650 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
651 if [ "$output" = "" ]; then
665 if test "$opt" = "--help"; then
666 echo "Rockbox configure script."
667 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
668 echo "Do *NOT* run this within the tools directory!"
671 Usage: configure [OPTION]...
673 --target=TARGET Sets the target, TARGET can be either the target ID or
674 corresponding string. Run without this option to see all
677 --ram=RAM Sets the RAM for certain targets. Even though any number
678 is accepted, not every number is correct. The default
679 value will be applied, if you entered a wrong number
680 (which depends on the target). Watch the output. Run
681 without this option if you are not sure which the right
684 --type=TYPE Sets the build type. The shortcut is also valid.
685 Run without this option to see available types.
687 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
688 This is useful for having multiple alternate builds on
689 your device that you can load with ROLO. However as the
690 bootloader looks for .rockbox you won't be able to boot
693 --ccache Enable ccache use (done by default these days)
694 --no-ccache Disable ccache use
695 --help Shows this message (must not be used with other options)
702 if test -r "configure"; then
703 # this is a check for a configure script in the current directory, it there
704 # is one, try to figure out if it is this one!
706 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
707 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
708 echo "It will only cause you pain and grief. Instead do this:"
711 echo " mkdir build-dir"
713 echo " ../tools/configure"
715 echo "Much happiness will arise from this. Enjoy"
720 # get our current directory
723 if { echo $pwd |
grep " "; } then
724 echo "You're running this script in a path that contains space. The build"
725 echo "system is unfortunately not clever enough to deal with this. Please"
726 echo "run the script from a different path, rename the path or fix the build"
731 if [ -z "$rootdir" ]; then
732 ##################################################################
733 # Figure out where the source code root is!
735 rootdir
=`dirname $0`/..
/
737 #####################################################################
738 # Convert the possibly relative directory name to an absolute version
744 # cd back to the build dir
749 appsdir
='\$(ROOTDIR)/apps'
750 firmdir
='\$(ROOTDIR)/firmware'
751 toolsdir
='\$(ROOTDIR)/tools'
754 ##################################################################
755 # Figure out target platform
758 if [ "1" != `parse_args --target` ]; then
759 buildfor
=`parse_args --target`;
761 echo "Enter target platform:"
763 ==Archos== ==iriver== ==Apple iPod==
764 0) Player/Studio 10) H120/H140 20) Color/Photo
765 1) Recorder 11) H320/H340 21) Nano
766 2) FM Recorder 12) iHP-100/110/115 22) Video
767 3) Recorder v2 13) iFP-790 23) 3G
768 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
769 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
771 ==Toshiba== 27) 1G, 2G
772 ==Cowon/iAudio== 40) Gigabeat F
773 30) X5/X5V/X5L 41) Gigabeat S ==SanDisk==
774 31) M5/M5L 50) Sansa e200
775 32) 7 ==Olympus= 51) Sansa e200R
776 33) D2 70) M:Robe 500 52) Sansa c200
777 34) M3/M3L 71) M:Robe 100 53) Sansa m200
779 ==Creative== ==Philips== 55) Sansa Clip
780 90) Zen Vision:M 30GB 100) GoGear SA9200 56) Sansa e200v2
781 91) Zen Vision:M 60GB 101) GoGear HDD1630/ 57) Sansa m200v4
782 92) Zen Vision HDD1830 58) Sansa Fuze
784 ==Onda== ==Meizu== 60) Sansa Clipv2
786 121) VX767 111) M6SP ==Logik==
787 122) VX747+ 112) M3 80) DAX 1GB MP3/DAB
790 ==Samsung== ==Tatung== ==Lyre project==
791 140) YH-820 150) Elio TPJ-1022 130) Lyre proto 1
799 # Set of tools built for all target platforms:
800 toolset
="rdf2binary convbdf codepages"
802 # Toolsets for some target families:
803 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
804 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
805 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
806 ipodbitmaptools
="$toolset scramble bmp2rb"
807 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
808 tccbitmaptools
="$toolset scramble mktccboot bmp2rb"
809 # generic is used by IFP, Meizu and Onda
810 genericbitmaptools
="$toolset bmp2rb"
811 # scramble is used by all other targets
812 scramblebitmaptools
="$genericbitmaptools scramble"
815 # ---- For each target ----
818 # target_id: a unique number identifying this target, IS NOT the menu number.
819 # Just use the currently highest number+1 when you add a new
821 # modelname: short model name used all over to identify this target
822 # memory: number of megabytes of RAM this target has. If the amount can
823 # be selected by the size prompt, let memory be unset here
824 # target: -Ddefine passed to the build commands to make the correct
825 # config-*.h file get included etc
826 # tool: the tool that takes a plain binary and converts that into a
827 # working "firmware" file for your target
828 # output: the final output file name
829 # boottool: the tool that takes a plain binary and generates a bootloader
830 # file for your target (or blank to use $tool)
831 # bootoutput:the final output file name for the bootloader (or blank to use
833 # appextra: passed to the APPEXTRA variable in the Makefiles.
834 # TODO: add proper explanation
835 # archosrom: used only for Archos targets that build a special flashable .ucl
837 # flash: name of output for flashing, for targets where there's a special
838 # file output for this.
839 # plugins: set to 'yes' to build the plugins. Early development builds can
840 # set this to no in the early stages to have an easier life for a
842 # swcodec: set 'yes' on swcodec targets
843 # toolset: lists what particular tools in the tools/ directory that this
844 # target needs to have built prior to building Rockbox
847 # *cc: sets up gcc and compiler options for your target builds. Note
848 # that if you select a simulator build, the compiler selection is
849 # overridden later in the script.
856 target
="-DARCHOS_PLAYER"
858 tool
="$rootdir/tools/scramble"
860 appextra
="player:gui"
861 archosrom
="$pwd/rombox.ucl"
862 flash
="$pwd/rockbox.ucl"
866 # toolset is the tools within the tools directory that we build for
867 # this particular target.
868 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
870 # Note: the convbdf is present in the toolset just because: 1) the
871 # firmware/Makefile assumes it is present always, and 2) we will need it when we
872 # build the player simulator
875 t_manufacturer
="archos"
882 target
="-DARCHOS_RECORDER"
884 tool
="$rootdir/tools/scramble"
885 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
886 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
888 appextra
="recorder:gui"
889 #archosrom="$pwd/rombox.ucl"
890 flash
="$pwd/rockbox.ucl"
893 # toolset is the tools within the tools directory that we build for
894 # this particular target.
895 toolset
=$archosbitmaptools
897 t_manufacturer
="archos"
903 modelname
="fmrecorder"
904 target
="-DARCHOS_FMRECORDER"
906 tool
="$rootdir/tools/scramble -fm"
907 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
908 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
910 appextra
="recorder:gui"
911 #archosrom="$pwd/rombox.ucl"
912 flash
="$pwd/rockbox.ucl"
915 # toolset is the tools within the tools directory that we build for
916 # this particular target.
917 toolset
=$archosbitmaptools
919 t_manufacturer
="archos"
925 modelname
="recorderv2"
926 target
="-DARCHOS_RECORDERV2"
928 tool
="$rootdir/tools/scramble -v2"
929 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
930 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
932 appextra
="recorder:gui"
933 #archosrom="$pwd/rombox.ucl"
934 flash
="$pwd/rockbox.ucl"
937 # toolset is the tools within the tools directory that we build for
938 # this particular target.
939 toolset
=$archosbitmaptools
941 t_manufacturer
="archos"
948 target
="-DARCHOS_ONDIOSP"
950 tool
="$rootdir/tools/scramble -osp"
951 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
952 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
954 appextra
="recorder:gui"
955 archosrom
="$pwd/rombox.ucl"
956 flash
="$pwd/rockbox.ucl"
959 # toolset is the tools within the tools directory that we build for
960 # this particular target.
961 toolset
=$archosbitmaptools
963 t_manufacturer
="archos"
970 target
="-DARCHOS_ONDIOFM"
972 tool
="$rootdir/tools/scramble -ofm"
973 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
974 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
976 appextra
="recorder:gui"
977 #archosrom="$pwd/rombox.ucl"
978 flash
="$pwd/rockbox.ucl"
981 toolset
=$archosbitmaptools
983 t_manufacturer
="archos"
990 target
="-DARCHOS_AV300"
993 tool
="$rootdir/tools/scramble -mm=C"
994 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
995 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
997 appextra
="recorder:gui"
1000 # toolset is the tools within the tools directory that we build for
1001 # this particular target.
1002 toolset
="$toolset scramble descramble bmp2rb"
1003 # architecture, manufacturer and model for the target-tree build
1005 t_manufacturer
="archos"
1012 target
="-DIRIVER_H120"
1015 tool
="$rootdir/tools/scramble -add=h120"
1016 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1017 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1018 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1019 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1020 output
="rockbox.iriver"
1021 appextra
="recorder:gui"
1022 flash
="$pwd/rombox.iriver"
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_H300"
1039 tool
="$rootdir/tools/scramble -add=h300"
1040 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1041 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1042 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1043 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1044 output
="rockbox.iriver"
1045 appextra
="recorder:gui"
1048 # toolset is the tools within the tools directory that we build for
1049 # this particular target.
1050 toolset
=$iriverbitmaptools
1052 t_manufacturer
="iriver"
1059 target
="-DIRIVER_H100"
1062 tool
="$rootdir/tools/scramble -add=h100"
1063 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1064 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1065 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1066 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1067 output
="rockbox.iriver"
1068 appextra
="recorder:gui"
1069 flash
="$pwd/rombox.iriver"
1072 # toolset is the tools within the tools directory that we build for
1073 # this particular target.
1074 toolset
=$iriverbitmaptools
1076 t_manufacturer
="iriver"
1083 target
="-DIRIVER_IFP7XX"
1087 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1088 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1089 output
="rockbox.wma"
1090 appextra
="recorder:gui"
1093 # toolset is the tools within the tools directory that we build for
1094 # this particular target.
1095 toolset
=$genericbitmaptools
1097 t_manufacturer
="pnx0101"
1098 t_model
="iriver-ifp7xx"
1104 target
="-DIRIVER_H10"
1107 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1108 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1109 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1110 output
="rockbox.mi4"
1111 appextra
="recorder:gui"
1114 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1115 bootoutput
="H10_20GC.mi4"
1116 # toolset is the tools within the tools directory that we build for
1117 # this particular target.
1118 toolset
=$scramblebitmaptools
1119 # architecture, manufacturer and model for the target-tree build
1121 t_manufacturer
="iriver"
1128 target
="-DIRIVER_H10_5GB"
1131 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1132 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1133 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1134 output
="rockbox.mi4"
1135 appextra
="recorder:gui"
1138 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1139 bootoutput
="H10.mi4"
1140 # toolset is the tools within the tools directory that we build for
1141 # this particular target.
1142 toolset
=$scramblebitmaptools
1143 # architecture, manufacturer and model for the target-tree build
1145 t_manufacturer
="iriver"
1151 modelname
="ipodcolor"
1152 target
="-DIPOD_COLOR"
1155 tool
="$rootdir/tools/scramble -add=ipco"
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
="ipodnano"
1175 target
="-DIPOD_NANO"
1178 tool
="$rootdir/tools/scramble -add=nano"
1179 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1180 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1181 output
="rockbox.ipod"
1182 appextra
="recorder:gui"
1185 bootoutput
="bootloader-$modelname.ipod"
1186 # toolset is the tools within the tools directory that we build for
1187 # this particular target.
1188 toolset
=$ipodbitmaptools
1189 # architecture, manufacturer and model for the target-tree build
1191 t_manufacturer
="ipod"
1197 modelname
="ipodvideo"
1198 target
="-DIPOD_VIDEO"
1200 tool
="$rootdir/tools/scramble -add=ipvd"
1201 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1202 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
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=ip3g"
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"
1246 tool
="$rootdir/tools/scramble -add=ip4g"
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
="ipodmini"
1266 target
="-DIPOD_MINI"
1269 tool
="$rootdir/tools/scramble -add=mini"
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
="ipodmini2g"
1289 target
="-DIPOD_MINI2G"
1292 tool
="$rootdir/tools/scramble -add=mn2g"
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"
1311 modelname
="ipod1g2g"
1312 target
="-DIPOD_1G2G"
1315 tool
="$rootdir/tools/scramble -add=1g2g"
1316 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1317 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1318 output
="rockbox.ipod"
1319 appextra
="recorder:gui"
1322 bootoutput
="bootloader-$modelname.ipod"
1323 # toolset is the tools within the tools directory that we build for
1324 # this particular target.
1325 toolset
=$ipodbitmaptools
1326 # architecture, manufacturer and model for the target-tree build
1328 t_manufacturer
="ipod"
1335 target
="-DIAUDIO_X5"
1338 tool
="$rootdir/tools/scramble -add=iax5"
1339 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1340 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1341 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1342 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1343 output
="rockbox.iaudio"
1344 appextra
="recorder:gui"
1347 # toolset is the tools within the tools directory that we build for
1348 # this particular target.
1349 toolset
="$iaudiobitmaptools"
1350 # architecture, manufacturer and model for the target-tree build
1352 t_manufacturer
="iaudio"
1359 target
="-DIAUDIO_M5"
1362 tool
="$rootdir/tools/scramble -add=iam5"
1363 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1364 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1365 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1366 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1367 output
="rockbox.iaudio"
1368 appextra
="recorder:gui"
1371 # toolset is the tools within the tools directory that we build for
1372 # this particular target.
1373 toolset
="$iaudiobitmaptools"
1374 # architecture, manufacturer and model for the target-tree build
1376 t_manufacturer
="iaudio"
1386 tool
="$rootdir/tools/scramble -add=i7"
1387 boottool
="$rootdir/tools/scramble -tcc=crc"
1388 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1389 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1390 output
="rockbox.iaudio"
1391 appextra
="recorder:gui"
1394 bootoutput
="I7_FW.BIN"
1395 # toolset is the tools within the tools directory that we build for
1396 # this particular target.
1397 toolset
="$tccbitmaptools"
1398 # architecture, manufacturer and model for the target-tree build
1400 t_manufacturer
="tcc77x"
1410 tool
="$rootdir/tools/scramble -add=d2"
1411 boottool
="$rootdir/tools/scramble -tcc=crc"
1412 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1413 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1415 appextra
="recorder:gui"
1418 toolset
="$tccbitmaptools"
1419 # architecture, manufacturer and model for the target-tree build
1421 t_manufacturer
="tcc780x"
1428 target
="-DIAUDIO_M3"
1431 tool
="$rootdir/tools/scramble -add=iam3"
1432 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1433 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1434 output
="rockbox.iaudio"
1435 appextra
="recorder:gui"
1438 # toolset is the tools within the tools directory that we build for
1439 # this particular target.
1440 toolset
="$iaudiobitmaptools"
1441 # architecture, manufacturer and model for the target-tree build
1443 t_manufacturer
="iaudio"
1449 modelname
="gigabeatf"
1450 target
="-DGIGABEAT_F"
1453 tool
="$rootdir/tools/scramble -add=giga"
1454 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1455 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1456 output
="rockbox.gigabeat"
1457 appextra
="recorder:gui"
1460 toolset
=$gigabeatbitmaptools
1461 boottool
="$rootdir/tools/scramble -gigabeat"
1462 bootoutput
="FWIMG01.DAT"
1463 # architecture, manufacturer and model for the target-tree build
1465 t_manufacturer
="s3c2440"
1466 t_model
="gigabeat-fx"
1471 modelname
="gigabeats"
1472 target
="-DGIGABEAT_S"
1475 tool
="$rootdir/tools/scramble -add=gigs"
1476 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1477 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1478 output
="rockbox.gigabeat"
1479 appextra
="recorder:gui"
1482 toolset
="$gigabeatbitmaptools mknkboot"
1483 boottool
="$rootdir/tools/scramble -gigabeats"
1485 # architecture, manufacturer and model for the target-tree build
1487 t_manufacturer
="imx31"
1488 t_model
="gigabeat-s"
1493 modelname
="mrobe500"
1494 target
="-DMROBE_500"
1497 tool
="$rootdir/tools/scramble -add=m500"
1498 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1499 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1500 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1501 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1502 output
="rockbox.mrobe500"
1503 appextra
="recorder:gui"
1506 toolset
=$gigabeatbitmaptools
1508 bootoutput
="rockbox.mrboot"
1509 # architecture, manufacturer and model for the target-tree build
1511 t_manufacturer
="tms320dm320"
1517 modelname
="mrobe100"
1518 target
="-DMROBE_100"
1521 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1522 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1523 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1524 output
="rockbox.mi4"
1525 appextra
="recorder:gui"
1528 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1529 bootoutput
="pp5020.mi4"
1530 # toolset is the tools within the tools directory that we build for
1531 # this particular target.
1532 toolset
=$scramblebitmaptools
1533 # architecture, manufacturer and model for the target-tree build
1535 t_manufacturer
="olympus"
1541 modelname
="logikdax"
1542 target
="-DLOGIK_DAX"
1545 tool
="$rootdir/tools/scramble -add=ldax"
1546 boottool
="$rootdir/tools/scramble -tcc=crc"
1547 bootoutput
="player.rom"
1548 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1549 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1550 output
="rockbox.logik"
1551 appextra
="recorder:gui"
1554 # toolset is the tools within the tools directory that we build for
1555 # this particular target.
1556 toolset
=$tccbitmaptools
1557 # architecture, manufacturer and model for the target-tree build
1559 t_manufacturer
="tcc77x"
1565 modelname
="creativezvm30"
1566 target
="-DCREATIVE_ZVM"
1569 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1570 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1571 tool
="$rootdir/tools/scramble -creative=zvm"
1573 output
="rockbox.zvm"
1574 appextra
="recorder:gui"
1577 toolset
=$ipodbitmaptools
1578 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1579 bootoutput
="rockbox.zvmboot"
1580 # architecture, manufacturer and model for the target-tree build
1582 t_manufacturer
="tms320dm320"
1583 t_model
="creative-zvm"
1588 modelname
="creativezvm60"
1589 target
="-DCREATIVE_ZVM60GB"
1592 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1593 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1594 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1596 output
="rockbox.zvm60"
1597 appextra
="recorder:gui"
1600 toolset
=$ipodbitmaptools
1601 boottool
="$rootdir/tools/scramble -creative=zvm60"
1602 bootoutput
="rockbox.zvm60boot"
1603 # architecture, manufacturer and model for the target-tree build
1605 t_manufacturer
="tms320dm320"
1606 t_model
="creative-zvm"
1609 92|creativezenvision
)
1611 modelname
="creativezv"
1612 target
="-DCREATIVE_ZV"
1615 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1616 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1617 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1620 appextra
="recorder:gui"
1623 toolset
=$ipodbitmaptools
1624 boottool
="$rootdir/tools/scramble -creative=zenvision"
1625 bootoutput
="rockbox.zvboot"
1626 # architecture, manufacturer and model for the target-tree build
1628 t_manufacturer
="tms320dm320"
1629 t_model
="creative-zvm"
1635 target
="-DSANSA_E200"
1636 memory
=32 # supposedly
1638 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1639 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1640 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1641 output
="rockbox.mi4"
1642 appextra
="recorder:gui"
1645 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1646 bootoutput
="PP5022.mi4"
1647 # toolset is the tools within the tools directory that we build for
1648 # this particular target.
1649 toolset
=$scramblebitmaptools
1650 # architecture, manufacturer and model for the target-tree build
1652 t_manufacturer
="sandisk"
1653 t_model
="sansa-e200"
1657 # the e200R model is pretty much identical to the e200, it only has a
1658 # different option to the scramble tool when building a bootloader and
1659 # makes the bootloader output file name in all lower case.
1662 target
="-DSANSA_E200"
1663 memory
=32 # supposedly
1665 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1666 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1667 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1668 output
="rockbox.mi4"
1669 appextra
="recorder:gui"
1672 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1673 bootoutput
="pp5022.mi4"
1674 # toolset is the tools within the tools directory that we build for
1675 # this particular target.
1676 toolset
=$scramblebitmaptools
1677 # architecture, manufacturer and model for the target-tree build
1679 t_manufacturer
="sandisk"
1680 t_model
="sansa-e200"
1686 target
="-DSANSA_C200"
1687 memory
=32 # supposedly
1689 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
1690 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1691 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1692 output
="rockbox.mi4"
1693 appextra
="recorder:gui"
1696 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
1697 bootoutput
="firmware.mi4"
1698 # toolset is the tools within the tools directory that we build for
1699 # this particular target.
1700 toolset
=$scramblebitmaptools
1701 # architecture, manufacturer and model for the target-tree build
1703 t_manufacturer
="sandisk"
1704 t_model
="sansa-c200"
1710 target
="-DSANSA_M200"
1713 tool
="$rootdir/tools/scramble -add=m200"
1714 boottool
="$rootdir/tools/scramble -tcc=crc"
1715 bootoutput
="player.rom"
1716 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1717 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1718 output
="rockbox.m200"
1719 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_C100"
1737 tool
="$rootdir/tools/scramble -add=c100"
1738 boottool
="$rootdir/tools/scramble -tcc=crc"
1739 bootoutput
="player.rom"
1740 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1741 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1742 output
="rockbox.c100"
1743 appextra
="recorder:gui"
1746 # toolset is the tools within the tools directory that we build for
1747 # this particular target.
1748 toolset
=$tccbitmaptools
1749 # architecture, manufacturer and model for the target-tree build
1751 t_manufacturer
="tcc77x"
1758 target
="-DSANSA_CLIP"
1760 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1761 bmp2rb_native
="$bmp2rb_mono"
1762 tool
="$rootdir/tools/scramble -add=clip"
1763 output
="rockbox.sansa"
1764 bootoutput
="bootloader-clip.sansa"
1765 appextra
="recorder:gui"
1768 toolset
=$scramblebitmaptools
1770 t_manufacturer
="as3525"
1771 t_model
="sansa-clip"
1779 target
="-DSANSA_E200V2"
1781 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1782 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1783 tool
="$rootdir/tools/scramble -add=e2v2"
1784 output
="rockbox.sansa"
1785 bootoutput
="bootloader-e200v2.sansa"
1786 appextra
="recorder:gui"
1789 toolset
=$scramblebitmaptools
1791 t_manufacturer
="as3525"
1792 t_model
="sansa-e200v2"
1800 target
="-DSANSA_M200V4"
1802 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1803 bmp2rb_native
="$bmp2rb_mono"
1804 tool
="$rootdir/tools/scramble -add=m2v4"
1805 output
="rockbox.sansa"
1806 bootoutput
="bootloader-m200v4.sansa"
1807 appextra
="recorder:gui"
1810 toolset
=$scramblebitmaptools
1812 t_manufacturer
="as3525"
1813 t_model
="sansa-m200v4"
1821 target
="-DSANSA_FUZE"
1823 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1824 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1825 tool
="$rootdir/tools/scramble -add=fuze"
1826 output
="rockbox.sansa"
1827 bootoutput
="bootloader-fuze.sansa"
1828 appextra
="recorder:gui"
1831 toolset
=$scramblebitmaptools
1833 t_manufacturer
="as3525"
1834 t_model
="sansa-fuze"
1842 target
="-DSANSA_C200V2"
1843 memory
=2 # as per OF diagnosis mode
1844 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1845 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1846 tool
="$rootdir/tools/scramble -add=c2v2"
1847 output
="rockbox.sansa"
1848 bootoutput
="bootloader-c200v2.sansa"
1849 appextra
="recorder:gui"
1852 # toolset is the tools within the tools directory that we build for
1853 # this particular target.
1854 toolset
=$scramblebitmaptools
1855 # architecture, manufacturer and model for the target-tree build
1857 t_manufacturer
="as3525"
1858 t_model
="sansa-c200v2"
1863 echo "Sansa Clipv2 is not yet supported !"
1867 target
="-DSANSA_CLIPV2"
1870 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1871 bmp2rb_native
="$bmp2rb_mono"
1872 tool
="$rootdir/tools/scramble -add=clv2"
1873 output
="rockbox.sansa"
1874 bootoutput
="bootloader-clipv2.sansa"
1875 appextra
="recorder:gui"
1878 toolset
=$scramblebitmaptools
1880 t_manufacturer
="as3525"
1881 t_model
="sansa-clipv2"
1887 target
="-DELIO_TPJ1022"
1890 tool
="$rootdir/tools/scramble -add tpj2"
1891 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1892 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1893 output
="rockbox.elio"
1894 appextra
="recorder:gui"
1897 boottool
="$rootdir/tools/scramble -mi4v2"
1898 bootoutput
="pp5020.mi4"
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
="tatung"
1911 target
="-DPHILIPS_SA9200"
1912 memory
=32 # supposedly
1914 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -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=9200 -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"
1935 target
="-DPHILIPS_HDD1630"
1936 memory
=32 # supposedly
1938 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
1939 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1940 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1941 output
="rockbox.mi4"
1942 appextra
="recorder:gui"
1945 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
1946 bootoutput
="FWImage.ebn"
1947 # toolset is the tools within the tools directory that we build for
1948 # this particular target.
1949 toolset
=$scramblebitmaptools
1950 # architecture, manufacturer and model for the target-tree build
1952 t_manufacturer
="philips"
1958 modelname
="meizum6sl"
1959 target
="-DMEIZU_M6SL"
1963 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1964 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1965 output
="rockbox.meizu"
1966 appextra
="recorder:gui"
1969 toolset
=$genericbitmaptools
1971 bootoutput
="rockboot.ebn"
1972 # architecture, manufacturer and model for the target-tree build
1974 t_manufacturer
="s5l8700"
1975 t_model
="meizu-m6sl"
1980 modelname
="meizum6sp"
1981 target
="-DMEIZU_M6SP"
1985 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1986 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1987 output
="rockbox.meizu"
1988 appextra
="recorder:gui"
1991 toolset
=$genericbitmaptools
1993 bootoutput
="rockboot.ebn"
1994 # architecture, manufacturer and model for the target-tree build
1996 t_manufacturer
="s5l8700"
1997 t_model
="meizu-m6sp"
2007 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2008 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2009 output
="rockbox.meizu"
2010 appextra
="recorder:gui"
2013 toolset
=$genericbitmaptools
2015 bootoutput
="rockboot.ebn"
2016 # architecture, manufacturer and model for the target-tree build
2018 t_manufacturer
="s5l8700"
2024 modelname
="ondavx747"
2025 target
="-DONDA_VX747"
2028 tool
="$rootdir/tools/scramble -add=x747"
2029 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2030 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2031 output
="rockbox.vx747"
2032 appextra
="recorder:gui"
2035 toolset
=$genericbitmaptools
2037 bootoutput
="rockboot.vx747"
2038 # architecture, manufacturer and model for the target-tree build
2040 t_manufacturer
="ingenic_jz47xx"
2041 t_model
="onda_vx747"
2046 modelname
="ondavx767"
2047 target
="-DONDA_VX767"
2051 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2052 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2053 output
="rockbox.vx767"
2054 appextra
="recorder:gui"
2057 toolset
=$genericbitmaptools
2059 bootoutput
="rockboot.vx767"
2060 # architecture, manufacturer and model for the target-tree build
2062 t_manufacturer
="ingenic_jz47xx"
2063 t_model
="onda_vx767"
2068 modelname
="ondavx747p"
2069 target
="-DONDA_VX747P"
2072 tool
="$rootdir/tools/scramble -add=747p"
2073 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2074 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2075 output
="rockbox.vx747p"
2076 appextra
="recorder:gui"
2079 toolset
=$genericbitmaptools
2081 bootoutput
="rockboot.vx747p"
2082 # architecture, manufacturer and model for the target-tree build
2084 t_manufacturer
="ingenic_jz47xx"
2085 t_model
="onda_vx747"
2090 modelname
="ondavx777"
2091 target
="-DONDA_VX777"
2094 tool
="$rootdir/tools/scramble -add=x777"
2095 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2096 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2097 output
="rockbox.vx777"
2098 appextra
="recorder:gui"
2101 toolset
=$genericbitmaptools
2103 bootoutput
="rockboot.vx777"
2104 # architecture, manufacturer and model for the target-tree build
2106 t_manufacturer
="ingenic_jz47xx"
2107 t_model
="onda_vx747"
2112 modelname
="lyre_proto1"
2113 target
="-DLYRE_PROTO1"
2117 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2118 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2119 output
="rockbox.lyre"
2120 appextra
="recorder:gui"
2123 toolset
=$scramblebitmaptools
2125 bootoutput
="bootloader-proto1.lyre"
2126 # architecture, manufacturer and model for the target-tree build
2128 t_manufacturer
="at91sam"
2129 t_model
="lyre_proto1"
2135 target
="-DSAMSUNG_YH820"
2138 tool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
2139 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2140 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2141 output
="rockbox.mi4"
2142 appextra
="recorder:gui"
2145 boottool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
2146 bootoutput
="FW_YH820.mi4"
2147 # toolset is the tools within the tools directory that we build for
2148 # this particular target.
2149 toolset
=$scramblebitmaptools
2150 # architecture, manufacturer and model for the target-tree build
2152 t_manufacturer
="samsung"
2159 target
="-DSAMSUNG_YH920"
2162 tool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
2163 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2164 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
2165 output
="rockbox.mi4"
2166 appextra
="recorder:gui"
2169 boottool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
2170 bootoutput
="PP5020.mi4"
2171 # toolset is the tools within the tools directory that we build for
2172 # this particular target.
2173 toolset
=$scramblebitmaptools
2174 # architecture, manufacturer and model for the target-tree build
2176 t_manufacturer
="samsung"
2183 target
="-DSAMSUNG_YH925"
2186 tool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
2187 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2188 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2189 output
="rockbox.mi4"
2190 appextra
="recorder:gui"
2193 boottool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
2194 bootoutput
="FW_YH925.mi4"
2195 # toolset is the tools within the tools directory that we build for
2196 # this particular target.
2197 toolset
=$scramblebitmaptools
2198 # architecture, manufacturer and model for the target-tree build
2200 t_manufacturer
="samsung"
2205 echo "Please select a supported target platform!"
2211 echo "Platform set to $modelname"
2215 ############################################################################
2216 # Amount of memory, for those that can differ. They have $memory unset at
2220 if [ -z "$memory" ]; then
2223 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2224 if [ "1" != `parse_args --ram` ]; then
2225 size
=`parse_args --ram`;
2239 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2240 if [ "1" != `parse_args --ram` ]; then
2241 size
=`parse_args --ram`;
2255 echo "Memory size selected: $memory MB"
2260 ##################################################################
2261 # Figure out build "type"
2264 # the ifp7x0 is the only platform that supports building a gdb stub like
2268 gdbstub
="(G)DB stub, "
2271 gdbstub
="(I)nstaller, "
2274 gdbstub
="(E)raser, "
2279 if [ "1" != `parse_args --type` ]; then
2280 btype
=`parse_args --type`;
2282 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2288 appsdir
='\$(ROOTDIR)/bootloader'
2290 extradefines
="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2292 echo "e200R-installer build selected"
2295 appsdir
='\$(ROOTDIR)/bootloader'
2297 echo "C2(4)0 or C2(5)0"
2301 extradefines
="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2302 echo "c240 eraser build selected"
2305 extradefines
="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2306 echo "c240 eraser build selected"
2310 echo "c200 eraser build selected"
2313 if test $t_manufacturer = "archos"; then
2314 # Archos SH-based players do this somewhat differently for
2316 appsdir
='\$(ROOTDIR)/flash/bootbox'
2319 appsdir
='\$(ROOTDIR)/bootloader'
2322 if test -n "$boottool"; then
2325 if test -n "$bootoutput"; then
2329 extradefines
="-DBOOTLOADER -ffunction-sections -fdata-sections"
2331 echo "Bootloader build selected"
2336 extradefines
="-DSIMULATOR"
2339 echo "Simulator build selected"
2342 echo "Advanced build selected"
2346 extradefines
="-DSTUB" # for target makefile symbol EXTRA_DEFINES
2347 appsdir
='\$(ROOTDIR)/gdb'
2356 echo "GDB stub build selected"
2361 echo "Manual build selected"
2364 if [ "$modelname" = "e200r" ]; then
2365 echo "Do not use the e200R target for regular builds. Use e200 instead."
2369 btype
="N" # set it explicitly since RET only gets here as well
2370 echo "Normal build selected"
2374 # to be able running "make manual" from non-manual configuration
2377 manualdev
="recorderv2fm"
2380 manualdev
="recorderv2fm"
2386 manualdev
="ipodmini"
2389 manualdev
=$modelname
2393 if [ -z "$debug" ]; then
2394 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2397 echo "Using source code root directory: $rootdir"
2399 # this was once possible to change at build-time, but no more:
2404 if [ "yes" = "$simulator" ]; then
2405 # setup compiler and things for simulator
2408 if [ -d "simdisk" ]; then
2409 echo "Subdirectory 'simdisk' already present"
2412 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2416 # Now, figure out version number of the (gcc) compiler we are about to use
2417 gccver
=`$CC -dumpversion`;
2419 # figure out the binutil version too and display it, mostly for the build
2420 # system etc to be able to see it easier
2421 if [ $uname = "Darwin" ]; then
2422 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2424 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2427 if [ -z "$gccver" ]; then
2428 echo "WARNING: The compiler you must use ($CC) is not in your path!"
2429 echo "WARNING: this may cause your build to fail since we cannot do the"
2430 echo "WARNING: checks we want now."
2433 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2436 num1
=`echo $gccver | cut -d . -f1`
2437 num2
=`echo $gccver | cut -d . -f2`
2438 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
2445 echo "Using $CC $gccver ($gccnum)"
2447 if test "$gccnum" -ge "400"; then
2448 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
2449 # so we ignore that warnings for now
2451 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
2454 if test "$gccnum" -ge "401"; then
2455 # this is a lame hack to avoid "warning: dereferencing type-punned pointer
2456 # will break strict-aliasing rules"
2458 GCCOPTS
="$GCCOPTS -fno-strict-aliasing"
2461 if test "$gccnum" -ge "402"; then
2462 # disable warning about "warning: initialized field overwritten" as gcc 4.2
2463 # and later would throw it for several valid cases
2464 GCCOPTS
="$GCCOPTS -Wno-override-init"
2472 # cross-compile for win32
2475 # Verify that the cross-compiler is of a recommended version!
2476 if test "$gccver" != "$gccchoice"; then
2477 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
2478 echo "WARNING: version $gccchoice!"
2479 echo "WARNING: This may cause your build to fail since it may be a version"
2480 echo "WARNING: that isn't functional or known to not be the best choice."
2481 echo "WARNING: If you suffer from build problems, you know that this is"
2482 echo "WARNING: a likely source for them..."
2490 echo "Using $LD $ldver"
2492 # check the compiler for SH platforms
2493 if test "$CC" = "sh-elf-gcc"; then
2494 if test "$gccnum" -lt "400"; then
2495 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
2496 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2498 # figure out patch status
2499 gccpatch
=`$CC --version`;
2501 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
2502 echo "gcc $gccver is rockbox patched"
2503 # then convert -O to -Os to get smaller binaries!
2504 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2506 echo "WARNING: You use an unpatched gcc compiler: $gccver"
2507 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
2512 if test "$CC" = "m68k-elf-gcc"; then
2513 # convert -O to -Os to get smaller binaries!
2514 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2517 if [ "1" != `parse_args --ccache` ]; then
2518 echo "Enable ccache for building"
2521 if [ "1" = `parse_args --no-ccache` ]; then
2522 ccache
=`findtool ccache`
2523 if test -n "$ccache"; then
2524 echo "Found and uses ccache ($ccache)"
2529 # figure out the full path to the various commands if possible
2530 HOSTCC
=`findtool gcc --lit`
2531 HOSTAR
=`findtool ar --lit`
2532 CC
=`findtool ${CC} --lit`
2533 LD
=`findtool ${AR} --lit`
2534 AR
=`findtool ${AR} --lit`
2535 AS
=`findtool ${AS} --lit`
2536 OC
=`findtool ${OC} --lit`
2537 WINDRES
=`findtool ${WINDRES} --lit`
2538 DLLTOOL
=`findtool ${DLLTOOL} --lit`
2539 DLLWRAP
=`findtool ${DLLWRAP} --lit`
2540 RANLIB
=`findtool ${RANLIB} --lit`
2542 if test -n "$ccache"; then
2546 if test "X$endian" = "Xbig"; then
2547 defendian
="ROCKBOX_BIG_ENDIAN"
2549 defendian
="ROCKBOX_LITTLE_ENDIAN"
2552 if [ "1" != `parse_args --rbdir` ]; then
2553 rbdir
=`parse_args --rbdir`;
2554 echo "Using alternate rockbox dir: ${rbdir}"
2558 -e "s,@ENDIAN@,${defendian},g" \
2559 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2560 -e "s,@config_rtc@,$config_rtc,g" \
2561 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2562 -e "s,@RBDIR@,${rbdir},g" \
2563 -e "s,@have_backlight@,$have_backlight,g" \
2564 -e "s,@have_fmradio_in@,$have_fmradio_in,g" \
2565 -e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \
2567 /* This header was made by configure */
2568 #ifndef __BUILD_AUTOCONF_H
2569 #define __BUILD_AUTOCONF_H
2571 /* Define endianess for the target or simulator platform */
2574 /* Define this if you build rockbox to support the logf logging and display */
2575 #undef ROCKBOX_HAS_LOGF
2577 /* optional define for a backlight modded Ondio */
2580 /* optional define for FM radio mod for iAudio M5 */
2583 /* optional define for ATA poweroff on Player */
2586 /* optional defines for RTC mod for h1x0 */
2590 /* root of Rockbox */
2591 #define ROCKBOX_DIR "/@RBDIR@"
2593 #endif /* __BUILD_AUTOCONF_H */
2596 if test -n "$t_cpu"; then
2597 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
2598 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
2599 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
2603 if test "$simulator" = "yes"; then
2604 # add simul make stuff on the #SIMUL# line
2605 simmagic1
="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
2606 simmagic2
="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
2608 # delete the lines that match
2609 simmagic1
='/@SIMUL1@/D'
2610 simmagic2
='/@SIMUL2@/D'
2613 if test "$swcodec" = "yes"; then
2614 voicetoolset
="rbspeexenc voicefont wavtrim"
2616 voicetoolset
="voicefont wavtrim"
2619 if test "$apps" = "apps"; then
2620 # only when we build "real" apps we build the .lng files
2624 #### Fix the cmdline ###
2625 if test -n "$ccache"; then
2629 cmdline
="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2635 -e "s,@ROOTDIR@,${rootdir},g" \
2636 -e "s,@DEBUG@,${debug},g" \
2637 -e "s,@MEMORY@,${memory},g" \
2638 -e "s,@TARGET_ID@,${target_id},g" \
2639 -e "s,@TARGET@,${target},g" \
2640 -e "s,@CPU@,${t_cpu},g" \
2641 -e "s,@MANUFACTURER@,${t_manufacturer},g" \
2642 -e "s,@MODELNAME@,${modelname},g" \
2643 -e "s,@LANGUAGE@,${language},g" \
2644 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
2645 -e "s,@PWD@,${pwd},g" \
2646 -e "s,@HOSTCC@,${HOSTCC},g" \
2647 -e "s,@HOSTAR@,${HOSTAR},g" \
2648 -e "s,@CC@,${CC},g" \
2649 -e "s,@LD@,${LD},g" \
2650 -e "s,@AR@,${AR},g" \
2651 -e "s,@AS@,${AS},g" \
2652 -e "s,@OC@,${OC},g" \
2653 -e "s,@WINDRES@,${WINDRES},g" \
2654 -e "s,@DLLTOOL@,${DLLTOOL},g" \
2655 -e "s,@DLLWRAP@,${DLLWRAP},g" \
2656 -e "s,@RANLIB@,${RANLIB},g" \
2657 -e "s,@TOOL@,${tool},g" \
2658 -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
2659 -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
2660 -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
2661 -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
2662 -e "s,@OUTPUT@,${output},g" \
2663 -e "s,@APPEXTRA@,${appextra},g" \
2664 -e "s,@ARCHOSROM@,${archosrom},g" \
2665 -e "s,@FLASHFILE@,${flash},g" \
2666 -e "s,@PLUGINS@,${plugins},g" \
2667 -e "s,@CODECS@,${swcodec},g" \
2668 -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
2669 -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
2670 -e "s,@GCCOPTS@,${GCCOPTS},g" \
2671 -e "s,@TARGET_INC@,${TARGET_INC},g" \
2672 -e "s!@LDOPTS@!${LDOPTS}!g" \
2673 -e "s,@LOADADDRESS@,${loadaddress},g" \
2674 -e "s,@EXTRADEF@,${extradefines},g" \
2675 -e "s,@APPSDIR@,${appsdir},g" \
2676 -e "s,@FIRMDIR@,${firmdir},g" \
2677 -e "s,@TOOLSDIR@,${toolsdir},g" \
2678 -e "s,@APPS@,${apps},g" \
2679 -e "s,@SIMVER@,${simver},g" \
2680 -e "s,@GCCVER@,${gccver},g" \
2681 -e "s,@GCCNUM@,${gccnum},g" \
2682 -e "s,@UNAME@,${uname},g" \
2683 -e "s,@ENDIAN@,${defendian},g" \
2684 -e "s,@TOOLSET@,${toolset},g" \
2687 -e "s,@MANUALDEV@,${manualdev},g" \
2688 -e "s,@ENCODER@,${ENC_CMD},g" \
2689 -e "s,@ENC_OPTS@,${ENC_OPTS},g" \
2690 -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
2691 -e "s,@TTS_OPTS@,${TTS_OPTS},g" \
2692 -e "s,@VOICETOOLSET@,${voicetoolset},g" \
2693 -e "s,@LANGS@,${buildlangs},g" \
2694 -e "s,@USE_ELF@,${USE_ELF},g" \
2695 -e "s,@RBDIR@,${rbdir},g" \
2696 -e "s,@PREFIX@,$PREFIX,g" \
2697 -e "s,@CMDLINE@,$cmdline,g" \
2699 ## Automatically generated. http://www.rockbox.org/
2701 export ROOTDIR=@ROOTDIR@
2702 export FIRMDIR=@FIRMDIR@
2703 export APPSDIR=@APPSDIR@
2704 export TOOLSDIR=@TOOLSDIR@
2705 export DOCSDIR=\$(ROOTDIR)/docs
2706 export MANUALDIR=\${ROOTDIR}/manual
2707 export DEBUG=@DEBUG@
2708 export MODELNAME=@MODELNAME@
2709 export ARCHOSROM=@ARCHOSROM@
2710 export FLASHFILE=@FLASHFILE@
2711 export TARGET_ID=@TARGET_ID@
2712 export TARGET=@TARGET@
2714 export MANUFACTURER=@MANUFACTURER@
2716 export BUILDDIR=@PWD@
2717 export LANGUAGE=@LANGUAGE@
2718 export VOICELANGUAGE=@VOICELANGUAGE@
2719 export MEMORYSIZE=@MEMORY@
2720 export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
2721 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
2722 export MKFIRMWARE=@TOOL@
2723 export BMP2RB_MONO=@BMP2RB_MONO@
2724 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
2725 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
2726 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
2727 export BINARY=@OUTPUT@
2728 export APPEXTRA=@APPEXTRA@
2729 export ENABLEDPLUGINS=@PLUGINS@
2730 export SOFTWARECODECS=@CODECS@
2731 export EXTRA_DEFINES=@EXTRADEF@
2732 export HOSTCC=@HOSTCC@
2733 export HOSTAR=@HOSTAR@
2739 export WINDRES=@WINDRES@
2740 export DLLTOOL=@DLLTOOL@
2741 export DLLWRAP=@DLLWRAP@
2742 export RANLIB=@RANLIB@
2743 export PREFIX=@PREFIX@
2744 export PROFILE_OPTS=@PROFILE_OPTS@
2745 export SIMVER=@SIMVER@
2746 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
2747 export GCCOPTS=@GCCOPTS@
2748 export TARGET_INC=@TARGET_INC@
2749 export LOADADDRESS=@LOADADDRESS@
2750 export SHARED_FLAG=@SHARED_FLAG@
2751 export LDOPTS=@LDOPTS@
2752 export GCCVER=@GCCVER@
2753 export GCCNUM=@GCCNUM@
2754 export UNAME=@UNAME@
2755 export MANUALDEV=@MANUALDEV@
2756 export TTS_OPTS=@TTS_OPTS@
2757 export TTS_ENGINE=@TTS_ENGINE@
2758 export ENC_OPTS=@ENC_OPTS@
2759 export ENCODER=@ENCODER@
2760 export USE_ELF=@USE_ELF@
2761 export RBDIR=@RBDIR@
2763 CONFIGURE_OPTIONS=@CMDLINE@
2765 include \$(TOOLSDIR)/root.make
2769 echo "Created Makefile"