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 -pipe -std=gnu99"
14 # global LD options for all platforms
18 use_logf
="#undef ROCKBOX_HAS_LOGF"
19 use_bootchart
="#undef DO_BOOTCHART"
21 scriptver
=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
34 # Begin Function Definitions
44 WINDRES
=${prefix}windres
45 DLLTOOL
=${prefix}dlltool
46 DLLWRAP
=${prefix}dllwrap
47 RANLIB
=${prefix}ranlib
55 echo "Select your platform: (S)DL, (A)ndroid (default: Android)"
56 if [ -z "$ARG_PLATFORM" ]; then
59 choice
="$APP_PLATFORM"
63 s|S
*) app_platform
="sdl" ;;
64 *|a|A
*) app_platform
="android" ;;
67 echo "Selected $app_platform platform"
68 echo "Enter the LCD width (default: 320)"
69 if [ -z "$ARG_LCDWIDTH" ]; then
72 app_lcd_width
=`$ARG_LCDWIDTH`
74 if [ -z "$app_lcd_width" ]; then app_lcd_width
="320"; fi
75 echo "Enter the LCD height (default: 480)"
76 if [ -z "$ARG_LCDHEIGHT" ]; then
77 app_lcd_height
=`input`
79 app_lcd_height
="$ARG_LCDHEIGHT"
81 if [ -z "$app_lcd_height" ]; then app_lcd_height
="480"; fi
82 echo "Selected $app_lcd_width x $app_lcd_height resolution"
84 app_lcd_width
="#define LCD_WIDTH $app_lcd_width"
85 app_lcd_height
="#define LCD_HEIGHT $app_lcd_height"
86 # setup files and paths depending on the platform
87 if [ "$app_platform" = "sdl" ]; then
88 if [ -z "$PREFIX" ]; then
89 rbdir
="/usr/local/share/rockbox"
90 bindir
="/usr/local/bin"
92 libdir
="/usr/local/lib"
95 rbdir
=`realpath $PREFIX/share/rockbox`
98 if [ -d bindir
]; then
99 bindir_full
=`realpath $bindir`
101 if [ -d libdir
]; then
102 libdir_full
=`realpath $libdir`
107 elif [ "$app_platform" = "android" ]; then
108 if [ -n "$PREFIX" ]; then
109 echo "WARNING: PREFIX not supported on Android. You can however use --rbdir"
111 if [ -z "$ANDROID_SDK_PATH" ]; then
112 echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH"
113 echo "environment variable point to the root directory of the Android SDK."
116 if [ -z "$ANDROID_NDK_PATH" ]; then
117 echo "ERROR: You need the Android NDK installed and have the ANDROID_NDK_PATH"
118 echo "environment variable point to the root directory of the Android NDK."
121 rbdir
="/data/data/org.rockbox/app_rockbox/rockbox"
122 bindir
="/data/data/org.rockbox/lib"
124 libdir
="/data/data/org.rockbox/app_rockbox"
126 output
="librockbox.so"
127 bootoutput
="librockbox.so"
132 if [ "$ARG_ARM_EABI" != "0" ]; then
133 prefixtools arm-elf-eabi-
141 # scan the $PATH for the given command
148 # echo "checks for $file in $path" >&2
149 if test -f "$path/$file"; then
154 # check whether caller wants literal return value if not found
155 if [ "$2" = "--lit" ]; then
160 # scan the $PATH for sdl-config - check whether for a (cross-)win32
169 #echo "checks for $file in $path" >&2
170 if test -f "$path/$file"; then
171 if [ "0" != `$path/$file --libs |grep -c mwindows` ]; then
172 if [ "yes" = "${winbuild}" ]; then
177 if [ "yes" != "${winbuild}" ]; then
187 if [ "$1" = "sdl" ]; then
189 elif [ "$1" = "android" ]; then
197 # default tool setup for native building
198 prefixtools
"$CROSS_COMPILE"
199 ARG_ARM_THUMB
=0 # can't use thumb in native builds
203 GCCOPTS
='-W -Wall -g -fno-builtin'
205 LDOPTS
='-lm' # button-sdl.c uses sqrt()
207 # default output binary name, don't override app_get_platform()
208 if [ "$app_type" != "sdl-app" ]; then
212 # default share option, override below if needed
213 SHARED_FLAG
="-shared"
215 if [ "$win32crosscompile" = "yes" ]; then
216 LDOPTS
="$LDOPTS -mconsole"
222 echo "Cygwin host detected"
224 LDOPTS
="$LDOPTS -mconsole"
230 echo "MinGW host detected"
232 LDOPTS
="$LDOPTS -mconsole"
238 echo "Linux host detected"
239 LDOPTS
="$LDOPTS -ldl"
243 echo "FreeBSD host detected"
244 LDOPTS
="$LDOPTS -ldl"
248 echo "Darwin host detected"
249 LDOPTS
="$LDOPTS -ldl"
251 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
255 echo "*Solaris host detected"
257 GCCOPTS
="$GCCOPTS -fPIC"
258 LDOPTS
="$LDOPTS -ldl"
262 echo "[ERROR] Unsupported system: $uname, fix configure and retry"
268 [ "$winbuild" != "yes" ] && GLOBAL_LDOPTS
="$GLOBAL_LDOPTS -Wl,-z,defs"
269 sdl
=`findsdl $winbuild`
271 if [ -n `echo $app_type | grep "sdl"` ]; then
272 if [ -z "$sdl" ]; then
273 echo "configure didn't find sdl-config, which indicates that you"
274 echo "don't have SDL (properly) installed. Please correct and"
275 echo "re-run configure!"
278 # generic sdl-config checker
279 GCCOPTS
="$GCCOPTS `$sdl --cflags`"
280 LDOPTS
="$LDOPTS `$sdl --libs`"
285 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
287 if test "X$win32crosscompile" != "Xyes"; then
290 # fPIC is needed to make shared objects link
291 # setting visibility to hidden is necessary to avoid strange crashes
292 # due to symbol clashing
293 GCCOPTS
="$GCCOPTS -fPIC -fvisibility=hidden"
294 # x86_64 supports MMX by default
298 echo "Enabling MMX support"
299 GCCOPTS
="$GCCOPTS -mmmx"
304 cat >$tmpdir/conftest-
$id.c
<<EOF
306 int main(int argc, char **argv)
309 char *varp = (char *)&var;
317 $CC -o $tmpdir/conftest-
$id $tmpdir/conftest-
$id.c
2>/dev
/null
319 # when cross compiling, the endianess cannot be detected because the above program doesn't run
320 # on the local machine. assume little endian but print a warning
321 endian
=`$tmpdir/conftest-$id 2> /dev/null`
322 if [ "$endian" != "" ] && [ $endian -gt "1" ]; then
330 if [ "$CROSS_COMPILE" != "" ]; then
331 echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!"
334 if [ "$app_type" = "sdl-sim" ]; then
335 echo "Simulator environment deemed $endian endian"
336 elif [ "$app_type" = "sdl-app" ]; then
337 echo "Application environment deemed $endian endian"
338 elif [ "$app_type" = "checkwps" ]; then
339 echo "CheckWPS environment deemed $endian endian"
342 # use wildcard here to make it work even if it was named *.exe like
344 rm -f $tmpdir/conftest-
$id*
346 # We are crosscompiling
347 # add cross-compiler option(s)
348 prefixtools i586-mingw32msvc-
349 LDOPTS
="$LDOPTS -mconsole"
350 output
="rockboxui.exe"
351 endian
="little" # windows is little endian
352 echo "Enabling MMX support"
353 GCCOPTS
="$GCCOPTS -mmmx"
358 # functions for setting up cross-compiler names and options
359 # also set endianess and what the exact recommended gcc version is
360 # the gcc version should most likely match what versions we build with
365 GCCOPTS
="$CCOPTS -m1"
366 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
372 prefixtools calmrisc16-unknown-elf-
373 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
374 GCCOPTIMIZE
="-fomit-frame-pointer"
379 prefixtools m68k-elf-
380 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
381 GCCOPTIMIZE
="-fomit-frame-pointer"
388 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
389 if test "X$1" != "Xshort" -a "$ARG_ARM_EABI" = "0"; then
390 GCCOPTS
="$GCCOPTS -mlong-calls"
392 GCCOPTIMIZE
="-fomit-frame-pointer"
398 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi"
399 if test "$modelname" != "gigabeatfx" -a "$t_manufacturer" != "as3525" -a "$ARG_ARM_EABI" = "0"; then
400 GCCOPTS
="$GCCOPTS -mlong-calls"
402 GCCOPTIMIZE
="-fomit-frame-pointer"
408 GCCOPTS
="$CCOPTS -mbig-endian -mcpu=arm940t"
409 if test "$ARG_ARM_EABI" = "0"; then
410 GCCOPTS
="$GCCOPTS -mlong-calls"
412 GCCOPTIMIZE
="-fomit-frame-pointer"
418 GCCOPTS
="$CCOPTS -mcpu=arm940t"
419 if test "$ARG_ARM_EABI" = "0"; then
420 GCCOPTS
="$GCCOPTS -mlong-calls"
422 GCCOPTIMIZE
="-fomit-frame-pointer"
428 GCCOPTS
="$CCOPTS -mcpu=arm9e"
429 if test "$ARG_ARM_EABI" = "0"; then
430 GCCOPTS
="$GCCOPTS -mlong-calls"
432 GCCOPTIMIZE
="-fomit-frame-pointer"
438 GCCOPTS
="$CCOPTS -mcpu=arm926ej-s"
439 if test "$t_manufacturer" != "as3525" -a "$ARG_ARM_EABI" = "0"; then
440 GCCOPTS
="$GCCOPTS -mlong-calls"
442 GCCOPTIMIZE
="-fomit-frame-pointer"
448 GCCOPTS
="$CCOPTS -mcpu=arm1136jf-s"
449 if test "$modelname" != "gigabeats" -a "$ARG_ARM_EABI" = "0"; then
450 GCCOPTS
="$GCCOPTS -mlong-calls"
452 GCCOPTIMIZE
="-fomit-frame-pointer"
458 GCCOPTS
="$CCOPTS -mcpu=arm1176jz-s"
459 if test "$ARG_ARM_EABI" = "0"; then
460 GCCOPTS
="$GCCOPTS -mlong-calls"
462 GCCOPTIMIZE
="-fomit-frame-pointer"
467 prefixtools mipsel-elf-
468 # mips is predefined, but we want it for paths. use __mips instead
469 GCCOPTS
="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls -Umips"
470 GCCOPTS
="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
471 GCCOPTIMIZE
="-fomit-frame-pointer"
478 prefixtools
$ANDROID_NDK_PATH/build
/prebuilt
/linux-x86
/arm-eabi-
$gccchoice/bin
/arm-eabi-
479 GCCOPTS
=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
480 GCCOPTS
="$GCCOPTS -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer"
481 GLOBAL_LDOPTS
="$GLOBAL_LDOPTS -nostdlib -lc -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -L$ANDROID_NDK_PATH/build/platforms/android-4/arch-arm/usr/lib/ -Wl,-rpath-link=$ANDROID_NKD_PATH/build/platforms/android-4/arch-arm/usr/lib"
482 LDOPTS
="$LDOPTS -shared -nostdlib -lm -ldl -llog"
483 extradefines
="$extradefines -DANDROID"
485 SHARED_FLAG
="-shared"
489 atype
=`echo "$1" | cut -c 2-`
490 ##################################################################
491 # Prompt for specific developer options
493 if [ "$atype" ]; then
498 printf "Enter your developer options (press only enter when done)\n\
499 (D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\
500 (T)est plugins, S(m)all C lib:"
501 if [ "$memory" = "2" ]; then
504 if [ "$modelname" = "archosplayer" ]; then
505 printf ", Use (A)TA poweroff"
507 if [ "$t_model" = "ondio" ]; then
508 printf ", (B)acklight MOD"
510 if [ "$modelname" = "iaudiom5" ]; then
511 printf ", (F)M radio MOD"
513 if [ "$modelname" = "iriverh120" ]; then
520 while [ $cont = "1" ]; do
522 if [ "$interact" ]; then
525 option
=`echo "$atype" | cut -c 1`
530 if [ "yes" = "$profile" ]; then
531 echo "Debug is incompatible with profiling"
533 echo "DEBUG build enabled"
538 echo "logf() support enabled"
542 echo "Using Rockbox' small C library"
543 extradefines
="$extradefines -DHAVE_ROCKBOX_C_LIBRARY"
546 echo "Including test plugins"
547 extradefines
="$extradefines -DHAVE_TEST_PLUGINS"
550 echo "bootchart enabled (logf also enabled)"
555 echo "Simulator build enabled"
559 if [ "yes" = "$use_debug" ]; then
560 echo "Profiling is incompatible with debug"
562 echo "Profiling support is enabled"
567 echo "Voice build selected"
571 if [ "$memory" = "2" ]; then
573 echo "Memory size selected: 8MB"
577 if [ "$modelname" = "archosplayer" ]; then
578 have_ata_poweroff
="#define HAVE_ATA_POWER_OFF"
579 echo "ATA power off enabled"
583 if [ "$t_model" = "ondio" ]; then
584 have_backlight
="#define HAVE_BACKLIGHT"
585 echo "Backlight functions enabled"
589 if [ "$modelname" = "iaudiom5" ]; then
590 have_fmradio_in
="#define HAVE_FMRADIO_IN"
591 echo "FM radio functions enabled"
595 if [ "$modelname" = "iriverh120" ]; then
596 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
597 have_rtc_alarm
="#define HAVE_RTC_ALARM"
598 echo "RTC functions enabled (DS1339/DS3231)"
602 echo "Enabling Windows 32 cross-compiling"
603 win32crosscompile
="yes"
605 "") # Match enter press when finished with advanced options
609 echo "[ERROR] Option $option unsupported"
612 if [ "$interact" ]; then
613 btype
="$btype$option"
615 atype
=`echo "$atype" | cut -c 2-`
616 [ "$atype" ] || cont
=0
621 if [ "yes" = "$voice" ]; then
622 # Ask about languages to build
624 voicelanguage
=`whichlang`
625 echo "Voice language set to $voicelanguage"
627 # Configure encoder and TTS engine for each language
628 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
629 voiceconfig
"$thislang"
632 if [ "yes" = "$use_debug" ]; then
634 GCCOPTS
="$GCCOPTS -g -DDEBUG"
636 if [ "yes" = "$logf" ]; then
637 use_logf
="#define ROCKBOX_HAS_LOGF 1"
639 if [ "yes" = "$bootchart" ]; then
640 use_bootchart
="#define DO_BOOTCHART 1"
642 if [ "yes" = "$simulator" ]; then
644 extradefines
="$extradefines -DSIMULATOR"
648 if [ "yes" = "$profile" ]; then
649 extradefines
="$extradefines -DRB_PROFILE"
650 PROFILE_OPTS
="-finstrument-functions"
654 # Configure voice settings
657 if [ ! "$ARG_TTS" ]; then
658 echo "Building $thislang voice for $modelname. Select options"
662 if [ -n "`findtool flite`" ]; then
666 DEFAULT_TTS_OPTS
=$FLITE_OPTS
667 DEFAULT_NOISEFLOOR
="500"
670 if [ -n "`findtool espeak`" ]; then
674 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
675 DEFAULT_NOISEFLOOR
="500"
678 if [ -n "`findtool festival`" ]; then
679 FESTIVAL
="(F)estival "
682 FESTIVAL_OPTS
="--language italian"
685 FESTIVAL_OPTS
="--language spanish"
688 FESTIVAL_OPTS
="--language finnish"
691 FESTIVAL_OPTS
="--language czech"
697 DEFAULT_TTS
="festival"
698 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
699 DEFAULT_NOISEFLOOR
="500"
702 if [ -n "`findtool swift`" ]; then
706 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
707 DEFAULT_NOISEFLOOR
="500"
710 # Allow SAPI if Windows is in use
711 if [ -n "`findtool winver`" ]; then
715 DEFAULT_TTS_OPTS
=$SAPI_OPTS
716 DEFAULT_NOISEFLOOR
="500"
720 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
721 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
725 if [ "$ARG_TTS" ]; then
728 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
731 advopts
="$advopts --tts=$option"
735 NOISEFLOOR
="500" # TODO: check this value
741 TTS_OPTS
=$ESPEAK_OPTS
744 TTS_ENGINE
="festival"
746 TTS_OPTS
=$FESTIVAL_OPTS
759 TTS_ENGINE
=$DEFAULT_TTS
760 TTS_OPTS
=$DEFAULT_TTS_OPTS
761 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
763 echo "Using $TTS_ENGINE for TTS"
765 # Select which voice to use for Festival
766 if [ "$TTS_ENGINE" = "festival" ]; then
767 voicelist
=`echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`
768 for voice
in $voicelist; do
769 TTS_FESTIVAL_VOICE
="$voice" # Default choice
772 if [ "$ARG_VOICE" ]; then
776 for voice
in $voicelist; do
777 printf "%3d. %s\n" "$i" "$voice"
780 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
784 for voice
in $voicelist; do
785 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
786 TTS_FESTIVAL_VOICE
="$voice"
790 advopts
="$advopts --voice=$CHOICE"
791 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
792 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
795 # Read custom tts options from command line
796 if [ "$ARG_TTSOPTS" ]; then
797 TTS_OPTS
="$ARG_TTSOPTS"
798 advopts
="$advopts --ttsopts='$TTS_OPTS'"
799 echo "$TTS_ENGINE options set to $TTS_OPTS"
802 if [ "$swcodec" = "yes" ]; then
805 ENC_OPTS
="-q 4 -c 10"
807 if [ -n "`findtool lame`" ]; then
810 ENC_OPTS
="--resample 12 -t -m m -h -V 9.999 -S -B 64 --vbr-new"
812 echo "You need LAME in the system path to build voice files for"
813 echo "HWCODEC targets."
818 echo "Using $ENCODER for encoding voice clips"
820 # Read custom encoder options from command line
821 if [ "$ARG_ENCOPTS" ]; then
822 ENC_OPTS
="$ARG_ENCOPTS"
823 advopts
="$advopts --encopts='$ENC_OPTS'"
824 echo "$ENCODER options set to $ENC_OPTS"
828 if [ -n "`findtool cygpath`" ]; then
829 TEMPDIR
=`cygpath . -a -w`
834 # figure out which languages that are around
835 for file in $rootdir/apps
/lang
/*.lang
; do
836 clean
=`basename $file .lang`
837 langs
="$langs $clean"
840 if [ "$ARG_LANG" ]; then
843 echo "Select a number for the language to use (default is english)"
844 # FIXME The multiple-language feature is currently broken
845 # echo "You may enter a comma-separated list of languages to build"
848 for one
in $langs; do
854 advopts
="$advopts --language=$pick"
859 # Allow the user to pass a comma-separated list of langauges
860 for thispick
in `echo $pick | sed 's/,/ /g'`; do
862 for one
in $langs; do
863 # Accept both the language number and name
864 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
865 if [ "$output" = "" ]; then
874 if [ -z "$output" ]; then
882 echo "Rockbox configure script."
883 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
884 echo "Do *NOT* run this within the tools directory!"
887 Usage: configure [OPTION]...
889 --target=TARGET Sets the target, TARGET can be either the target ID or
890 corresponding string. Run without this option to see all
893 --ram=RAM Sets the RAM for certain targets. Even though any number
894 is accepted, not every number is correct. The default
895 value will be applied, if you entered a wrong number
896 (which depends on the target). Watch the output. Run
897 without this option if you are not sure which the right
900 --type=TYPE Sets the build type. Shortcuts are also valid.
901 Run without this option to see all available types.
902 Multiple values are allowed and managed in the input
903 order. So --type=b stands for Bootloader build, while
904 --type=ab stands for "Backlight MOD" build.
906 --language=LANG Set the language used for voice generation (used only if
909 --tts=ENGINE Set the TTS engine used for voice generation (used only
912 --voice=VOICE Set voice to use with selected TTS (used only if TYPE is
915 --ttsopts=OPTS Set TTS engine manual options (used only if TYPE is AV).
917 --encopts=OPTS Set encoder manual options (used only if ATYPE is AV).
919 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
920 This is useful for having multiple alternate builds on
921 your device that you can load with ROLO. However as the
922 bootloader looks for .rockbox you won't be able to boot
925 --ccache Enable ccache use (done by default these days)
926 --no-ccache Disable ccache use
928 --eabi Make configure prefer toolchains that are able to compile
929 for the new ARM standard abi EABI
930 --no-eabi The opposite of --eabi (prefer old non-eabi toolchains)
931 --thumb Build with -mthumb (for ARM builds)
932 --no-thumb The opposite of --thumb (don't use thumb even for targets
933 where this is the default
934 --prefix Target installation directory
935 --help Shows this message (must not be used with other options)
957 --ccache) ARG_CCACHE
=1;;
958 --no-ccache) ARG_CCACHE
=0;;
959 --encopts=*) ARG_ENCOPTS
=`echo "$arg" | cut -d = -f 2`;;
960 --language=*) ARG_LANG
=`echo "$arg" | cut -d = -f 2`;;
961 --lcdwidth=*) ARG_LCDWIDTH
=`echo "$arg" | cut -d = -f 2`;;
962 --lcdheight=*) ARG_LCDHEIGHT
=`echo "$arg" | cut -d = -f 2`;;
963 --platform=*) ARG_PLATFORM
=`echo "$arg" | cut -d = -f 2`;;
964 --ram=*) ARG_RAM
=`echo "$arg" | cut -d = -f 2`;;
965 --rbdir=*) ARG_RBDIR
=`echo "$arg" | cut -d = -f 2`;;
966 --target=*) ARG_TARGET
=`echo "$arg" | cut -d = -f 2`;;
967 --tts=*) ARG_TTS
=`echo "$arg" | cut -d = -f 2`;;
968 --ttsopts=*) ARG_TTSOPTS
=`echo "$arg" | cut -d = -f 2`;;
969 --type=*) ARG_TYPE
=`echo "$arg" | cut -d = -f 2`;;
970 --voice=*) ARG_VOICE
=`echo "$arg" | cut -d = -f 2`;;
971 --eabi) ARG_ARM_EABI
=1;;
972 --no-eabi) ARG_ARM_EABI
=0;;
973 --thumb) ARG_ARM_THUMB
=1;;
974 --no-thumb) ARG_ARM_THUMB
=0;;
975 --prefix=*) PREFIX
=`echo "$arg" | cut -d = -f 2`;;
977 *) err
=1; echo "[ERROR] Option '$arg' unsupported";;
984 if [ "$TMPDIR" != "" ]; then
989 echo Using temporary directory
$tmpdir
991 if test -r "configure"; then
992 # this is a check for a configure script in the current directory, it there
993 # is one, try to figure out if it is this one!
995 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
996 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
997 echo "It will only cause you pain and grief. Instead do this:"
1000 echo " mkdir build-dir"
1001 echo " cd build-dir"
1002 echo " ../tools/configure"
1004 echo "Much happiness will arise from this. Enjoy"
1009 # get our current directory
1012 if { echo $pwd |
grep " "; } then
1013 echo "You're running this script in a path that contains space. The build"
1014 echo "system is unfortunately not clever enough to deal with this. Please"
1015 echo "run the script from a different path, rename the path or fix the build"
1020 if [ -z "$rootdir" ]; then
1021 ##################################################################
1022 # Figure out where the source code root is!
1024 rootdir
=`dirname $0`/..
/
1026 #####################################################################
1027 # Convert the possibly relative directory name to an absolute version
1033 # cd back to the build dir
1038 appsdir
='\$(ROOTDIR)/apps'
1039 firmdir
='\$(ROOTDIR)/firmware'
1040 toolsdir
='\$(ROOTDIR)/tools'
1043 ##################################################################
1044 # Figure out target platform
1047 if [ "$ARG_TARGET" ]; then
1048 buildfor
=$ARG_TARGET
1050 echo "Enter target platform:"
1052 ==Archos== ==iriver== ==Apple iPod==
1053 0) Player/Studio 10) H120/H140 20) Color/Photo
1054 1) Recorder 11) H320/H340 21) Nano 1G
1055 2) FM Recorder 12) iHP-100/110/115 22) Video
1056 3) Recorder v2 13) iFP-790 23) 3G
1057 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
1058 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
1059 6) AV300 26) Mini 2G
1060 ==Toshiba== 27) 1G, 2G
1061 ==Cowon/iAudio== 40) Gigabeat F/X 28) Nano 2G
1062 30) X5/X5V/X5L 41) Gigabeat S
1063 31) M5/M5L ==SanDisk==
1064 32) 7 ==Olympus= 50) Sansa e200
1065 33) D2 70) M:Robe 500 51) Sansa e200R
1066 34) M3/M3L 71) M:Robe 100 52) Sansa c200
1068 ==Creative== ==Philips== 54) Sansa c100
1069 90) Zen Vision:M 30GB 100) GoGear SA9200 55) Sansa Clip
1070 91) Zen Vision:M 60GB 101) GoGear HDD1630/ 56) Sansa e200v2
1071 92) Zen Vision HDD1830 57) Sansa m200v4
1072 102) GoGear HDD6330 58) Sansa Fuze
1073 ==Onda== 59) Sansa c200v2
1074 120) VX747 ==Meizu== 60) Sansa Clipv2
1075 121) VX767 110) M6SL 61) Sansa View
1076 122) VX747+ 111) M6SP 62) Sansa Clip+
1077 123) VX777 112) M3 63) Sansa Fuze v2
1080 ==Samsung== ==Tatung== 80) DAX 1GB MP3/DAB
1081 140) YH-820 150) Elio TPJ-1022
1082 141) YH-920 ==Lyre project==
1083 142) YH-925 ==Packard Bell== 130) Lyre proto 1
1084 143) YP-S3 160) Vibe 500 131) Mini2440
1086 ==MPIO== == Application ==
1087 170) HD200 200) Application
1094 # Set of tools built for all target platforms:
1095 toolset
="rdf2binary convbdf codepages"
1097 # Toolsets for some target families:
1098 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
1099 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
1100 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
1101 ipodbitmaptools
="$toolset scramble bmp2rb"
1102 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
1103 tccbitmaptools
="$toolset scramble bmp2rb"
1104 # generic is used by IFP, Meizu and Onda
1105 genericbitmaptools
="$toolset bmp2rb"
1106 # scramble is used by all other targets
1107 scramblebitmaptools
="$genericbitmaptools scramble"
1110 # ---- For each target ----
1113 # target_id: a unique number identifying this target, IS NOT the menu number.
1114 # Just use the currently highest number+1 when you add a new
1116 # modelname: short model name used all over to identify this target
1117 # memory: number of megabytes of RAM this target has. If the amount can
1118 # be selected by the size prompt, let memory be unset here
1119 # target: -Ddefine passed to the build commands to make the correct
1120 # config-*.h file get included etc
1121 # tool: the tool that takes a plain binary and converts that into a
1122 # working "firmware" file for your target
1123 # output: the final output file name
1124 # boottool: the tool that takes a plain binary and generates a bootloader
1125 # file for your target (or blank to use $tool)
1126 # bootoutput:the final output file name for the bootloader (or blank to use
1128 # appextra: passed to the APPEXTRA variable in the Makefiles.
1129 # TODO: add proper explanation
1130 # archosrom: used only for Archos targets that build a special flashable .ucl
1132 # flash: name of output for flashing, for targets where there's a special
1133 # file output for this.
1134 # plugins: set to 'yes' to build the plugins. Early development builds can
1135 # set this to no in the early stages to have an easier life for a
1137 # swcodec: set 'yes' on swcodec targets
1138 # toolset: lists what particular tools in the tools/ directory that this
1139 # target needs to have built prior to building Rockbox
1142 # *cc: sets up gcc and compiler options for your target builds. Note
1143 # that if you select a simulator build, the compiler selection is
1144 # overridden later in the script.
1150 modelname
="archosplayer"
1151 target
="-DARCHOS_PLAYER"
1153 tool
="$rootdir/tools/scramble"
1155 appextra
="player:gui"
1156 archosrom
="$pwd/rombox.ucl"
1157 flash
="$pwd/rockbox.ucl"
1161 # toolset is the tools within the tools directory that we build for
1162 # this particular target.
1163 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
1165 # Note: the convbdf is present in the toolset just because: 1) the
1166 # firmware/Makefile assumes it is present always, and 2) we will need it when we
1167 # build the player simulator
1170 t_manufacturer
="archos"
1176 modelname
="archosrecorder"
1177 target
="-DARCHOS_RECORDER"
1179 tool
="$rootdir/tools/scramble"
1180 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1181 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1183 appextra
="recorder:gui:radio"
1184 #archosrom="$pwd/rombox.ucl"
1185 flash
="$pwd/rockbox.ucl"
1188 # toolset is the tools within the tools directory that we build for
1189 # this particular target.
1190 toolset
=$archosbitmaptools
1192 t_manufacturer
="archos"
1198 modelname
="archosfmrecorder"
1199 target
="-DARCHOS_FMRECORDER"
1201 tool
="$rootdir/tools/scramble -fm"
1202 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1203 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1205 appextra
="recorder:gui:radio"
1206 #archosrom="$pwd/rombox.ucl"
1207 flash
="$pwd/rockbox.ucl"
1210 # toolset is the tools within the tools directory that we build for
1211 # this particular target.
1212 toolset
=$archosbitmaptools
1214 t_manufacturer
="archos"
1220 modelname
="archosrecorderv2"
1221 target
="-DARCHOS_RECORDERV2"
1223 tool
="$rootdir/tools/scramble -v2"
1224 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1225 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1227 appextra
="recorder:gui:radio"
1228 #archosrom="$pwd/rombox.ucl"
1229 flash
="$pwd/rockbox.ucl"
1232 # toolset is the tools within the tools directory that we build for
1233 # this particular target.
1234 toolset
=$archosbitmaptools
1236 t_manufacturer
="archos"
1242 modelname
="archosondiosp"
1243 target
="-DARCHOS_ONDIOSP"
1245 tool
="$rootdir/tools/scramble -osp"
1246 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1247 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1249 appextra
="recorder:gui:radio"
1250 #archosrom="$pwd/rombox.ucl"
1251 flash
="$pwd/rockbox.ucl"
1254 # toolset is the tools within the tools directory that we build for
1255 # this particular target.
1256 toolset
=$archosbitmaptools
1258 t_manufacturer
="archos"
1264 modelname
="archosondiofm"
1265 target
="-DARCHOS_ONDIOFM"
1267 tool
="$rootdir/tools/scramble -ofm"
1268 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1269 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1271 appextra
="recorder:gui:radio"
1272 #archosrom="$pwd/rombox.ucl"
1273 flash
="$pwd/rockbox.ucl"
1276 toolset
=$archosbitmaptools
1278 t_manufacturer
="archos"
1284 modelname
="archosav300"
1285 target
="-DARCHOS_AV300"
1288 tool
="$rootdir/tools/scramble -mm=C"
1289 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1290 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1292 appextra
="recorder:gui:radio"
1295 # toolset is the tools within the tools directory that we build for
1296 # this particular target.
1297 toolset
="$toolset scramble descramble bmp2rb"
1298 # architecture, manufacturer and model for the target-tree build
1300 t_manufacturer
="archos"
1306 modelname
="iriverh120"
1307 target
="-DIRIVER_H120"
1310 tool
="$rootdir/tools/scramble -add=h120"
1311 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1312 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1313 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1314 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1315 output
="rockbox.iriver"
1316 bootoutput
="bootloader.iriver"
1317 appextra
="recorder:gui:radio"
1318 flash
="$pwd/rombox.iriver"
1321 # toolset is the tools within the tools directory that we build for
1322 # this particular target.
1323 toolset
=$iriverbitmaptools
1325 t_manufacturer
="iriver"
1331 modelname
="iriverh300"
1332 target
="-DIRIVER_H300"
1335 tool
="$rootdir/tools/scramble -add=h300"
1336 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1337 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1338 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1339 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1340 output
="rockbox.iriver"
1341 appextra
="recorder:gui:radio"
1344 # toolset is the tools within the tools directory that we build for
1345 # this particular target.
1346 toolset
=$iriverbitmaptools
1348 t_manufacturer
="iriver"
1354 modelname
="iriverh100"
1355 target
="-DIRIVER_H100"
1358 tool
="$rootdir/tools/scramble -add=h100"
1359 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1360 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1361 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1362 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1363 output
="rockbox.iriver"
1364 bootoutput
="bootloader.iriver"
1365 appextra
="recorder:gui:radio"
1366 flash
="$pwd/rombox.iriver"
1369 # toolset is the tools within the tools directory that we build for
1370 # this particular target.
1371 toolset
=$iriverbitmaptools
1373 t_manufacturer
="iriver"
1379 modelname
="iriverifp7xx"
1380 target
="-DIRIVER_IFP7XX"
1384 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1385 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1386 output
="rockbox.wma"
1387 appextra
="recorder:gui:radio"
1390 # toolset is the tools within the tools directory that we build for
1391 # this particular target.
1392 toolset
=$genericbitmaptools
1394 t_manufacturer
="pnx0101"
1395 t_model
="iriver-ifp7xx"
1400 modelname
="iriverh10"
1401 target
="-DIRIVER_H10"
1404 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1405 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1406 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1407 output
="rockbox.mi4"
1408 appextra
="recorder:gui:radio"
1411 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1412 bootoutput
="H10_20GC.mi4"
1413 # toolset is the tools within the tools directory that we build for
1414 # this particular target.
1415 toolset
=$scramblebitmaptools
1416 # architecture, manufacturer and model for the target-tree build
1418 t_manufacturer
="iriver"
1424 modelname
="iriverh10_5gb"
1425 target
="-DIRIVER_H10_5GB"
1428 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1429 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1430 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1431 output
="rockbox.mi4"
1432 appextra
="recorder:gui:radio"
1435 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1436 bootoutput
="H10.mi4"
1437 # toolset is the tools within the tools directory that we build for
1438 # this particular target.
1439 toolset
=$scramblebitmaptools
1440 # architecture, manufacturer and model for the target-tree build
1442 t_manufacturer
="iriver"
1448 modelname
="ipodcolor"
1449 target
="-DIPOD_COLOR"
1452 tool
="$rootdir/tools/scramble -add=ipco"
1453 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1454 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1455 output
="rockbox.ipod"
1456 appextra
="recorder:gui:radio"
1459 bootoutput
="bootloader-$modelname.ipod"
1460 # toolset is the tools within the tools directory that we build for
1461 # this particular target.
1462 toolset
=$ipodbitmaptools
1463 # architecture, manufacturer and model for the target-tree build
1465 t_manufacturer
="ipod"
1471 modelname
="ipodnano1g"
1472 target
="-DIPOD_NANO"
1475 tool
="$rootdir/tools/scramble -add=nano"
1476 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1477 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1478 output
="rockbox.ipod"
1479 appextra
="recorder:gui:radio"
1482 bootoutput
="bootloader-$modelname.ipod"
1483 # toolset is the tools within the tools directory that we build for
1484 # this particular target.
1485 toolset
=$ipodbitmaptools
1486 # architecture, manufacturer and model for the target-tree build
1488 t_manufacturer
="ipod"
1494 modelname
="ipodvideo"
1495 target
="-DIPOD_VIDEO"
1496 memory
=64 # always. This is reduced at runtime if needed
1498 tool
="$rootdir/tools/scramble -add=ipvd"
1499 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1500 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1501 output
="rockbox.ipod"
1502 appextra
="recorder:gui:radio"
1505 bootoutput
="bootloader-$modelname.ipod"
1506 # toolset is the tools within the tools directory that we build for
1507 # this particular target.
1508 toolset
=$ipodbitmaptools
1509 # architecture, manufacturer and model for the target-tree build
1511 t_manufacturer
="ipod"
1521 tool
="$rootdir/tools/scramble -add=ip3g"
1522 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1523 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1524 output
="rockbox.ipod"
1525 appextra
="recorder:gui:radio"
1528 bootoutput
="bootloader-$modelname.ipod"
1529 # toolset is the tools within the tools directory that we build for
1530 # this particular target.
1531 toolset
=$ipodbitmaptools
1532 # architecture, manufacturer and model for the target-tree build
1534 t_manufacturer
="ipod"
1544 tool
="$rootdir/tools/scramble -add=ip4g"
1545 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1546 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1547 output
="rockbox.ipod"
1548 appextra
="recorder:gui:radio"
1551 bootoutput
="bootloader-$modelname.ipod"
1552 # toolset is the tools within the tools directory that we build for
1553 # this particular target.
1554 toolset
=$ipodbitmaptools
1555 # architecture, manufacturer and model for the target-tree build
1557 t_manufacturer
="ipod"
1563 modelname
="ipodmini1g"
1564 target
="-DIPOD_MINI"
1567 tool
="$rootdir/tools/scramble -add=mini"
1568 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1569 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1570 output
="rockbox.ipod"
1571 appextra
="recorder:gui:radio"
1574 bootoutput
="bootloader-$modelname.ipod"
1575 # toolset is the tools within the tools directory that we build for
1576 # this particular target.
1577 toolset
=$ipodbitmaptools
1578 # architecture, manufacturer and model for the target-tree build
1580 t_manufacturer
="ipod"
1586 modelname
="ipodmini2g"
1587 target
="-DIPOD_MINI2G"
1590 tool
="$rootdir/tools/scramble -add=mn2g"
1591 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1592 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1593 output
="rockbox.ipod"
1594 appextra
="recorder:gui:radio"
1597 bootoutput
="bootloader-$modelname.ipod"
1598 # toolset is the tools within the tools directory that we build for
1599 # this particular target.
1600 toolset
=$ipodbitmaptools
1601 # architecture, manufacturer and model for the target-tree build
1603 t_manufacturer
="ipod"
1609 modelname
="ipod1g2g"
1610 target
="-DIPOD_1G2G"
1613 tool
="$rootdir/tools/scramble -add=1g2g"
1614 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1615 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1616 output
="rockbox.ipod"
1617 appextra
="recorder:gui:radio"
1620 bootoutput
="bootloader-$modelname.ipod"
1621 # toolset is the tools within the tools directory that we build for
1622 # this particular target.
1623 toolset
=$ipodbitmaptools
1624 # architecture, manufacturer and model for the target-tree build
1626 t_manufacturer
="ipod"
1632 modelname
="ipodnano2g"
1633 target
="-DIPOD_NANO2G"
1636 tool
="$rootdir/tools/scramble -add=nn2g"
1637 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1638 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1639 output
="rockbox.ipod"
1640 appextra
="recorder:gui:radio"
1643 bootoutput
="bootloader-$modelname.ipod"
1644 # toolset is the tools within the tools directory that we build for
1645 # this particular target.
1646 toolset
=$ipodbitmaptools
1647 # architecture, manufacturer and model for the target-tree build
1649 t_manufacturer
="s5l8700"
1650 t_model
="ipodnano2g"
1655 modelname
="iaudiox5"
1656 target
="-DIAUDIO_X5"
1659 tool
="$rootdir/tools/scramble -add=iax5"
1660 boottool
="$rootdir/tools/scramble -iaudiox5"
1661 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1662 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1663 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1664 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1665 output
="rockbox.iaudio"
1666 bootoutput
="x5_fw.bin"
1667 appextra
="recorder:gui:radio"
1670 # toolset is the tools within the tools directory that we build for
1671 # this particular target.
1672 toolset
="$iaudiobitmaptools"
1673 # architecture, manufacturer and model for the target-tree build
1675 t_manufacturer
="iaudio"
1681 modelname
="iaudiom5"
1682 target
="-DIAUDIO_M5"
1685 tool
="$rootdir/tools/scramble -add=iam5"
1686 boottool
="$rootdir/tools/scramble -iaudiom5"
1687 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1688 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1689 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1690 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1691 output
="rockbox.iaudio"
1692 bootoutput
="m5_fw.bin"
1693 appextra
="recorder:gui:radio"
1696 # toolset is the tools within the tools directory that we build for
1697 # this particular target.
1698 toolset
="$iaudiobitmaptools"
1699 # architecture, manufacturer and model for the target-tree build
1701 t_manufacturer
="iaudio"
1711 tool
="$rootdir/tools/scramble -add=i7"
1712 boottool
="$rootdir/tools/scramble -tcc=crc"
1713 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1714 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1715 output
="rockbox.iaudio"
1716 appextra
="recorder:gui:radio"
1719 bootoutput
="I7_FW.BIN"
1720 # toolset is the tools within the tools directory that we build for
1721 # this particular target.
1722 toolset
="$tccbitmaptools"
1723 # architecture, manufacturer and model for the target-tree build
1725 t_manufacturer
="tcc77x"
1735 tool
="$rootdir/tools/scramble -add=d2"
1737 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1738 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1740 bootoutput
="bootloader-cowond2.bin"
1741 appextra
="recorder:gui:radio"
1744 toolset
="$tccbitmaptools"
1745 # architecture, manufacturer and model for the target-tree build
1747 t_manufacturer
="tcc780x"
1753 modelname
="iaudiom3"
1754 target
="-DIAUDIO_M3"
1757 tool
="$rootdir/tools/scramble -add=iam3"
1758 boottool
="$rootdir/tools/scramble -iaudiom3"
1759 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1760 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1761 output
="rockbox.iaudio"
1762 bootoutput
="cowon_m3.bin"
1763 appextra
="recorder:gui:radio"
1766 # toolset is the tools within the tools directory that we build for
1767 # this particular target.
1768 toolset
="$iaudiobitmaptools"
1769 # architecture, manufacturer and model for the target-tree build
1771 t_manufacturer
="iaudio"
1777 modelname
="gigabeatfx"
1778 target
="-DGIGABEAT_F"
1781 tool
="$rootdir/tools/scramble -add=giga"
1782 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1783 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1784 output
="rockbox.gigabeat"
1785 appextra
="recorder:gui:radio"
1788 toolset
=$gigabeatbitmaptools
1789 boottool
="$rootdir/tools/scramble -gigabeat"
1790 bootoutput
="FWIMG01.DAT"
1791 # architecture, manufacturer and model for the target-tree build
1793 t_manufacturer
="s3c2440"
1794 t_model
="gigabeat-fx"
1799 modelname
="gigabeats"
1800 target
="-DGIGABEAT_S"
1803 tool
="$rootdir/tools/scramble -add=gigs"
1804 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1805 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1806 output
="rockbox.gigabeat"
1807 appextra
="recorder:gui:radio"
1810 toolset
="$gigabeatbitmaptools"
1811 boottool
="$rootdir/tools/scramble -gigabeats"
1813 # architecture, manufacturer and model for the target-tree build
1815 t_manufacturer
="imx31"
1816 t_model
="gigabeat-s"
1821 modelname
="mrobe500"
1822 target
="-DMROBE_500"
1825 tool
="$rootdir/tools/scramble -add=m500"
1826 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1827 bmp2rb_native
="$rootdir/tools/bmp2rb -f 8"
1828 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1829 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1830 output
="rockbox.mrobe500"
1831 appextra
="recorder:gui:radio"
1834 toolset
=$gigabeatbitmaptools
1836 bootoutput
="rockbox.mrboot"
1837 # architecture, manufacturer and model for the target-tree build
1839 t_manufacturer
="tms320dm320"
1845 modelname
="mrobe100"
1846 target
="-DMROBE_100"
1849 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1850 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1851 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1852 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1853 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1854 output
="rockbox.mi4"
1855 appextra
="recorder:gui:radio"
1858 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1859 bootoutput
="pp5020.mi4"
1860 # toolset is the tools within the tools directory that we build for
1861 # this particular target.
1862 toolset
=$scramblebitmaptools
1863 # architecture, manufacturer and model for the target-tree build
1865 t_manufacturer
="olympus"
1871 modelname
="logikdax"
1872 target
="-DLOGIK_DAX"
1875 tool
="$rootdir/tools/scramble -add=ldax"
1876 boottool
="$rootdir/tools/scramble -tcc=crc"
1877 bootoutput
="player.rom"
1878 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1879 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1880 output
="rockbox.logik"
1881 appextra
="recorder:gui:radio"
1884 # toolset is the tools within the tools directory that we build for
1885 # this particular target.
1886 toolset
=$tccbitmaptools
1887 # architecture, manufacturer and model for the target-tree build
1889 t_manufacturer
="tcc77x"
1895 modelname
="zenvisionm30gb"
1896 target
="-DCREATIVE_ZVM"
1899 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1900 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1901 tool
="$rootdir/tools/scramble -creative=zvm"
1903 output
="rockbox.zvm"
1904 appextra
="recorder:gui:radio"
1907 toolset
=$ipodbitmaptools
1908 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1909 bootoutput
="rockbox.zvmboot"
1910 # architecture, manufacturer and model for the target-tree build
1912 t_manufacturer
="tms320dm320"
1913 t_model
="creative-zvm"
1918 modelname
="zenvisionm60gb"
1919 target
="-DCREATIVE_ZVM60GB"
1922 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1923 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1924 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1926 output
="rockbox.zvm60"
1927 appextra
="recorder:gui:radio"
1930 toolset
=$ipodbitmaptools
1931 boottool
="$rootdir/tools/scramble -creative=zvm60"
1932 bootoutput
="rockbox.zvm60boot"
1933 # architecture, manufacturer and model for the target-tree build
1935 t_manufacturer
="tms320dm320"
1936 t_model
="creative-zvm"
1941 modelname
="zenvision"
1942 target
="-DCREATIVE_ZV"
1945 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1946 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1947 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1950 appextra
="recorder:gui:radio"
1953 toolset
=$ipodbitmaptools
1954 boottool
="$rootdir/tools/scramble -creative=zenvision"
1955 bootoutput
="rockbox.zvboot"
1956 # architecture, manufacturer and model for the target-tree build
1958 t_manufacturer
="tms320dm320"
1959 t_model
="creative-zvm"
1964 modelname
="sansae200"
1965 target
="-DSANSA_E200"
1966 memory
=32 # supposedly
1968 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1969 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1970 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1971 output
="rockbox.mi4"
1972 appextra
="recorder:gui:radio"
1975 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1976 bootoutput
="PP5022.mi4"
1977 # toolset is the tools within the tools directory that we build for
1978 # this particular target.
1979 toolset
=$scramblebitmaptools
1980 # architecture, manufacturer and model for the target-tree build
1982 t_manufacturer
="sandisk"
1983 t_model
="sansa-e200"
1987 # the e200R model is pretty much identical to the e200, it only has a
1988 # different option to the scramble tool when building a bootloader and
1989 # makes the bootloader output file name in all lower case.
1991 modelname
="sansae200r"
1992 target
="-DSANSA_E200"
1993 memory
=32 # supposedly
1995 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1996 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1997 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1998 output
="rockbox.mi4"
1999 appextra
="recorder:gui:radio"
2002 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
2003 bootoutput
="pp5022.mi4"
2004 # toolset is the tools within the tools directory that we build for
2005 # this particular target.
2006 toolset
=$scramblebitmaptools
2007 # architecture, manufacturer and model for the target-tree build
2009 t_manufacturer
="sandisk"
2010 t_model
="sansa-e200"
2015 modelname
="sansac200"
2016 target
="-DSANSA_C200"
2017 memory
=32 # supposedly
2019 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
2020 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2021 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2022 output
="rockbox.mi4"
2023 appextra
="recorder:gui:radio"
2026 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
2027 bootoutput
="firmware.mi4"
2028 # toolset is the tools within the tools directory that we build for
2029 # this particular target.
2030 toolset
=$scramblebitmaptools
2031 # architecture, manufacturer and model for the target-tree build
2033 t_manufacturer
="sandisk"
2034 t_model
="sansa-c200"
2039 modelname
="sansam200"
2040 target
="-DSANSA_M200"
2043 tool
="$rootdir/tools/scramble -add=m200"
2044 boottool
="$rootdir/tools/scramble -tcc=crc"
2045 bootoutput
="player.rom"
2046 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2047 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
2048 output
="rockbox.m200"
2049 appextra
="recorder:gui:radio"
2052 # toolset is the tools within the tools directory that we build for
2053 # this particular target.
2054 toolset
=$tccbitmaptools
2055 # architecture, manufacturer and model for the target-tree build
2057 t_manufacturer
="tcc77x"
2063 modelname
="sansac100"
2064 target
="-DSANSA_C100"
2067 tool
="$rootdir/tools/scramble -add=c100"
2068 boottool
="$rootdir/tools/scramble -tcc=crc"
2069 bootoutput
="player.rom"
2070 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2071 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2072 output
="rockbox.c100"
2073 appextra
="recorder:gui:radio"
2076 # toolset is the tools within the tools directory that we build for
2077 # this particular target.
2078 toolset
=$tccbitmaptools
2079 # architecture, manufacturer and model for the target-tree build
2081 t_manufacturer
="tcc77x"
2087 modelname
="sansaclip"
2088 target
="-DSANSA_CLIP"
2090 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2091 bmp2rb_native
="$bmp2rb_mono"
2092 tool
="$rootdir/tools/scramble -add=clip"
2093 output
="rockbox.sansa"
2094 bootoutput
="bootloader-clip.sansa"
2095 appextra
="recorder:gui:radio"
2098 toolset
=$scramblebitmaptools
2100 t_manufacturer
="as3525"
2101 t_model
="sansa-clip"
2102 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2104 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2110 modelname
="sansae200v2"
2111 target
="-DSANSA_E200V2"
2113 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2114 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2115 tool
="$rootdir/tools/scramble -add=e2v2"
2116 output
="rockbox.sansa"
2117 bootoutput
="bootloader-e200v2.sansa"
2118 appextra
="recorder:gui:radio"
2121 toolset
=$scramblebitmaptools
2123 t_manufacturer
="as3525"
2124 t_model
="sansa-e200v2"
2131 modelname
="sansam200v4"
2132 target
="-DSANSA_M200V4"
2134 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2135 bmp2rb_native
="$bmp2rb_mono"
2136 tool
="$rootdir/tools/scramble -add=m2v4"
2137 output
="rockbox.sansa"
2138 bootoutput
="bootloader-m200v4.sansa"
2139 appextra
="recorder:gui:radio"
2142 toolset
=$scramblebitmaptools
2144 t_manufacturer
="as3525"
2145 t_model
="sansa-m200v4"
2146 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2148 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2154 modelname
="sansafuze"
2155 target
="-DSANSA_FUZE"
2157 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2158 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2159 tool
="$rootdir/tools/scramble -add=fuze"
2160 output
="rockbox.sansa"
2161 bootoutput
="bootloader-fuze.sansa"
2162 appextra
="recorder:gui:radio"
2165 toolset
=$scramblebitmaptools
2167 t_manufacturer
="as3525"
2168 t_model
="sansa-fuze"
2175 modelname
="sansac200v2"
2176 target
="-DSANSA_C200V2"
2177 memory
=2 # as per OF diagnosis mode
2178 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2179 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2180 tool
="$rootdir/tools/scramble -add=c2v2"
2181 output
="rockbox.sansa"
2182 bootoutput
="bootloader-c200v2.sansa"
2183 appextra
="recorder:gui:radio"
2186 # toolset is the tools within the tools directory that we build for
2187 # this particular target.
2188 toolset
=$scramblebitmaptools
2189 # architecture, manufacturer and model for the target-tree build
2191 t_manufacturer
="as3525"
2192 t_model
="sansa-c200v2"
2193 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2195 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2200 modelname
="sansaclipv2"
2201 target
="-DSANSA_CLIPV2"
2203 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2204 bmp2rb_native
="$bmp2rb_mono"
2205 tool
="$rootdir/tools/scramble -add=clv2"
2206 output
="rockbox.sansa"
2207 bootoutput
="bootloader-clipv2.sansa"
2208 appextra
="recorder:gui:radio"
2211 toolset
=$scramblebitmaptools
2213 t_manufacturer
="as3525"
2214 t_model
="sansa-clipv2"
2219 echo "Sansa View is not yet supported!"
2222 modelname
="sansaview"
2223 target
="-DSANSA_VIEW"
2226 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2227 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2228 output
="rockbox.mi4"
2232 boottool
="$rootdir/tools/scramble -mi4v3 -model=view -type=RBBL"
2233 bootoutput
="firmware.mi4"
2234 # toolset is the tools within the tools directory that we build for
2235 # this particular target.
2236 toolset
=$scramblebitmaptools
2238 t_manufacturer
="sandisk"
2239 t_model
="sansa-view"
2244 modelname
="sansaclipplus"
2245 target
="-DSANSA_CLIPPLUS"
2247 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2248 bmp2rb_native
="$bmp2rb_mono"
2249 tool
="$rootdir/tools/scramble -add=cli+"
2250 output
="rockbox.sansa"
2251 bootoutput
="bootloader-clipplus.sansa"
2252 appextra
="recorder:gui:radio"
2255 toolset
=$scramblebitmaptools
2257 t_manufacturer
="as3525"
2258 t_model
="sansa-clipplus"
2264 modelname
="sansafuzev2"
2265 target
="-DSANSA_FUZEV2"
2267 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2268 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2269 tool
="$rootdir/tools/scramble -add=fuz2"
2270 output
="rockbox.sansa"
2271 bootoutput
="bootloader-fuzev2.sansa"
2272 appextra
="recorder:gui:radio"
2275 toolset
=$scramblebitmaptools
2277 t_manufacturer
="as3525"
2278 t_model
="sansa-fuzev2"
2284 modelname
="tatungtpj1022"
2285 target
="-DTATUNG_TPJ1022"
2288 tool
="$rootdir/tools/scramble -add tpj2"
2289 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2290 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2291 output
="rockbox.elio"
2292 appextra
="recorder:gui:radio"
2295 boottool
="$rootdir/tools/scramble -mi4v2"
2296 bootoutput
="pp5020.mi4"
2297 # toolset is the tools within the tools directory that we build for
2298 # this particular target.
2299 toolset
=$scramblebitmaptools
2300 # architecture, manufacturer and model for the target-tree build
2302 t_manufacturer
="tatung"
2308 modelname
="gogearsa9200"
2309 target
="-DPHILIPS_SA9200"
2310 memory
=32 # supposedly
2312 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
2313 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2314 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2315 output
="rockbox.mi4"
2316 appextra
="recorder:gui:radio"
2319 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
2320 bootoutput
="FWImage.ebn"
2321 # toolset is the tools within the tools directory that we build for
2322 # this particular target.
2323 toolset
=$scramblebitmaptools
2324 # architecture, manufacturer and model for the target-tree build
2326 t_manufacturer
="philips"
2332 modelname
="gogearhdd1630"
2333 target
="-DPHILIPS_HDD1630"
2334 memory
=32 # supposedly
2336 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
2337 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2338 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2339 output
="rockbox.mi4"
2340 appextra
="recorder:gui:radio"
2343 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
2344 bootoutput
="FWImage.ebn"
2345 # toolset is the tools within the tools directory that we build for
2346 # this particular target.
2347 toolset
=$scramblebitmaptools
2348 # architecture, manufacturer and model for the target-tree build
2350 t_manufacturer
="philips"
2356 modelname
="gogearhdd6330"
2357 target
="-DPHILIPS_HDD6330"
2360 tool
="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBOS"
2361 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2362 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2363 output
="rockbox.mi4"
2364 appextra
="recorder:gui:radio"
2367 boottool
="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBBL"
2368 bootoutput
="FWImage.ebn"
2369 # toolset is the tools within the tools directory that we build for
2370 # this particular target.
2371 toolset
=$scramblebitmaptools
2372 # architecture, manufacturer and model for the target-tree build
2374 t_manufacturer
="philips"
2380 modelname
="meizum6sl"
2381 target
="-DMEIZU_M6SL"
2385 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2386 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2387 output
="rockbox.meizu"
2388 appextra
="recorder:gui:radio"
2391 toolset
=$genericbitmaptools
2393 bootoutput
="rockboot.ebn"
2394 # architecture, manufacturer and model for the target-tree build
2396 t_manufacturer
="s5l8700"
2397 t_model
="meizu-m6sl"
2402 modelname
="meizum6sp"
2403 target
="-DMEIZU_M6SP"
2407 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2408 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2409 output
="rockbox.meizu"
2410 appextra
="recorder:gui:radio"
2413 toolset
=$genericbitmaptools
2415 bootoutput
="rockboot.ebn"
2416 # architecture, manufacturer and model for the target-tree build
2418 t_manufacturer
="s5l8700"
2419 t_model
="meizu-m6sp"
2429 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2430 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2431 output
="rockbox.meizu"
2432 appextra
="recorder:gui:radio"
2435 toolset
=$genericbitmaptools
2437 bootoutput
="rockboot.ebn"
2438 # architecture, manufacturer and model for the target-tree build
2440 t_manufacturer
="s5l8700"
2446 modelname
="ondavx747"
2447 target
="-DONDA_VX747"
2450 tool
="$rootdir/tools/scramble -add=x747"
2451 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2452 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2453 output
="rockbox.vx747"
2454 appextra
="recorder:gui:radio"
2457 toolset
=$genericbitmaptools
2458 boottool
="$rootdir/tools/scramble -ccpmp"
2459 bootoutput
="ccpmp.bin"
2460 # architecture, manufacturer and model for the target-tree build
2462 t_manufacturer
="ingenic_jz47xx"
2463 t_model
="onda_vx747"
2468 modelname
="ondavx767"
2469 target
="-DONDA_VX767"
2473 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2474 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2475 output
="rockbox.vx767"
2476 appextra
="recorder:gui:radio"
2479 toolset
=$genericbitmaptools
2480 boottool
="$rootdir/tools/scramble -ccpmp"
2481 bootoutput
="ccpmp.bin"
2482 # architecture, manufacturer and model for the target-tree build
2484 t_manufacturer
="ingenic_jz47xx"
2485 t_model
="onda_vx767"
2490 modelname
="ondavx747p"
2491 target
="-DONDA_VX747P"
2494 tool
="$rootdir/tools/scramble -add=747p"
2495 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2496 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2497 output
="rockbox.vx747p"
2498 appextra
="recorder:gui:radio"
2501 toolset
=$genericbitmaptools
2502 boottool
="$rootdir/tools/scramble -ccpmp"
2503 bootoutput
="ccpmp.bin"
2504 # architecture, manufacturer and model for the target-tree build
2506 t_manufacturer
="ingenic_jz47xx"
2507 t_model
="onda_vx747"
2512 modelname
="ondavx777"
2513 target
="-DONDA_VX777"
2516 tool
="$rootdir/tools/scramble -add=x777"
2517 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2518 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2519 output
="rockbox.vx777"
2520 appextra
="recorder:gui:radio"
2523 toolset
=$genericbitmaptools
2524 boottool
="$rootdir/tools/scramble -ccpmp"
2525 bootoutput
="ccpmp.bin"
2526 # architecture, manufacturer and model for the target-tree build
2528 t_manufacturer
="ingenic_jz47xx"
2529 t_model
="onda_vx747"
2534 modelname
="lyreproto1"
2535 target
="-DLYRE_PROTO1"
2539 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2540 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2541 output
="rockbox.lyre"
2542 appextra
="recorder:gui:radio"
2545 toolset
=$scramblebitmaptools
2547 bootoutput
="bootloader-proto1.lyre"
2548 # architecture, manufacturer and model for the target-tree build
2550 t_manufacturer
="at91sam"
2551 t_model
="lyre_proto1"
2556 modelname
="mini2440"
2560 tool
="$rootdir/tools/scramble -add=m244"
2561 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2562 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2563 output
="rockbox.mini2440"
2564 appextra
="recorder:gui:radio"
2567 toolset
=$scramblebitmaptools
2569 bootoutput
="bootloader-mini2440.lyre"
2570 # architecture, manufacturer and model for the target-tree build
2572 t_manufacturer
="s3c2440"
2578 modelname
="samsungyh820"
2579 target
="-DSAMSUNG_YH820"
2582 tool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
2583 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2584 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2585 output
="rockbox.mi4"
2586 appextra
="recorder:gui:radio"
2589 boottool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
2590 bootoutput
="FW_YH820.mi4"
2591 # toolset is the tools within the tools directory that we build for
2592 # this particular target.
2593 toolset
=$scramblebitmaptools
2594 # architecture, manufacturer and model for the target-tree build
2596 t_manufacturer
="samsung"
2602 modelname
="samsungyh920"
2603 target
="-DSAMSUNG_YH920"
2606 tool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
2607 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2608 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
2609 output
="rockbox.mi4"
2610 appextra
="recorder:gui:radio"
2613 boottool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
2614 bootoutput
="PP5020.mi4"
2615 # toolset is the tools within the tools directory that we build for
2616 # this particular target.
2617 toolset
=$scramblebitmaptools
2618 # architecture, manufacturer and model for the target-tree build
2620 t_manufacturer
="samsung"
2626 modelname
="samsungyh925"
2627 target
="-DSAMSUNG_YH925"
2630 tool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
2631 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2632 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2633 output
="rockbox.mi4"
2634 appextra
="recorder:gui:radio"
2637 boottool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
2638 bootoutput
="FW_YH925.mi4"
2639 # toolset is the tools within the tools directory that we build for
2640 # this particular target.
2641 toolset
=$scramblebitmaptools
2642 # architecture, manufacturer and model for the target-tree build
2644 t_manufacturer
="samsung"
2650 modelname
="samsungyps3"
2651 target
="-DSAMSUNG_YPS3"
2655 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2656 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2657 output
="rockbox.yps3"
2658 appextra
="recorder:gui:radio"
2661 toolset
=$genericbitmaptools
2663 bootoutput
="rockboot.ebn"
2664 # architecture, manufacturer and model for the target-tree build
2666 t_manufacturer
="s5l8700"
2673 target
="-DPBELL_VIBE500"
2676 tool
="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBOS"
2677 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2678 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2679 output
="rockbox.mi4"
2680 appextra
="recorder:gui:radio"
2683 boottool
="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBBL"
2684 bootoutput
="jukebox.mi4"
2685 # toolset is the tools within the tools directory that we build for
2686 # this particular target.
2687 toolset
=$scramblebitmaptools
2688 # architecture, manufacturer and model for the target-tree build
2690 t_manufacturer
="pbell"
2696 modelname
="mpiohd200"
2697 target
="-DMPIO_HD200"
2700 tool
="$rootdir/tools/scramble -add=hd20"
2701 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2702 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
2703 output
="rockbox.mpio"
2704 bootoutput
="bootloader.mpio"
2705 appextra
="recorder:gui:radio"
2708 # toolset is the tools within the tools directory that we build for
2709 # this particular target.
2710 toolset
="$genericbitmaptools"
2711 # architecture, manufacturer and model for the target-tree build
2713 t_manufacturer
="mpio"
2719 modelname
="application"
2720 target
="-DAPPLICATION"
2722 need_full_path
="yes"
2728 appcc
"$app_platform"
2731 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2732 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2733 appextra
="recorder:gui:radio"
2736 # architecture, manufacturer and model for the target-tree build
2738 t_manufacturer
="$app_platform"
2743 echo "Please select a supported target platform!"
2749 echo "Platform set to $modelname"
2753 ############################################################################
2754 # Amount of memory, for those that can differ. They have $memory unset at
2758 if [ -z "$memory" ]; then
2761 if [ "$ARG_RAM" ]; then
2764 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2777 if [ "$ARG_RAM" ]; then
2780 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2793 echo "Memory size selected: $memory MB"
2794 [ "$ARG_TYPE" ] ||
echo ""
2798 ##################################################################
2799 # Figure out build "type"
2802 # the ifp7x0 is the only platform that supports building a gdb stub like
2806 gdbstub
="(G)DB stub, "
2808 sansae200r|sansae200
)
2809 gdbstub
="(I)nstaller, "
2812 gdbstub
="(E)raser, "
2817 if [ "$ARG_TYPE" ]; then
2820 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, $gdbstub(M)anual: (Defaults to N)"
2826 appsdir
='\$(ROOTDIR)/bootloader'
2828 extradefines
="$extradefines -DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2830 echo "e200R-installer build selected"
2833 appsdir
='\$(ROOTDIR)/bootloader'
2835 echo "C2(4)0 or C2(5)0"
2839 extradefines
="$extradefines -DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2840 echo "c240 eraser build selected"
2843 extradefines
="$extradefines -DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2844 echo "c240 eraser build selected"
2848 echo "c200 eraser build selected"
2851 if test $t_manufacturer = "archos"; then
2852 # Archos SH-based players do this somewhat differently for
2854 appsdir
='\$(ROOTDIR)/flash/bootbox'
2857 appsdir
='\$(ROOTDIR)/bootloader'
2860 if test -n "$boottool"; then
2863 if test -n "$bootoutput"; then
2867 extradefines
="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections"
2869 echo "Bootloader build selected"
2872 if [ "$modelname" = "sansae200r" ]; then
2873 echo "Do not use the e200R target for simulator builds. Use e200 instead."
2878 extradefines
="$extradefines -DSIMULATOR"
2881 echo "Simulator build selected"
2884 echo "Advanced build selected"
2885 whichadvanced
$btype
2888 extradefines
="$extradefines -DSTUB" # for target makefile symbol EXTRA_DEFINES
2889 appsdir
='\$(ROOTDIR)/gdb'
2898 echo "GDB stub build selected"
2903 echo "Manual build selected"
2911 extradefines
="$extradefines -DDEBUG"
2912 appsdir
='\$(ROOTDIR)/tools/checkwps';
2913 output
='checkwps.'${modelname};
2915 echo "CheckWPS build selected"
2923 appsdir
='\$(ROOTDIR)/tools/database';
2928 output
="database_${modelname}.exe"
2931 output
='database.'${modelname};
2935 echo "Database tool build selected"
2938 if [ "$modelname" = "sansae200r" ]; then
2939 echo "Do not use the e200R target for regular builds. Use e200 instead."
2943 btype
="N" # set it explicitly since RET only gets here as well
2944 echo "Normal build selected"
2948 # to be able running "make manual" from non-manual configuration
2951 manualdev
="archosfmrecorder"
2954 manualdev
="iriverh100"
2957 manualdev
="ipodmini1g"
2960 manualdev
=$modelname
2964 if [ -z "$debug" ]; then
2965 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2968 echo "Using source code root directory: $rootdir"
2970 # this was once possible to change at build-time, but no more:
2975 if [ "yes" = "$simulator" ]; then
2976 # setup compiler and things for simulator
2979 if [ -d "simdisk" ]; then
2980 echo "Subdirectory 'simdisk' already present"
2983 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2987 # Now, figure out version number of the (gcc) compiler we are about to use
2988 gccver
=`$CC -dumpversion`;
2990 # figure out the binutil version too and display it, mostly for the build
2991 # system etc to be able to see it easier
2992 if [ $uname = "Darwin" ]; then
2993 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2995 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2998 if [ -z "$gccver" ]; then
2999 echo "[WARNING] The compiler you must use ($CC) is not in your path!"
3000 echo "[WARNING] this may cause your build to fail since we cannot do the"
3001 echo "[WARNING] checks we want now."
3004 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
3007 num1
=`echo $gccver | cut -d . -f1`
3008 num2
=`echo $gccver | cut -d . -f2`
3009 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
3016 echo "Using $CC $gccver ($gccnum)"
3018 if test "$gccnum" -ge "400"; then
3019 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
3020 # so we ignore that warnings for now
3022 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
3025 if test "$gccnum" -ge "402"; then
3026 # disable warning about "warning: initialized field overwritten" as gcc 4.2
3027 # and later would throw it for several valid cases
3028 GCCOPTS
="$GCCOPTS -Wno-override-init"
3032 ""|
"$CROSS_COMPILE")
3036 # cross-compile for win32
3039 # Verify that the cross-compiler is of a recommended version!
3040 if test "$gccver" != "$gccchoice"; then
3041 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
3042 echo "WARNING: version $gccchoice!"
3043 echo "WARNING: This may cause your build to fail since it may be a version"
3044 echo "WARNING: that isn't functional or known to not be the best choice."
3045 echo "WARNING: If you suffer from build problems, you know that this is"
3046 echo "WARNING: a likely source for them..."
3054 echo "Using $LD $ldver"
3056 # check the compiler for SH platforms
3057 if test "$CC" = "sh-elf-gcc"; then
3058 if test "$gccnum" -lt "400"; then
3059 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
3060 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
3062 # figure out patch status
3063 gccpatch
=`$CC --version`;
3065 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
3066 echo "gcc $gccver is rockbox patched"
3067 # then convert -O to -Os to get smaller binaries!
3068 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
3070 echo "WARNING: You use an unpatched gcc compiler: $gccver"
3071 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
3076 if test "$CC" = "m68k-elf-gcc"; then
3077 # convert -O to -Os to get smaller binaries!
3078 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
3081 if [ "$ARG_CCACHE" = "1" ]; then
3082 echo "Enable ccache for building"
3084 elif [ "$ARG_CCACHE" != "0" ]; then
3085 ccache
=`findtool ccache`
3086 if test -n "$ccache"; then
3087 echo "Found and uses ccache ($ccache)"
3091 # figure out the full path to the various commands if possible
3092 HOSTCC
=`findtool gcc --lit`
3093 HOSTAR
=`findtool ar --lit`
3094 CC
=`findtool ${CC} --lit`
3095 LD
=`findtool ${AR} --lit`
3096 AR
=`findtool ${AR} --lit`
3097 AS
=`findtool ${AS} --lit`
3098 OC
=`findtool ${OC} --lit`
3099 WINDRES
=`findtool ${WINDRES} --lit`
3100 DLLTOOL
=`findtool ${DLLTOOL} --lit`
3101 DLLWRAP
=`findtool ${DLLWRAP} --lit`
3102 RANLIB
=`findtool ${RANLIB} --lit`
3104 if test -n "$ccache"; then
3108 if test "$ARG_ARM_THUMB" = "1"; then
3109 extradefines
="$extradefines -DUSE_THUMB"
3110 CC
="$toolsdir/thumb-cc.py $CC"
3113 if test "X$endian" = "Xbig"; then
3114 defendian
="ROCKBOX_BIG_ENDIAN"
3116 defendian
="ROCKBOX_LITTLE_ENDIAN"
3119 if [ "$ARG_RBDIR" ]; then
3120 if [ "$need_full_path" = "yes" ]; then
3121 rbdir
=`realpath $ARG_RBDIR`
3122 else # prepend '/' if needed
3123 if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then
3129 echo "Using alternate rockbox dir: ${rbdir}"
3133 -e "s<@ENDIAN@<${defendian}<g" \
3134 -e "s<^#undef ROCKBOX_HAS_LOGF<$use_logf<g" \
3135 -e "s<^#undef DO_BOOTCHART<$use_bootchart<g" \
3136 -e "s<@config_rtc@<$config_rtc<g" \
3137 -e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \
3138 -e "s<@RBDIR@<${rbdir}<g" \
3139 -e "s<@binpath@<${bindir_full}<g" \
3140 -e "s<@libpath@<${libdir_full}<g" \
3141 -e "s<@have_backlight@<$have_backlight<g" \
3142 -e "s<@have_fmradio_in@<$have_fmradio_in<g" \
3143 -e "s<@have_ata_poweroff@<$have_ata_poweroff<g" \
3144 -e "s<@lcd_width@<$app_lcd_width<g" \
3145 -e "s<@lcd_height@<$app_lcd_height<g" \
3147 /* This header was made by configure */
3148 #ifndef __BUILD_AUTOCONF_H
3149 #define __BUILD_AUTOCONF_H
3151 /* Define endianess for the target or simulator platform */
3154 /* Define this if you build rockbox to support the logf logging and display */
3155 #undef ROCKBOX_HAS_LOGF
3157 /* Define this to record a chart with timings for the stages of boot */
3160 /* optional define for a backlight modded Ondio */
3163 /* optional define for FM radio mod for iAudio M5 */
3166 /* optional define for ATA poweroff on Player */
3169 /* optional defines for RTC mod for h1x0 */
3173 /* lcd dimensions for application builds from configure */
3177 /* root of Rockbox */
3178 #define ROCKBOX_DIR "@RBDIR@"
3179 #define ROCKBOX_BINARY_PATH "@binpath@"
3180 #define ROCKBOX_LIBRARY_PATH "@libpath@"
3182 #endif /* __BUILD_AUTOCONF_H */
3185 if test -n "$t_cpu"; then
3186 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
3187 if [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree
3188 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl/"
3189 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/hosted/"
3191 if [ -n "$app_platform" -a "$app_platform" = "android" ]; then
3192 # android's gcc doesn't add this :/
3193 TARGET_INC
="$TARGET_INC -I$ANDROID_NDK_PATH/build/platforms/android-4/arch-arm/usr/include"
3195 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
3196 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
3200 if test "$simulator" = "yes"; then
3201 # add simul make stuff on the #SIMUL# line
3202 simmagic1
="s<@SIMUL1@<\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim<"
3203 simmagic2
="s<@SIMUL2@<\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim<"
3205 # delete the lines that match
3206 simmagic1
='/@SIMUL1@/D'
3207 simmagic2
='/@SIMUL2@/D'
3210 if test "$swcodec" = "yes"; then
3211 voicetoolset
="rbspeexenc voicefont wavtrim"
3213 voicetoolset
="voicefont wavtrim"
3216 if test "$apps" = "apps"; then
3217 # only when we build "real" apps we build the .lng files
3221 #### Fix the cmdline ###
3222 if [ "$ARG_CCACHE" = "1" ]; then
3224 elif [ "$ARG_CCACHE" = "0" ]; then
3225 cmdline
="--no-ccache "
3227 if [ "$ARG_ARM_EABI" = "1" ]; then
3228 cmdline
="$cmdline--eabi "
3231 cmdline
="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts --prefix=\$(PREFIX)"
3235 -e "s<@ROOTDIR@<${rootdir}<g" \
3236 -e "s<@DEBUG@<${debug}<g" \
3237 -e "s<@MEMORY@<${memory}<g" \
3238 -e "s<@TARGET_ID@<${target_id}<g" \
3239 -e "s<@TARGET@<${target}<g" \
3240 -e "s<@CPU@<${t_cpu}<g" \
3241 -e "s<@MANUFACTURER@<${t_manufacturer}<g" \
3242 -e "s<@MODELNAME@<${modelname}<g" \
3243 -e "s<@LANGUAGE@<${language}<g" \
3244 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
3245 -e "s<@PWD@<${pwd}<g" \
3246 -e "s<@HOSTCC@<${HOSTCC}<g" \
3247 -e "s<@HOSTAR@<${HOSTAR}<g" \
3248 -e "s<@CC@<${CC}<g" \
3249 -e "s<@LD@<${LD}<g" \
3250 -e "s<@AR@<${AR}<g" \
3251 -e "s<@AS@<${AS}<g" \
3252 -e "s<@OC@<${OC}<g" \
3253 -e "s<@WINDRES@<${WINDRES}<g" \
3254 -e "s<@DLLTOOL@<${DLLTOOL}<g" \
3255 -e "s<@DLLWRAP@<${DLLWRAP}<g" \
3256 -e "s<@RANLIB@<${RANLIB}<g" \
3257 -e "s<@TOOL@<${tool}<g" \
3258 -e "s<@BMP2RB_NATIVE@<${bmp2rb_native}<g" \
3259 -e "s<@BMP2RB_MONO@<${bmp2rb_mono}<g" \
3260 -e "s<@BMP2RB_REMOTENATIVE@<${bmp2rb_remotenative}<g" \
3261 -e "s<@BMP2RB_REMOTEMONO@<${bmp2rb_remotemono}<g" \
3262 -e "s<@OUTPUT@<${output}<g" \
3263 -e "s<@APPEXTRA@<${appextra}<g" \
3264 -e "s<@ARCHOSROM@<${archosrom}<g" \
3265 -e "s<@FLASHFILE@<${flash}<g" \
3266 -e "s<@PLUGINS@<${plugins}<g" \
3267 -e "s<@CODECS@<${swcodec}<g" \
3268 -e "s<@PROFILE_OPTS@<${PROFILE_OPTS}<g" \
3269 -e "s<@SHARED_FLAG@<${SHARED_FLAG}<g" \
3270 -e "s<@GCCOPTS@<${GCCOPTS}<g" \
3271 -e "s<@TARGET_INC@<${TARGET_INC}<g" \
3272 -e "s<@LDOPTS@<${LDOPTS}<g" \
3273 -e "s<@GLOBAL_LDOPTS@<${GLOBAL_LDOPTS}<g" \
3274 -e "s<@LOADADDRESS@<${loadaddress}<g" \
3275 -e "s<@EXTRADEF@<${extradefines}<g" \
3276 -e "s<@APPSDIR@<${appsdir}<g" \
3277 -e "s<@FIRMDIR@<${firmdir}<g" \
3278 -e "s<@TOOLSDIR@<${toolsdir}<g" \
3279 -e "s<@APPS@<${apps}<g" \
3280 -e "s<@APP_TYPE@<${app_type}<g" \
3281 -e "s<@GCCVER@<${gccver}<g" \
3282 -e "s<@GCCNUM@<${gccnum}<g" \
3283 -e "s<@UNAME@<${uname}<g" \
3284 -e "s<@ENDIAN@<${defendian}<g" \
3285 -e "s<@TOOLSET@<${toolset}<g" \
3288 -e "s<@MANUALDEV@<${manualdev}<g" \
3289 -e "s<@ENCODER@<${ENC_CMD}<g" \
3290 -e "s<@ENC_OPTS@<${ENC_OPTS}<g" \
3291 -e "s<@TTS_ENGINE@<${TTS_ENGINE}<g" \
3292 -e "s<@TTS_OPTS@<${TTS_OPTS}<g" \
3293 -e "s<@VOICETOOLSET@<${voicetoolset}<g" \
3294 -e "s<@LANGS@<${buildlangs}<g" \
3295 -e "s<@USE_ELF@<${USE_ELF}<g" \
3296 -e "s<@RBDIR@<${rbdir}<g" \
3297 -e "s<@binpath@<${bindir}<g" \
3298 -e "s<@libpath@<${libdir}<g" \
3299 -e "s<@PREFIX@<$PREFIX<g" \
3300 -e "s<@CMDLINE@<$cmdline<g" \
3301 -e "s<@SDLCONFIG@<$sdl<g" \
3303 ## Automatically generated. http://www.rockbox.org/
3305 export ROOTDIR=@ROOTDIR@
3306 export FIRMDIR=@FIRMDIR@
3307 export APPSDIR=@APPSDIR@
3308 export TOOLSDIR=@TOOLSDIR@
3309 export DOCSDIR=\$(ROOTDIR)/docs
3310 export MANUALDIR=\${ROOTDIR}/manual
3311 export DEBUG=@DEBUG@
3312 export MODELNAME=@MODELNAME@
3313 export ARCHOSROM=@ARCHOSROM@
3314 export FLASHFILE=@FLASHFILE@
3315 export TARGET_ID=@TARGET_ID@
3316 export TARGET=@TARGET@
3318 export MANUFACTURER=@MANUFACTURER@
3320 export BUILDDIR=@PWD@
3321 export LANGUAGE=@LANGUAGE@
3322 export VOICELANGUAGE=@VOICELANGUAGE@
3323 export MEMORYSIZE=@MEMORY@
3324 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
3325 export MKFIRMWARE=@TOOL@
3326 export BMP2RB_MONO=@BMP2RB_MONO@
3327 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
3328 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
3329 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
3330 export BINARY=@OUTPUT@
3331 export APPEXTRA=@APPEXTRA@
3332 export ENABLEDPLUGINS=@PLUGINS@
3333 export SOFTWARECODECS=@CODECS@
3334 export EXTRA_DEFINES=@EXTRADEF@
3335 export HOSTCC=@HOSTCC@
3336 export HOSTAR=@HOSTAR@
3342 export WINDRES=@WINDRES@
3343 export DLLTOOL=@DLLTOOL@
3344 export DLLWRAP=@DLLWRAP@
3345 export RANLIB=@RANLIB@
3346 export PREFIX=@PREFIX@
3347 export PROFILE_OPTS=@PROFILE_OPTS@
3348 export APP_TYPE=@APP_TYPE@
3349 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
3350 export GCCOPTS=@GCCOPTS@
3351 export TARGET_INC=@TARGET_INC@
3352 export LOADADDRESS=@LOADADDRESS@
3353 export SHARED_FLAG=@SHARED_FLAG@
3354 export LDOPTS=@LDOPTS@
3355 export GLOBAL_LDOPTS=@GLOBAL_LDOPTS@
3356 export GCCVER=@GCCVER@
3357 export GCCNUM=@GCCNUM@
3358 export UNAME=@UNAME@
3359 export MANUALDEV=@MANUALDEV@
3360 export TTS_OPTS=@TTS_OPTS@
3361 export TTS_ENGINE=@TTS_ENGINE@
3362 export ENC_OPTS=@ENC_OPTS@
3363 export ENCODER=@ENCODER@
3364 export USE_ELF=@USE_ELF@
3365 export RBDIR=@RBDIR@
3366 export ROCKBOX_BINARY_PATH=@binpath@
3367 export ROCKBOX_LIBRARY_PATH=@libpath@
3368 export SDLCONFIG=@SDLCONFIG@
3370 CONFIGURE_OPTIONS=@CMDLINE@
3372 include \$(TOOLSDIR)/root.make
3376 echo "Created Makefile"