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)"
58 s|S
*) app_platform
="sdl" ;;
59 *|a|A
*) app_platform
="android" ;;
62 echo "Selected $app_platform platform"
63 echo "Enter the LCD width (default: 320)"
65 if [ -z "$app_lcd_width" ]; then app_lcd_width
="320"; fi
66 echo "Enter the LCD height (default: 480)"
67 app_lcd_height
=`input`
68 if [ -z "$app_lcd_height" ]; then app_lcd_height
="480"; fi
69 echo "Selected $app_lcd_width x $app_lcd_height resolution"
71 app_lcd_width
="#define LCD_WIDTH $app_lcd_width"
72 app_lcd_height
="#define LCD_HEIGHT $app_lcd_height"
73 # setup files and paths depending on the platform
74 if [ "$app_platform" = "sdl" ]; then
75 if [ -z "$PREFIX" ]; then
76 rbdir
="/usr/local/share/rockbox"
77 bindir
="/usr/local/bin"
79 libdir
="/usr/local/lib"
82 rbdir
=`realpath $PREFIX/share/rockbox`
85 if [ -d bindir
]; then
86 bindir_full
=`realpath $bindir`
88 if [ -d libdir
]; then
89 libdir_full
=`realpath $libdir`
94 elif [ "$app_platform" = "android" ]; then
95 if [ -n "$PREFIX" ]; then
96 echo "WARNING: PREFIX not supported on Android. You can however use --rbdir"
98 if [ -z "$ANDROID_SDK_PATH" ]; then
99 echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH"
100 echo "environment variable point to the root directory of the Android SDK."
103 if [ -z "$ANDROID_NDK_PATH" ]; then
104 echo "ERROR: You need the Android NDK installed and have the ANDROID_NDK_PATH"
105 echo "environment variable point to the root directory of the Android NDK."
108 rbdir
="/data/data/org.rockbox/app_rockbox/rockbox"
109 bindir
="/data/data/org.rockbox/lib"
111 libdir
="/data/data/org.rockbox/app_rockbox"
113 output
="librockbox.so"
114 bootoutput
="librockbox.so"
119 if [ "$ARG_ARM_EABI" != "0" ]; then
120 prefixtools arm-elf-eabi-
128 # scan the $PATH for the given command
135 # echo "checks for $file in $path" >&2
136 if test -f "$path/$file"; then
141 # check whether caller wants literal return value if not found
142 if [ "$2" = "--lit" ]; then
147 # scan the $PATH for sdl-config - check whether for a (cross-)win32
156 #echo "checks for $file in $path" >&2
157 if test -f "$path/$file"; then
158 if [ "0" != `$path/$file --libs |grep -c mwindows` ]; then
159 if [ "yes" = "${winbuild}" ]; then
164 if [ "yes" != "${winbuild}" ]; then
174 if [ "$1" = "sdl" ]; then
176 elif [ "$1" = "android" ]; then
184 # default tool setup for native building
185 prefixtools
"$CROSS_COMPILE"
186 ARG_ARM_THUMB
=0 # can't use thumb in native builds
190 GCCOPTS
='-W -Wall -g -fno-builtin'
192 LDOPTS
='-lm' # button-sdl.c uses sqrt()
194 # default output binary name, don't override app_get_platform()
195 if [ "$app_type" != "sdl-app" ]; then
199 # default share option, override below if needed
200 SHARED_FLAG
="-shared"
202 if [ "$win32crosscompile" = "yes" ]; then
203 LDOPTS
="$LDOPTS -mconsole"
209 echo "Cygwin host detected"
211 LDOPTS
="$LDOPTS -mconsole"
217 echo "MinGW host detected"
219 LDOPTS
="$LDOPTS -mconsole"
225 echo "Linux host detected"
226 LDOPTS
="$LDOPTS -ldl"
230 echo "FreeBSD host detected"
231 LDOPTS
="$LDOPTS -ldl"
235 echo "Darwin host detected"
236 LDOPTS
="$LDOPTS -ldl"
238 SHARED_FLAG
="-dynamiclib -Wl\,-single_module"
242 echo "*Solaris host detected"
244 GCCOPTS
="$GCCOPTS -fPIC"
245 LDOPTS
="$LDOPTS -ldl"
249 echo "[ERROR] Unsupported system: $uname, fix configure and retry"
255 [ "$winbuild" != "yes" ] && GLOBAL_LDOPTS
="$GLOBAL_LDOPTS -Wl,-z,defs"
256 sdl
=`findsdl $winbuild`
258 if [ -n `echo $app_type | grep "sdl"` ]; then
259 if [ -z "$sdl" ]; then
260 echo "configure didn't find sdl-config, which indicates that you"
261 echo "don't have SDL (properly) installed. Please correct and"
262 echo "re-run configure!"
265 # generic sdl-config checker
266 GCCOPTS
="$GCCOPTS `$sdl --cflags`"
267 LDOPTS
="$LDOPTS `$sdl --libs`"
272 GCCOPTS
="$GCCOPTS -I\$(SIMDIR)"
274 if test "X$win32crosscompile" != "Xyes"; then
277 # fPIC is needed to make shared objects link
278 # setting visibility to hidden is necessary to avoid strange crashes
279 # due to symbol clashing
280 GCCOPTS
="$GCCOPTS -fPIC -fvisibility=hidden"
281 # x86_64 supports MMX by default
285 echo "Enabling MMX support"
286 GCCOPTS
="$GCCOPTS -mmmx"
291 cat >$tmpdir/conftest-
$id.c
<<EOF
293 int main(int argc, char **argv)
296 char *varp = (char *)&var;
304 $CC -o $tmpdir/conftest-
$id $tmpdir/conftest-
$id.c
2>/dev
/null
306 # when cross compiling, the endianess cannot be detected because the above program doesn't run
307 # on the local machine. assume little endian but print a warning
308 endian
=`$tmpdir/conftest-$id 2> /dev/null`
309 if [ "$endian" != "" ] && [ $endian -gt "1" ]; then
317 if [ "$CROSS_COMPILE" != "" ]; then
318 echo "WARNING: Cross Compiling, cannot detect endianess. Assuming little endian!"
321 if [ "$app_type" = "sdl-sim" ]; then
322 echo "Simulator environment deemed $endian endian"
323 elif [ "$app_type" = "sdl-app" ]; then
324 echo "Application environment deemed $endian endian"
325 elif [ "$app_type" = "checkwps" ]; then
326 echo "CheckWPS environment deemed $endian endian"
329 # use wildcard here to make it work even if it was named *.exe like
331 rm -f $tmpdir/conftest-
$id*
333 # We are crosscompiling
334 # add cross-compiler option(s)
335 prefixtools i586-mingw32msvc-
336 LDOPTS
="$LDOPTS -mconsole"
337 output
="rockboxui.exe"
338 endian
="little" # windows is little endian
339 echo "Enabling MMX support"
340 GCCOPTS
="$GCCOPTS -mmmx"
345 # functions for setting up cross-compiler names and options
346 # also set endianess and what the exact recommended gcc version is
347 # the gcc version should most likely match what versions we build with
352 GCCOPTS
="$CCOPTS -m1"
353 GCCOPTIMIZE
="-fomit-frame-pointer -fschedule-insns"
359 prefixtools calmrisc16-unknown-elf-
360 GCCOPTS
="-Wl\,--no-check-sections $CCOPTS"
361 GCCOPTIMIZE
="-fomit-frame-pointer"
366 prefixtools m68k-elf-
367 GCCOPTS
="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
368 GCCOPTIMIZE
="-fomit-frame-pointer"
375 GCCOPTS
="$CCOPTS -mcpu=arm7tdmi"
376 if test "X$1" != "Xshort" -a "$ARG_ARM_EABI" = "0"; then
377 GCCOPTS
="$GCCOPTS -mlong-calls"
379 GCCOPTIMIZE
="-fomit-frame-pointer"
385 GCCOPTS
="$CCOPTS -mcpu=arm9tdmi"
386 if test "$modelname" != "gigabeatfx" -a "$t_manufacturer" != "as3525" -a "$ARG_ARM_EABI" = "0"; then
387 GCCOPTS
="$GCCOPTS -mlong-calls"
389 GCCOPTIMIZE
="-fomit-frame-pointer"
395 GCCOPTS
="$CCOPTS -mbig-endian -mcpu=arm940t"
396 if test "$ARG_ARM_EABI" = "0"; then
397 GCCOPTS
="$GCCOPTS -mlong-calls"
399 GCCOPTIMIZE
="-fomit-frame-pointer"
405 GCCOPTS
="$CCOPTS -mcpu=arm940t"
406 if test "$ARG_ARM_EABI" = "0"; then
407 GCCOPTS
="$GCCOPTS -mlong-calls"
409 GCCOPTIMIZE
="-fomit-frame-pointer"
415 GCCOPTS
="$CCOPTS -mcpu=arm9e"
416 if test "$ARG_ARM_EABI" = "0"; then
417 GCCOPTS
="$GCCOPTS -mlong-calls"
419 GCCOPTIMIZE
="-fomit-frame-pointer"
425 GCCOPTS
="$CCOPTS -mcpu=arm926ej-s"
426 if test "$t_manufacturer" != "as3525" -a "$ARG_ARM_EABI" = "0"; then
427 GCCOPTS
="$GCCOPTS -mlong-calls"
429 GCCOPTIMIZE
="-fomit-frame-pointer"
435 GCCOPTS
="$CCOPTS -mcpu=arm1136jf-s"
436 if test "$modelname" != "gigabeats" -a "$ARG_ARM_EABI" = "0"; then
437 GCCOPTS
="$GCCOPTS -mlong-calls"
439 GCCOPTIMIZE
="-fomit-frame-pointer"
445 GCCOPTS
="$CCOPTS -mcpu=arm1176jz-s"
446 if test "$ARG_ARM_EABI" = "0"; then
447 GCCOPTS
="$GCCOPTS -mlong-calls"
449 GCCOPTIMIZE
="-fomit-frame-pointer"
454 prefixtools mipsel-elf-
455 # mips is predefined, but we want it for paths. use __mips instead
456 GCCOPTS
="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls -Umips"
457 GCCOPTS
="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
458 GCCOPTIMIZE
="-fomit-frame-pointer"
465 prefixtools
$ANDROID_NDK_PATH/build
/prebuilt
/linux-x86
/arm-eabi-
$gccchoice/bin
/arm-eabi-
466 GCCOPTS
=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
467 GCCOPTS
="$GCCOPTS -ffunction-sections -fno-short-enums -march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer"
468 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"
469 LDOPTS
="$LDOPTS -shared -nostdlib -lm -ldl -llog"
470 extradefines
="$extradefines -DANDROID"
472 SHARED_FLAG
="-shared"
476 atype
=`echo "$1" | cut -c 2-`
477 ##################################################################
478 # Prompt for specific developer options
480 if [ "$atype" ]; then
485 printf "Enter your developer options (press only enter when done)\n\
486 (D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile,\n\
487 (T)est plugins, S(m)all C lib:"
488 if [ "$memory" = "2" ]; then
491 if [ "$modelname" = "archosplayer" ]; then
492 printf ", Use (A)TA poweroff"
494 if [ "$t_model" = "ondio" ]; then
495 printf ", (B)acklight MOD"
497 if [ "$modelname" = "iaudiom5" ]; then
498 printf ", (F)M radio MOD"
500 if [ "$modelname" = "iriverh120" ]; then
507 while [ $cont = "1" ]; do
509 if [ "$interact" ]; then
512 option
=`echo "$atype" | cut -c 1`
517 if [ "yes" = "$profile" ]; then
518 echo "Debug is incompatible with profiling"
520 echo "DEBUG build enabled"
525 echo "logf() support enabled"
529 echo "Using Rockbox' small C library"
530 extradefines
="$extradefines -DHAVE_ROCKBOX_C_LIBRARY"
533 echo "Including test plugins"
534 extradefines
="$extradefines -DHAVE_TEST_PLUGINS"
537 echo "bootchart enabled (logf also enabled)"
542 echo "Simulator build enabled"
546 if [ "yes" = "$use_debug" ]; then
547 echo "Profiling is incompatible with debug"
549 echo "Profiling support is enabled"
554 echo "Voice build selected"
558 if [ "$memory" = "2" ]; then
560 echo "Memory size selected: 8MB"
564 if [ "$modelname" = "archosplayer" ]; then
565 have_ata_poweroff
="#define HAVE_ATA_POWER_OFF"
566 echo "ATA power off enabled"
570 if [ "$t_model" = "ondio" ]; then
571 have_backlight
="#define HAVE_BACKLIGHT"
572 echo "Backlight functions enabled"
576 if [ "$modelname" = "iaudiom5" ]; then
577 have_fmradio_in
="#define HAVE_FMRADIO_IN"
578 echo "FM radio functions enabled"
582 if [ "$modelname" = "iriverh120" ]; then
583 config_rtc
="#define CONFIG_RTC RTC_DS1339_DS3231"
584 have_rtc_alarm
="#define HAVE_RTC_ALARM"
585 echo "RTC functions enabled (DS1339/DS3231)"
589 echo "Enabling Windows 32 cross-compiling"
590 win32crosscompile
="yes"
592 "") # Match enter press when finished with advanced options
596 echo "[ERROR] Option $option unsupported"
599 if [ "$interact" ]; then
600 btype
="$btype$option"
602 atype
=`echo "$atype" | cut -c 2-`
603 [ "$atype" ] || cont
=0
608 if [ "yes" = "$voice" ]; then
609 # Ask about languages to build
611 voicelanguage
=`whichlang`
612 echo "Voice language set to $voicelanguage"
614 # Configure encoder and TTS engine for each language
615 for thislang
in `echo $voicelanguage | sed 's/,/ /g'`; do
616 voiceconfig
"$thislang"
619 if [ "yes" = "$use_debug" ]; then
621 GCCOPTS
="$GCCOPTS -g -DDEBUG"
623 if [ "yes" = "$logf" ]; then
624 use_logf
="#define ROCKBOX_HAS_LOGF 1"
626 if [ "yes" = "$bootchart" ]; then
627 use_bootchart
="#define DO_BOOTCHART 1"
629 if [ "yes" = "$simulator" ]; then
631 extradefines
="$extradefines -DSIMULATOR"
635 if [ "yes" = "$profile" ]; then
636 extradefines
="$extradefines -DRB_PROFILE"
637 PROFILE_OPTS
="-finstrument-functions"
641 # Configure voice settings
644 if [ ! "$ARG_TTS" ]; then
645 echo "Building $thislang voice for $modelname. Select options"
649 if [ -n "`findtool flite`" ]; then
653 DEFAULT_TTS_OPTS
=$FLITE_OPTS
654 DEFAULT_NOISEFLOOR
="500"
657 if [ -n "`findtool espeak`" ]; then
661 DEFAULT_TTS_OPTS
=$ESPEAK_OPTS
662 DEFAULT_NOISEFLOOR
="500"
665 if [ -n "`findtool festival`" ]; then
666 FESTIVAL
="(F)estival "
669 FESTIVAL_OPTS
="--language italian"
672 FESTIVAL_OPTS
="--language spanish"
675 FESTIVAL_OPTS
="--language finnish"
678 FESTIVAL_OPTS
="--language czech"
684 DEFAULT_TTS
="festival"
685 DEFAULT_TTS_OPTS
=$FESTIVAL_OPTS
686 DEFAULT_NOISEFLOOR
="500"
689 if [ -n "`findtool swift`" ]; then
693 DEFAULT_TTS_OPTS
=$SWIFT_OPTS
694 DEFAULT_NOISEFLOOR
="500"
697 # Allow SAPI if Windows is in use
698 if [ -n "`findtool winver`" ]; then
702 DEFAULT_TTS_OPTS
=$SAPI_OPTS
703 DEFAULT_NOISEFLOOR
="500"
707 if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
708 echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
712 if [ "$ARG_TTS" ]; then
715 echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
718 advopts
="$advopts --tts=$option"
722 NOISEFLOOR
="500" # TODO: check this value
728 TTS_OPTS
=$ESPEAK_OPTS
731 TTS_ENGINE
="festival"
733 TTS_OPTS
=$FESTIVAL_OPTS
746 TTS_ENGINE
=$DEFAULT_TTS
747 TTS_OPTS
=$DEFAULT_TTS_OPTS
748 NOISEFLOOR
=$DEFAULT_NOISEFLOOR
750 echo "Using $TTS_ENGINE for TTS"
752 # Select which voice to use for Festival
753 if [ "$TTS_ENGINE" = "festival" ]; then
754 voicelist
=`echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`
755 for voice
in $voicelist; do
756 TTS_FESTIVAL_VOICE
="$voice" # Default choice
759 if [ "$ARG_VOICE" ]; then
763 for voice
in $voicelist; do
764 printf "%3d. %s\n" "$i" "$voice"
767 printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
771 for voice
in $voicelist; do
772 if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
773 TTS_FESTIVAL_VOICE
="$voice"
777 advopts
="$advopts --voice=$CHOICE"
778 echo "Festival voice set to $TTS_FESTIVAL_VOICE"
779 echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
782 # Read custom tts options from command line
783 if [ "$ARG_TTSOPTS" ]; then
784 TTS_OPTS
="$ARG_TTSOPTS"
785 advopts
="$advopts --ttsopts='$TTS_OPTS'"
786 echo "$TTS_ENGINE options set to $TTS_OPTS"
789 if [ "$swcodec" = "yes" ]; then
792 ENC_OPTS
="-q 4 -c 10"
794 if [ -n "`findtool lame`" ]; then
797 ENC_OPTS
="--resample 12 -t -m m -h -V 9.999 -S -B 64 --vbr-new"
799 echo "You need LAME in the system path to build voice files for"
800 echo "HWCODEC targets."
805 echo "Using $ENCODER for encoding voice clips"
807 # Read custom encoder options from command line
808 if [ "$ARG_ENCOPTS" ]; then
809 ENC_OPTS
="$ARG_ENCOPTS"
810 advopts
="$advopts --encopts='$ENC_OPTS'"
811 echo "$ENCODER options set to $ENC_OPTS"
815 if [ -n "`findtool cygpath`" ]; then
816 TEMPDIR
=`cygpath . -a -w`
821 # figure out which languages that are around
822 for file in $rootdir/apps
/lang
/*.lang
; do
823 clean
=`basename $file .lang`
824 langs
="$langs $clean"
827 if [ "$ARG_LANG" ]; then
830 echo "Select a number for the language to use (default is english)"
831 # FIXME The multiple-language feature is currently broken
832 # echo "You may enter a comma-separated list of languages to build"
835 for one
in $langs; do
841 advopts
="$advopts --language=$pick"
846 # Allow the user to pass a comma-separated list of langauges
847 for thispick
in `echo $pick | sed 's/,/ /g'`; do
849 for one
in $langs; do
850 # Accept both the language number and name
851 if [ "$num" = "$thispick" ] ||
[ "$thispick" = "$one" ]; then
852 if [ "$output" = "" ]; then
861 if [ -z "$output" ]; then
869 echo "Rockbox configure script."
870 echo "Invoke this in a directory to generate a Makefile to build Rockbox"
871 echo "Do *NOT* run this within the tools directory!"
874 Usage: configure [OPTION]...
876 --target=TARGET Sets the target, TARGET can be either the target ID or
877 corresponding string. Run without this option to see all
880 --ram=RAM Sets the RAM for certain targets. Even though any number
881 is accepted, not every number is correct. The default
882 value will be applied, if you entered a wrong number
883 (which depends on the target). Watch the output. Run
884 without this option if you are not sure which the right
887 --type=TYPE Sets the build type. Shortcuts are also valid.
888 Run without this option to see all available types.
889 Multiple values are allowed and managed in the input
890 order. So --type=b stands for Bootloader build, while
891 --type=ab stands for "Backlight MOD" build.
893 --language=LANG Set the language used for voice generation (used only if
896 --tts=ENGINE Set the TTS engine used for voice generation (used only
899 --voice=VOICE Set voice to use with selected TTS (used only if TYPE is
902 --ttsopts=OPTS Set TTS engine manual options (used only if TYPE is AV).
904 --encopts=OPTS Set encoder manual options (used only if ATYPE is AV).
906 --rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
907 This is useful for having multiple alternate builds on
908 your device that you can load with ROLO. However as the
909 bootloader looks for .rockbox you won't be able to boot
912 --ccache Enable ccache use (done by default these days)
913 --no-ccache Disable ccache use
915 --eabi Make configure prefer toolchains that are able to compile
916 for the new ARM standard abi EABI
917 --no-eabi The opposite of --eabi (prefer old non-eabi toolchains)
918 --thumb Build with -mthumb (for ARM builds)
919 --no-thumb The opposite of --thumb (don't use thumb even for targets
920 where this is the default
921 --prefix Target installation directory
922 --help Shows this message (must not be used with other options)
944 --ccache) ARG_CCACHE
=1;;
945 --no-ccache) ARG_CCACHE
=0;;
946 --encopts=*) ARG_ENCOPTS
=`echo "$arg" | cut -d = -f 2`;;
947 --language=*) ARG_LANG
=`echo "$arg" | cut -d = -f 2`;;
948 --ram=*) ARG_RAM
=`echo "$arg" | cut -d = -f 2`;;
949 --rbdir=*) ARG_RBDIR
=`echo "$arg" | cut -d = -f 2`;;
950 --target=*) ARG_TARGET
=`echo "$arg" | cut -d = -f 2`;;
951 --tts=*) ARG_TTS
=`echo "$arg" | cut -d = -f 2`;;
952 --ttsopts=*) ARG_TTSOPTS
=`echo "$arg" | cut -d = -f 2`;;
953 --type=*) ARG_TYPE
=`echo "$arg" | cut -d = -f 2`;;
954 --voice=*) ARG_VOICE
=`echo "$arg" | cut -d = -f 2`;;
955 --eabi) ARG_ARM_EABI
=1;;
956 --no-eabi) ARG_ARM_EABI
=0;;
957 --thumb) ARG_ARM_THUMB
=1;;
958 --no-thumb) ARG_ARM_THUMB
=0;;
959 --prefix=*) PREFIX
=`echo "$arg" | cut -d = -f 2`;;
961 *) err
=1; echo "[ERROR] Option '$arg' unsupported";;
968 if [ "$TMPDIR" != "" ]; then
973 echo Using temporary directory
$tmpdir
975 if test -r "configure"; then
976 # this is a check for a configure script in the current directory, it there
977 # is one, try to figure out if it is this one!
979 if { grep "^# Jukebox" configure
>/dev
/null
2>&1 ; } then
980 echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
981 echo "It will only cause you pain and grief. Instead do this:"
984 echo " mkdir build-dir"
986 echo " ../tools/configure"
988 echo "Much happiness will arise from this. Enjoy"
993 # get our current directory
996 if { echo $pwd |
grep " "; } then
997 echo "You're running this script in a path that contains space. The build"
998 echo "system is unfortunately not clever enough to deal with this. Please"
999 echo "run the script from a different path, rename the path or fix the build"
1004 if [ -z "$rootdir" ]; then
1005 ##################################################################
1006 # Figure out where the source code root is!
1008 rootdir
=`dirname $0`/..
/
1010 #####################################################################
1011 # Convert the possibly relative directory name to an absolute version
1017 # cd back to the build dir
1022 appsdir
='\$(ROOTDIR)/apps'
1023 firmdir
='\$(ROOTDIR)/firmware'
1024 toolsdir
='\$(ROOTDIR)/tools'
1027 ##################################################################
1028 # Figure out target platform
1031 if [ "$ARG_TARGET" ]; then
1032 buildfor
=$ARG_TARGET
1034 echo "Enter target platform:"
1036 ==Archos== ==iriver== ==Apple iPod==
1037 0) Player/Studio 10) H120/H140 20) Color/Photo
1038 1) Recorder 11) H320/H340 21) Nano 1G
1039 2) FM Recorder 12) iHP-100/110/115 22) Video
1040 3) Recorder v2 13) iFP-790 23) 3G
1041 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
1042 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
1043 6) AV300 26) Mini 2G
1044 ==Toshiba== 27) 1G, 2G
1045 ==Cowon/iAudio== 40) Gigabeat F/X 28) Nano 2G
1046 30) X5/X5V/X5L 41) Gigabeat S
1047 31) M5/M5L ==SanDisk==
1048 32) 7 ==Olympus= 50) Sansa e200
1049 33) D2 70) M:Robe 500 51) Sansa e200R
1050 34) M3/M3L 71) M:Robe 100 52) Sansa c200
1052 ==Creative== ==Philips== 54) Sansa c100
1053 90) Zen Vision:M 30GB 100) GoGear SA9200 55) Sansa Clip
1054 91) Zen Vision:M 60GB 101) GoGear HDD1630/ 56) Sansa e200v2
1055 92) Zen Vision HDD1830 57) Sansa m200v4
1056 102) GoGear HDD6330 58) Sansa Fuze
1057 ==Onda== 59) Sansa c200v2
1058 120) VX747 ==Meizu== 60) Sansa Clipv2
1059 121) VX767 110) M6SL 61) Sansa View
1060 122) VX747+ 111) M6SP 62) Sansa Clip+
1061 123) VX777 112) M3 63) Sansa Fuze v2
1064 ==Samsung== ==Tatung== 80) DAX 1GB MP3/DAB
1065 140) YH-820 150) Elio TPJ-1022
1066 141) YH-920 ==Lyre project==
1067 142) YH-925 ==Packard Bell== 130) Lyre proto 1
1068 143) YP-S3 160) Vibe 500 131) Mini2440
1070 ==MPIO== == Application ==
1071 170) HD200 200) Application
1078 # Set of tools built for all target platforms:
1079 toolset
="rdf2binary convbdf codepages"
1081 # Toolsets for some target families:
1082 archosbitmaptools
="$toolset scramble descramble sh2d uclpack bmp2rb"
1083 iriverbitmaptools
="$toolset scramble descramble mkboot bmp2rb"
1084 iaudiobitmaptools
="$toolset scramble descramble mkboot bmp2rb"
1085 ipodbitmaptools
="$toolset scramble bmp2rb"
1086 gigabeatbitmaptools
="$toolset scramble descramble bmp2rb"
1087 tccbitmaptools
="$toolset scramble bmp2rb"
1088 # generic is used by IFP, Meizu and Onda
1089 genericbitmaptools
="$toolset bmp2rb"
1090 # scramble is used by all other targets
1091 scramblebitmaptools
="$genericbitmaptools scramble"
1094 # ---- For each target ----
1097 # target_id: a unique number identifying this target, IS NOT the menu number.
1098 # Just use the currently highest number+1 when you add a new
1100 # modelname: short model name used all over to identify this target
1101 # memory: number of megabytes of RAM this target has. If the amount can
1102 # be selected by the size prompt, let memory be unset here
1103 # target: -Ddefine passed to the build commands to make the correct
1104 # config-*.h file get included etc
1105 # tool: the tool that takes a plain binary and converts that into a
1106 # working "firmware" file for your target
1107 # output: the final output file name
1108 # boottool: the tool that takes a plain binary and generates a bootloader
1109 # file for your target (or blank to use $tool)
1110 # bootoutput:the final output file name for the bootloader (or blank to use
1112 # appextra: passed to the APPEXTRA variable in the Makefiles.
1113 # TODO: add proper explanation
1114 # archosrom: used only for Archos targets that build a special flashable .ucl
1116 # flash: name of output for flashing, for targets where there's a special
1117 # file output for this.
1118 # plugins: set to 'yes' to build the plugins. Early development builds can
1119 # set this to no in the early stages to have an easier life for a
1121 # swcodec: set 'yes' on swcodec targets
1122 # toolset: lists what particular tools in the tools/ directory that this
1123 # target needs to have built prior to building Rockbox
1126 # *cc: sets up gcc and compiler options for your target builds. Note
1127 # that if you select a simulator build, the compiler selection is
1128 # overridden later in the script.
1134 modelname
="archosplayer"
1135 target
="-DARCHOS_PLAYER"
1137 tool
="$rootdir/tools/scramble"
1139 appextra
="player:gui"
1140 archosrom
="$pwd/rombox.ucl"
1141 flash
="$pwd/rockbox.ucl"
1145 # toolset is the tools within the tools directory that we build for
1146 # this particular target.
1147 toolset
="$toolset scramble descramble sh2d player_unifont uclpack"
1149 # Note: the convbdf is present in the toolset just because: 1) the
1150 # firmware/Makefile assumes it is present always, and 2) we will need it when we
1151 # build the player simulator
1154 t_manufacturer
="archos"
1160 modelname
="archosrecorder"
1161 target
="-DARCHOS_RECORDER"
1163 tool
="$rootdir/tools/scramble"
1164 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1165 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1167 appextra
="recorder:gui:radio"
1168 #archosrom="$pwd/rombox.ucl"
1169 flash
="$pwd/rockbox.ucl"
1172 # toolset is the tools within the tools directory that we build for
1173 # this particular target.
1174 toolset
=$archosbitmaptools
1176 t_manufacturer
="archos"
1182 modelname
="archosfmrecorder"
1183 target
="-DARCHOS_FMRECORDER"
1185 tool
="$rootdir/tools/scramble -fm"
1186 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1187 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1189 appextra
="recorder:gui:radio"
1190 #archosrom="$pwd/rombox.ucl"
1191 flash
="$pwd/rockbox.ucl"
1194 # toolset is the tools within the tools directory that we build for
1195 # this particular target.
1196 toolset
=$archosbitmaptools
1198 t_manufacturer
="archos"
1204 modelname
="archosrecorderv2"
1205 target
="-DARCHOS_RECORDERV2"
1207 tool
="$rootdir/tools/scramble -v2"
1208 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1209 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1211 appextra
="recorder:gui:radio"
1212 #archosrom="$pwd/rombox.ucl"
1213 flash
="$pwd/rockbox.ucl"
1216 # toolset is the tools within the tools directory that we build for
1217 # this particular target.
1218 toolset
=$archosbitmaptools
1220 t_manufacturer
="archos"
1226 modelname
="archosondiosp"
1227 target
="-DARCHOS_ONDIOSP"
1229 tool
="$rootdir/tools/scramble -osp"
1230 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1231 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1233 appextra
="recorder:gui:radio"
1234 #archosrom="$pwd/rombox.ucl"
1235 flash
="$pwd/rockbox.ucl"
1238 # toolset is the tools within the tools directory that we build for
1239 # this particular target.
1240 toolset
=$archosbitmaptools
1242 t_manufacturer
="archos"
1248 modelname
="archosondiofm"
1249 target
="-DARCHOS_ONDIOFM"
1251 tool
="$rootdir/tools/scramble -ofm"
1252 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1253 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1255 appextra
="recorder:gui:radio"
1256 #archosrom="$pwd/rombox.ucl"
1257 flash
="$pwd/rockbox.ucl"
1260 toolset
=$archosbitmaptools
1262 t_manufacturer
="archos"
1268 modelname
="archosav300"
1269 target
="-DARCHOS_AV300"
1272 tool
="$rootdir/tools/scramble -mm=C"
1273 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1274 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1276 appextra
="recorder:gui:radio"
1279 # toolset is the tools within the tools directory that we build for
1280 # this particular target.
1281 toolset
="$toolset scramble descramble bmp2rb"
1282 # architecture, manufacturer and model for the target-tree build
1284 t_manufacturer
="archos"
1290 modelname
="iriverh120"
1291 target
="-DIRIVER_H120"
1294 tool
="$rootdir/tools/scramble -add=h120"
1295 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1296 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1297 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1298 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1299 output
="rockbox.iriver"
1300 bootoutput
="bootloader.iriver"
1301 appextra
="recorder:gui:radio"
1302 flash
="$pwd/rombox.iriver"
1305 # toolset is the tools within the tools directory that we build for
1306 # this particular target.
1307 toolset
=$iriverbitmaptools
1309 t_manufacturer
="iriver"
1315 modelname
="iriverh300"
1316 target
="-DIRIVER_H300"
1319 tool
="$rootdir/tools/scramble -add=h300"
1320 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1321 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1322 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1323 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1324 output
="rockbox.iriver"
1325 appextra
="recorder:gui:radio"
1328 # toolset is the tools within the tools directory that we build for
1329 # this particular target.
1330 toolset
=$iriverbitmaptools
1332 t_manufacturer
="iriver"
1338 modelname
="iriverh100"
1339 target
="-DIRIVER_H100"
1342 tool
="$rootdir/tools/scramble -add=h100"
1343 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1344 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1345 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1346 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1347 output
="rockbox.iriver"
1348 bootoutput
="bootloader.iriver"
1349 appextra
="recorder:gui:radio"
1350 flash
="$pwd/rombox.iriver"
1353 # toolset is the tools within the tools directory that we build for
1354 # this particular target.
1355 toolset
=$iriverbitmaptools
1357 t_manufacturer
="iriver"
1363 modelname
="iriverifp7xx"
1364 target
="-DIRIVER_IFP7XX"
1368 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1369 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1370 output
="rockbox.wma"
1371 appextra
="recorder:gui:radio"
1374 # toolset is the tools within the tools directory that we build for
1375 # this particular target.
1376 toolset
=$genericbitmaptools
1378 t_manufacturer
="pnx0101"
1379 t_model
="iriver-ifp7xx"
1384 modelname
="iriverh10"
1385 target
="-DIRIVER_H10"
1388 tool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
1389 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1390 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1391 output
="rockbox.mi4"
1392 appextra
="recorder:gui:radio"
1395 boottool
="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
1396 bootoutput
="H10_20GC.mi4"
1397 # toolset is the tools within the tools directory that we build for
1398 # this particular target.
1399 toolset
=$scramblebitmaptools
1400 # architecture, manufacturer and model for the target-tree build
1402 t_manufacturer
="iriver"
1408 modelname
="iriverh10_5gb"
1409 target
="-DIRIVER_H10_5GB"
1412 tool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
1413 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1414 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1415 output
="rockbox.mi4"
1416 appextra
="recorder:gui:radio"
1419 boottool
="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
1420 bootoutput
="H10.mi4"
1421 # toolset is the tools within the tools directory that we build for
1422 # this particular target.
1423 toolset
=$scramblebitmaptools
1424 # architecture, manufacturer and model for the target-tree build
1426 t_manufacturer
="iriver"
1432 modelname
="ipodcolor"
1433 target
="-DIPOD_COLOR"
1436 tool
="$rootdir/tools/scramble -add=ipco"
1437 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1438 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1439 output
="rockbox.ipod"
1440 appextra
="recorder:gui:radio"
1443 bootoutput
="bootloader-$modelname.ipod"
1444 # toolset is the tools within the tools directory that we build for
1445 # this particular target.
1446 toolset
=$ipodbitmaptools
1447 # architecture, manufacturer and model for the target-tree build
1449 t_manufacturer
="ipod"
1455 modelname
="ipodnano1g"
1456 target
="-DIPOD_NANO"
1459 tool
="$rootdir/tools/scramble -add=nano"
1460 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1461 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
1462 output
="rockbox.ipod"
1463 appextra
="recorder:gui:radio"
1466 bootoutput
="bootloader-$modelname.ipod"
1467 # toolset is the tools within the tools directory that we build for
1468 # this particular target.
1469 toolset
=$ipodbitmaptools
1470 # architecture, manufacturer and model for the target-tree build
1472 t_manufacturer
="ipod"
1478 modelname
="ipodvideo"
1479 target
="-DIPOD_VIDEO"
1480 memory
=64 # always. This is reduced at runtime if needed
1482 tool
="$rootdir/tools/scramble -add=ipvd"
1483 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1484 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1485 output
="rockbox.ipod"
1486 appextra
="recorder:gui:radio"
1489 bootoutput
="bootloader-$modelname.ipod"
1490 # toolset is the tools within the tools directory that we build for
1491 # this particular target.
1492 toolset
=$ipodbitmaptools
1493 # architecture, manufacturer and model for the target-tree build
1495 t_manufacturer
="ipod"
1505 tool
="$rootdir/tools/scramble -add=ip3g"
1506 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1507 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1508 output
="rockbox.ipod"
1509 appextra
="recorder:gui:radio"
1512 bootoutput
="bootloader-$modelname.ipod"
1513 # toolset is the tools within the tools directory that we build for
1514 # this particular target.
1515 toolset
=$ipodbitmaptools
1516 # architecture, manufacturer and model for the target-tree build
1518 t_manufacturer
="ipod"
1528 tool
="$rootdir/tools/scramble -add=ip4g"
1529 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1530 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1531 output
="rockbox.ipod"
1532 appextra
="recorder:gui:radio"
1535 bootoutput
="bootloader-$modelname.ipod"
1536 # toolset is the tools within the tools directory that we build for
1537 # this particular target.
1538 toolset
=$ipodbitmaptools
1539 # architecture, manufacturer and model for the target-tree build
1541 t_manufacturer
="ipod"
1547 modelname
="ipodmini1g"
1548 target
="-DIPOD_MINI"
1551 tool
="$rootdir/tools/scramble -add=mini"
1552 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1553 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1554 output
="rockbox.ipod"
1555 appextra
="recorder:gui:radio"
1558 bootoutput
="bootloader-$modelname.ipod"
1559 # toolset is the tools within the tools directory that we build for
1560 # this particular target.
1561 toolset
=$ipodbitmaptools
1562 # architecture, manufacturer and model for the target-tree build
1564 t_manufacturer
="ipod"
1570 modelname
="ipodmini2g"
1571 target
="-DIPOD_MINI2G"
1574 tool
="$rootdir/tools/scramble -add=mn2g"
1575 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1576 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1577 output
="rockbox.ipod"
1578 appextra
="recorder:gui:radio"
1581 bootoutput
="bootloader-$modelname.ipod"
1582 # toolset is the tools within the tools directory that we build for
1583 # this particular target.
1584 toolset
=$ipodbitmaptools
1585 # architecture, manufacturer and model for the target-tree build
1587 t_manufacturer
="ipod"
1593 modelname
="ipod1g2g"
1594 target
="-DIPOD_1G2G"
1597 tool
="$rootdir/tools/scramble -add=1g2g"
1598 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1599 bmp2rb_native
="$rootdir/tools/bmp2rb -f 6"
1600 output
="rockbox.ipod"
1601 appextra
="recorder:gui:radio"
1604 bootoutput
="bootloader-$modelname.ipod"
1605 # toolset is the tools within the tools directory that we build for
1606 # this particular target.
1607 toolset
=$ipodbitmaptools
1608 # architecture, manufacturer and model for the target-tree build
1610 t_manufacturer
="ipod"
1616 modelname
="ipodnano2g"
1617 target
="-DIPOD_NANO2G"
1620 tool
="$rootdir/tools/scramble -add=nn2g"
1621 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1622 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1623 output
="rockbox.ipod"
1624 appextra
="recorder:gui:radio"
1627 bootoutput
="bootloader-$modelname.ipod"
1628 # toolset is the tools within the tools directory that we build for
1629 # this particular target.
1630 toolset
=$ipodbitmaptools
1631 # architecture, manufacturer and model for the target-tree build
1633 t_manufacturer
="s5l8700"
1634 t_model
="ipodnano2g"
1639 modelname
="iaudiox5"
1640 target
="-DIAUDIO_X5"
1643 tool
="$rootdir/tools/scramble -add=iax5"
1644 boottool
="$rootdir/tools/scramble -iaudiox5"
1645 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1646 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1647 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1648 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1649 output
="rockbox.iaudio"
1650 bootoutput
="x5_fw.bin"
1651 appextra
="recorder:gui:radio"
1654 # toolset is the tools within the tools directory that we build for
1655 # this particular target.
1656 toolset
="$iaudiobitmaptools"
1657 # architecture, manufacturer and model for the target-tree build
1659 t_manufacturer
="iaudio"
1665 modelname
="iaudiom5"
1666 target
="-DIAUDIO_M5"
1669 tool
="$rootdir/tools/scramble -add=iam5"
1670 boottool
="$rootdir/tools/scramble -iaudiom5"
1671 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1672 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
1673 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1674 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 7"
1675 output
="rockbox.iaudio"
1676 bootoutput
="m5_fw.bin"
1677 appextra
="recorder:gui:radio"
1680 # toolset is the tools within the tools directory that we build for
1681 # this particular target.
1682 toolset
="$iaudiobitmaptools"
1683 # architecture, manufacturer and model for the target-tree build
1685 t_manufacturer
="iaudio"
1695 tool
="$rootdir/tools/scramble -add=i7"
1696 boottool
="$rootdir/tools/scramble -tcc=crc"
1697 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1698 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1699 output
="rockbox.iaudio"
1700 appextra
="recorder:gui:radio"
1703 bootoutput
="I7_FW.BIN"
1704 # toolset is the tools within the tools directory that we build for
1705 # this particular target.
1706 toolset
="$tccbitmaptools"
1707 # architecture, manufacturer and model for the target-tree build
1709 t_manufacturer
="tcc77x"
1719 tool
="$rootdir/tools/scramble -add=d2"
1721 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1722 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1724 bootoutput
="bootloader-cowond2.bin"
1725 appextra
="recorder:gui:radio"
1728 toolset
="$tccbitmaptools"
1729 # architecture, manufacturer and model for the target-tree build
1731 t_manufacturer
="tcc780x"
1737 modelname
="iaudiom3"
1738 target
="-DIAUDIO_M3"
1741 tool
="$rootdir/tools/scramble -add=iam3"
1742 boottool
="$rootdir/tools/scramble -iaudiom3"
1743 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1744 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
1745 output
="rockbox.iaudio"
1746 bootoutput
="cowon_m3.bin"
1747 appextra
="recorder:gui:radio"
1750 # toolset is the tools within the tools directory that we build for
1751 # this particular target.
1752 toolset
="$iaudiobitmaptools"
1753 # architecture, manufacturer and model for the target-tree build
1755 t_manufacturer
="iaudio"
1761 modelname
="gigabeatfx"
1762 target
="-DGIGABEAT_F"
1765 tool
="$rootdir/tools/scramble -add=giga"
1766 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1767 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1768 output
="rockbox.gigabeat"
1769 appextra
="recorder:gui:radio"
1772 toolset
=$gigabeatbitmaptools
1773 boottool
="$rootdir/tools/scramble -gigabeat"
1774 bootoutput
="FWIMG01.DAT"
1775 # architecture, manufacturer and model for the target-tree build
1777 t_manufacturer
="s3c2440"
1778 t_model
="gigabeat-fx"
1783 modelname
="gigabeats"
1784 target
="-DGIGABEAT_S"
1787 tool
="$rootdir/tools/scramble -add=gigs"
1788 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1789 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1790 output
="rockbox.gigabeat"
1791 appextra
="recorder:gui:radio"
1794 toolset
="$gigabeatbitmaptools"
1795 boottool
="$rootdir/tools/scramble -gigabeats"
1797 # architecture, manufacturer and model for the target-tree build
1799 t_manufacturer
="imx31"
1800 t_model
="gigabeat-s"
1805 modelname
="mrobe500"
1806 target
="-DMROBE_500"
1809 tool
="$rootdir/tools/scramble -add=m500"
1810 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1811 bmp2rb_native
="$rootdir/tools/bmp2rb -f 8"
1812 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1813 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1814 output
="rockbox.mrobe500"
1815 appextra
="recorder:gui:radio"
1818 toolset
=$gigabeatbitmaptools
1820 bootoutput
="rockbox.mrboot"
1821 # architecture, manufacturer and model for the target-tree build
1823 t_manufacturer
="tms320dm320"
1829 modelname
="mrobe100"
1830 target
="-DMROBE_100"
1833 tool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
1834 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1835 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1836 bmp2rb_remotemono
="$rootdir/tools/bmp2rb -f 0"
1837 bmp2rb_remotenative
="$rootdir/tools/bmp2rb -f 0"
1838 output
="rockbox.mi4"
1839 appextra
="recorder:gui:radio"
1842 boottool
="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
1843 bootoutput
="pp5020.mi4"
1844 # toolset is the tools within the tools directory that we build for
1845 # this particular target.
1846 toolset
=$scramblebitmaptools
1847 # architecture, manufacturer and model for the target-tree build
1849 t_manufacturer
="olympus"
1855 modelname
="logikdax"
1856 target
="-DLOGIK_DAX"
1859 tool
="$rootdir/tools/scramble -add=ldax"
1860 boottool
="$rootdir/tools/scramble -tcc=crc"
1861 bootoutput
="player.rom"
1862 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1863 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
1864 output
="rockbox.logik"
1865 appextra
="recorder:gui:radio"
1868 # toolset is the tools within the tools directory that we build for
1869 # this particular target.
1870 toolset
=$tccbitmaptools
1871 # architecture, manufacturer and model for the target-tree build
1873 t_manufacturer
="tcc77x"
1879 modelname
="zenvisionm30gb"
1880 target
="-DCREATIVE_ZVM"
1883 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1884 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1885 tool
="$rootdir/tools/scramble -creative=zvm"
1887 output
="rockbox.zvm"
1888 appextra
="recorder:gui:radio"
1891 toolset
=$ipodbitmaptools
1892 boottool
="$rootdir/tools/scramble -creative=zvm -no-ciff"
1893 bootoutput
="rockbox.zvmboot"
1894 # architecture, manufacturer and model for the target-tree build
1896 t_manufacturer
="tms320dm320"
1897 t_model
="creative-zvm"
1902 modelname
="zenvisionm60gb"
1903 target
="-DCREATIVE_ZVM60GB"
1906 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1907 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1908 tool
="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
1910 output
="rockbox.zvm60"
1911 appextra
="recorder:gui:radio"
1914 toolset
=$ipodbitmaptools
1915 boottool
="$rootdir/tools/scramble -creative=zvm60"
1916 bootoutput
="rockbox.zvm60boot"
1917 # architecture, manufacturer and model for the target-tree build
1919 t_manufacturer
="tms320dm320"
1920 t_model
="creative-zvm"
1925 modelname
="zenvision"
1926 target
="-DCREATIVE_ZV"
1929 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1930 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1931 tool
="$rootdir/tools/scramble -creative=zenvision -no-ciff"
1934 appextra
="recorder:gui:radio"
1937 toolset
=$ipodbitmaptools
1938 boottool
="$rootdir/tools/scramble -creative=zenvision"
1939 bootoutput
="rockbox.zvboot"
1940 # architecture, manufacturer and model for the target-tree build
1942 t_manufacturer
="tms320dm320"
1943 t_model
="creative-zvm"
1948 modelname
="sansae200"
1949 target
="-DSANSA_E200"
1950 memory
=32 # supposedly
1952 tool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
1953 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1954 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1955 output
="rockbox.mi4"
1956 appextra
="recorder:gui:radio"
1959 boottool
="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
1960 bootoutput
="PP5022.mi4"
1961 # toolset is the tools within the tools directory that we build for
1962 # this particular target.
1963 toolset
=$scramblebitmaptools
1964 # architecture, manufacturer and model for the target-tree build
1966 t_manufacturer
="sandisk"
1967 t_model
="sansa-e200"
1971 # the e200R model is pretty much identical to the e200, it only has a
1972 # different option to the scramble tool when building a bootloader and
1973 # makes the bootloader output file name in all lower case.
1975 modelname
="sansae200r"
1976 target
="-DSANSA_E200"
1977 memory
=32 # supposedly
1979 tool
="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
1980 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
1981 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
1982 output
="rockbox.mi4"
1983 appextra
="recorder:gui:radio"
1986 boottool
="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
1987 bootoutput
="pp5022.mi4"
1988 # toolset is the tools within the tools directory that we build for
1989 # this particular target.
1990 toolset
=$scramblebitmaptools
1991 # architecture, manufacturer and model for the target-tree build
1993 t_manufacturer
="sandisk"
1994 t_model
="sansa-e200"
1999 modelname
="sansac200"
2000 target
="-DSANSA_C200"
2001 memory
=32 # supposedly
2003 tool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
2004 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2005 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2006 output
="rockbox.mi4"
2007 appextra
="recorder:gui:radio"
2010 boottool
="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
2011 bootoutput
="firmware.mi4"
2012 # toolset is the tools within the tools directory that we build for
2013 # this particular target.
2014 toolset
=$scramblebitmaptools
2015 # architecture, manufacturer and model for the target-tree build
2017 t_manufacturer
="sandisk"
2018 t_model
="sansa-c200"
2023 modelname
="sansam200"
2024 target
="-DSANSA_M200"
2027 tool
="$rootdir/tools/scramble -add=m200"
2028 boottool
="$rootdir/tools/scramble -tcc=crc"
2029 bootoutput
="player.rom"
2030 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2031 bmp2rb_native
="$rootdir/tools/bmp2rb -f 0"
2032 output
="rockbox.m200"
2033 appextra
="recorder:gui:radio"
2036 # toolset is the tools within the tools directory that we build for
2037 # this particular target.
2038 toolset
=$tccbitmaptools
2039 # architecture, manufacturer and model for the target-tree build
2041 t_manufacturer
="tcc77x"
2047 modelname
="sansac100"
2048 target
="-DSANSA_C100"
2051 tool
="$rootdir/tools/scramble -add=c100"
2052 boottool
="$rootdir/tools/scramble -tcc=crc"
2053 bootoutput
="player.rom"
2054 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2055 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2056 output
="rockbox.c100"
2057 appextra
="recorder:gui:radio"
2060 # toolset is the tools within the tools directory that we build for
2061 # this particular target.
2062 toolset
=$tccbitmaptools
2063 # architecture, manufacturer and model for the target-tree build
2065 t_manufacturer
="tcc77x"
2071 modelname
="sansaclip"
2072 target
="-DSANSA_CLIP"
2074 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2075 bmp2rb_native
="$bmp2rb_mono"
2076 tool
="$rootdir/tools/scramble -add=clip"
2077 output
="rockbox.sansa"
2078 bootoutput
="bootloader-clip.sansa"
2079 appextra
="recorder:gui:radio"
2082 toolset
=$scramblebitmaptools
2084 t_manufacturer
="as3525"
2085 t_model
="sansa-clip"
2086 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2088 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2094 modelname
="sansae200v2"
2095 target
="-DSANSA_E200V2"
2097 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2098 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2099 tool
="$rootdir/tools/scramble -add=e2v2"
2100 output
="rockbox.sansa"
2101 bootoutput
="bootloader-e200v2.sansa"
2102 appextra
="recorder:gui:radio"
2105 toolset
=$scramblebitmaptools
2107 t_manufacturer
="as3525"
2108 t_model
="sansa-e200v2"
2115 modelname
="sansam200v4"
2116 target
="-DSANSA_M200V4"
2118 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2119 bmp2rb_native
="$bmp2rb_mono"
2120 tool
="$rootdir/tools/scramble -add=m2v4"
2121 output
="rockbox.sansa"
2122 bootoutput
="bootloader-m200v4.sansa"
2123 appextra
="recorder:gui:radio"
2126 toolset
=$scramblebitmaptools
2128 t_manufacturer
="as3525"
2129 t_model
="sansa-m200v4"
2130 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2132 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2138 modelname
="sansafuze"
2139 target
="-DSANSA_FUZE"
2141 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2142 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2143 tool
="$rootdir/tools/scramble -add=fuze"
2144 output
="rockbox.sansa"
2145 bootoutput
="bootloader-fuze.sansa"
2146 appextra
="recorder:gui:radio"
2149 toolset
=$scramblebitmaptools
2151 t_manufacturer
="as3525"
2152 t_model
="sansa-fuze"
2159 modelname
="sansac200v2"
2160 target
="-DSANSA_C200V2"
2161 memory
=2 # as per OF diagnosis mode
2162 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2163 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2164 tool
="$rootdir/tools/scramble -add=c2v2"
2165 output
="rockbox.sansa"
2166 bootoutput
="bootloader-c200v2.sansa"
2167 appextra
="recorder:gui:radio"
2170 # toolset is the tools within the tools directory that we build for
2171 # this particular target.
2172 toolset
=$scramblebitmaptools
2173 # architecture, manufacturer and model for the target-tree build
2175 t_manufacturer
="as3525"
2176 t_model
="sansa-c200v2"
2177 if [ "$ARG_ARM_THUMB" != 0 ]; then ARG_ARM_THUMB
=1; fi
2179 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
2184 modelname
="sansaclipv2"
2185 target
="-DSANSA_CLIPV2"
2187 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2188 bmp2rb_native
="$bmp2rb_mono"
2189 tool
="$rootdir/tools/scramble -add=clv2"
2190 output
="rockbox.sansa"
2191 bootoutput
="bootloader-clipv2.sansa"
2192 appextra
="recorder:gui:radio"
2195 toolset
=$scramblebitmaptools
2197 t_manufacturer
="as3525"
2198 t_model
="sansa-clipv2"
2203 echo "Sansa View is not yet supported!"
2206 modelname
="sansaview"
2207 target
="-DSANSA_VIEW"
2210 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2211 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2212 output
="rockbox.mi4"
2216 boottool
="$rootdir/tools/scramble -mi4v3 -model=view -type=RBBL"
2217 bootoutput
="firmware.mi4"
2218 # toolset is the tools within the tools directory that we build for
2219 # this particular target.
2220 toolset
=$scramblebitmaptools
2222 t_manufacturer
="sandisk"
2223 t_model
="sansa-view"
2228 modelname
="sansaclipplus"
2229 target
="-DSANSA_CLIPPLUS"
2231 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2232 bmp2rb_native
="$bmp2rb_mono"
2233 tool
="$rootdir/tools/scramble -add=cli+"
2234 output
="rockbox.sansa"
2235 bootoutput
="bootloader-clipplus.sansa"
2236 appextra
="recorder:gui:radio"
2239 toolset
=$scramblebitmaptools
2241 t_manufacturer
="as3525"
2242 t_model
="sansa-clipplus"
2248 modelname
="sansafuzev2"
2249 target
="-DSANSA_FUZEV2"
2251 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2252 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2253 tool
="$rootdir/tools/scramble -add=fuz2"
2254 output
="rockbox.sansa"
2255 bootoutput
="bootloader-fuzev2.sansa"
2256 appextra
="recorder:gui:radio"
2259 toolset
=$scramblebitmaptools
2261 t_manufacturer
="as3525"
2262 t_model
="sansa-fuzev2"
2268 modelname
="tatungtpj1022"
2269 target
="-DTATUNG_TPJ1022"
2272 tool
="$rootdir/tools/scramble -add tpj2"
2273 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2274 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2275 output
="rockbox.elio"
2276 appextra
="recorder:gui:radio"
2279 boottool
="$rootdir/tools/scramble -mi4v2"
2280 bootoutput
="pp5020.mi4"
2281 # toolset is the tools within the tools directory that we build for
2282 # this particular target.
2283 toolset
=$scramblebitmaptools
2284 # architecture, manufacturer and model for the target-tree build
2286 t_manufacturer
="tatung"
2292 modelname
="gogearsa9200"
2293 target
="-DPHILIPS_SA9200"
2294 memory
=32 # supposedly
2296 tool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
2297 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2298 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2299 output
="rockbox.mi4"
2300 appextra
="recorder:gui:radio"
2303 boottool
="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
2304 bootoutput
="FWImage.ebn"
2305 # toolset is the tools within the tools directory that we build for
2306 # this particular target.
2307 toolset
=$scramblebitmaptools
2308 # architecture, manufacturer and model for the target-tree build
2310 t_manufacturer
="philips"
2316 modelname
="gogearhdd1630"
2317 target
="-DPHILIPS_HDD1630"
2318 memory
=32 # supposedly
2320 tool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
2321 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2322 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2323 output
="rockbox.mi4"
2324 appextra
="recorder:gui:radio"
2327 boottool
="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
2328 bootoutput
="FWImage.ebn"
2329 # toolset is the tools within the tools directory that we build for
2330 # this particular target.
2331 toolset
=$scramblebitmaptools
2332 # architecture, manufacturer and model for the target-tree build
2334 t_manufacturer
="philips"
2340 modelname
="gogearhdd6330"
2341 target
="-DPHILIPS_HDD6330"
2344 tool
="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBOS"
2345 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2346 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2347 output
="rockbox.mi4"
2348 appextra
="recorder:gui:radio"
2351 boottool
="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBBL"
2352 bootoutput
="FWImage.ebn"
2353 # toolset is the tools within the tools directory that we build for
2354 # this particular target.
2355 toolset
=$scramblebitmaptools
2356 # architecture, manufacturer and model for the target-tree build
2358 t_manufacturer
="philips"
2364 modelname
="meizum6sl"
2365 target
="-DMEIZU_M6SL"
2369 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2370 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2371 output
="rockbox.meizu"
2372 appextra
="recorder:gui:radio"
2375 toolset
=$genericbitmaptools
2377 bootoutput
="rockboot.ebn"
2378 # architecture, manufacturer and model for the target-tree build
2380 t_manufacturer
="s5l8700"
2381 t_model
="meizu-m6sl"
2386 modelname
="meizum6sp"
2387 target
="-DMEIZU_M6SP"
2391 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2392 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2393 output
="rockbox.meizu"
2394 appextra
="recorder:gui:radio"
2397 toolset
=$genericbitmaptools
2399 bootoutput
="rockboot.ebn"
2400 # architecture, manufacturer and model for the target-tree build
2402 t_manufacturer
="s5l8700"
2403 t_model
="meizu-m6sp"
2413 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2414 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2415 output
="rockbox.meizu"
2416 appextra
="recorder:gui:radio"
2419 toolset
=$genericbitmaptools
2421 bootoutput
="rockboot.ebn"
2422 # architecture, manufacturer and model for the target-tree build
2424 t_manufacturer
="s5l8700"
2430 modelname
="ondavx747"
2431 target
="-DONDA_VX747"
2434 tool
="$rootdir/tools/scramble -add=x747"
2435 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2436 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2437 output
="rockbox.vx747"
2438 appextra
="recorder:gui:radio"
2441 toolset
=$genericbitmaptools
2442 boottool
="$rootdir/tools/scramble -ccpmp"
2443 bootoutput
="ccpmp.bin"
2444 # architecture, manufacturer and model for the target-tree build
2446 t_manufacturer
="ingenic_jz47xx"
2447 t_model
="onda_vx747"
2452 modelname
="ondavx767"
2453 target
="-DONDA_VX767"
2457 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2458 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2459 output
="rockbox.vx767"
2460 appextra
="recorder:gui:radio"
2463 toolset
=$genericbitmaptools
2464 boottool
="$rootdir/tools/scramble -ccpmp"
2465 bootoutput
="ccpmp.bin"
2466 # architecture, manufacturer and model for the target-tree build
2468 t_manufacturer
="ingenic_jz47xx"
2469 t_model
="onda_vx767"
2474 modelname
="ondavx747p"
2475 target
="-DONDA_VX747P"
2478 tool
="$rootdir/tools/scramble -add=747p"
2479 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2480 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2481 output
="rockbox.vx747p"
2482 appextra
="recorder:gui:radio"
2485 toolset
=$genericbitmaptools
2486 boottool
="$rootdir/tools/scramble -ccpmp"
2487 bootoutput
="ccpmp.bin"
2488 # architecture, manufacturer and model for the target-tree build
2490 t_manufacturer
="ingenic_jz47xx"
2491 t_model
="onda_vx747"
2496 modelname
="ondavx777"
2497 target
="-DONDA_VX777"
2500 tool
="$rootdir/tools/scramble -add=x777"
2501 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2502 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2503 output
="rockbox.vx777"
2504 appextra
="recorder:gui:radio"
2507 toolset
=$genericbitmaptools
2508 boottool
="$rootdir/tools/scramble -ccpmp"
2509 bootoutput
="ccpmp.bin"
2510 # architecture, manufacturer and model for the target-tree build
2512 t_manufacturer
="ingenic_jz47xx"
2513 t_model
="onda_vx747"
2518 modelname
="lyreproto1"
2519 target
="-DLYRE_PROTO1"
2523 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2524 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2525 output
="rockbox.lyre"
2526 appextra
="recorder:gui:radio"
2529 toolset
=$scramblebitmaptools
2531 bootoutput
="bootloader-proto1.lyre"
2532 # architecture, manufacturer and model for the target-tree build
2534 t_manufacturer
="at91sam"
2535 t_model
="lyre_proto1"
2540 modelname
="mini2440"
2544 tool
="$rootdir/tools/scramble -add=m244"
2545 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2546 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2547 output
="rockbox.mini2440"
2548 appextra
="recorder:gui:radio"
2551 toolset
=$scramblebitmaptools
2553 bootoutput
="bootloader-mini2440.lyre"
2554 # architecture, manufacturer and model for the target-tree build
2556 t_manufacturer
="s3c2440"
2562 modelname
="samsungyh820"
2563 target
="-DSAMSUNG_YH820"
2566 tool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
2567 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2568 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2569 output
="rockbox.mi4"
2570 appextra
="recorder:gui:radio"
2573 boottool
="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
2574 bootoutput
="FW_YH820.mi4"
2575 # toolset is the tools within the tools directory that we build for
2576 # this particular target.
2577 toolset
=$scramblebitmaptools
2578 # architecture, manufacturer and model for the target-tree build
2580 t_manufacturer
="samsung"
2586 modelname
="samsungyh920"
2587 target
="-DSAMSUNG_YH920"
2590 tool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
2591 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2592 bmp2rb_native
="$rootdir/tools/bmp2rb -f 2"
2593 output
="rockbox.mi4"
2594 appextra
="recorder:gui:radio"
2597 boottool
="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
2598 bootoutput
="PP5020.mi4"
2599 # toolset is the tools within the tools directory that we build for
2600 # this particular target.
2601 toolset
=$scramblebitmaptools
2602 # architecture, manufacturer and model for the target-tree build
2604 t_manufacturer
="samsung"
2610 modelname
="samsungyh925"
2611 target
="-DSAMSUNG_YH925"
2614 tool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
2615 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2616 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2617 output
="rockbox.mi4"
2618 appextra
="recorder:gui:radio"
2621 boottool
="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
2622 bootoutput
="FW_YH925.mi4"
2623 # toolset is the tools within the tools directory that we build for
2624 # this particular target.
2625 toolset
=$scramblebitmaptools
2626 # architecture, manufacturer and model for the target-tree build
2628 t_manufacturer
="samsung"
2634 modelname
="samsungyps3"
2635 target
="-DSAMSUNG_YPS3"
2639 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2640 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2641 output
="rockbox.yps3"
2642 appextra
="recorder:gui:radio"
2645 toolset
=$genericbitmaptools
2647 bootoutput
="rockboot.ebn"
2648 # architecture, manufacturer and model for the target-tree build
2650 t_manufacturer
="s5l8700"
2657 target
="-DPBELL_VIBE500"
2660 tool
="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBOS"
2661 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2662 bmp2rb_native
="$rootdir/tools/bmp2rb -f 5"
2663 output
="rockbox.mi4"
2664 appextra
="recorder:gui:radio"
2667 boottool
="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBBL"
2668 bootoutput
="jukebox.mi4"
2669 # toolset is the tools within the tools directory that we build for
2670 # this particular target.
2671 toolset
=$scramblebitmaptools
2672 # architecture, manufacturer and model for the target-tree build
2674 t_manufacturer
="pbell"
2680 modelname
="mpiohd200"
2681 target
="-DMPIO_HD200"
2684 tool
="$rootdir/tools/scramble -add=hd20"
2685 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2686 bmp2rb_native
="$rootdir/tools/bmp2rb -f 7"
2687 output
="rockbox.mpio"
2688 bootoutput
="bootloader.mpio"
2689 appextra
="recorder:gui:radio"
2692 # toolset is the tools within the tools directory that we build for
2693 # this particular target.
2694 toolset
="$genericbitmaptools"
2695 # architecture, manufacturer and model for the target-tree build
2697 t_manufacturer
="mpio"
2703 modelname
="application"
2704 target
="-DAPPLICATION"
2706 need_full_path
="yes"
2712 appcc
"$app_platform"
2715 bmp2rb_mono
="$rootdir/tools/bmp2rb -f 0"
2716 bmp2rb_native
="$rootdir/tools/bmp2rb -f 4"
2717 appextra
="recorder:gui:radio"
2720 # architecture, manufacturer and model for the target-tree build
2722 t_manufacturer
="$app_platform"
2727 echo "Please select a supported target platform!"
2733 echo "Platform set to $modelname"
2737 ############################################################################
2738 # Amount of memory, for those that can differ. They have $memory unset at
2742 if [ -z "$memory" ]; then
2745 if [ "$ARG_RAM" ]; then
2748 echo "Enter size of your RAM (in MB): (Defaults to 32)"
2761 if [ "$ARG_RAM" ]; then
2764 echo "Enter size of your RAM (in MB): (Defaults to 2)"
2777 echo "Memory size selected: $memory MB"
2778 [ "$ARG_TYPE" ] ||
echo ""
2782 ##################################################################
2783 # Figure out build "type"
2786 # the ifp7x0 is the only platform that supports building a gdb stub like
2790 gdbstub
="(G)DB stub, "
2792 sansae200r|sansae200
)
2793 gdbstub
="(I)nstaller, "
2796 gdbstub
="(E)raser, "
2801 if [ "$ARG_TYPE" ]; then
2804 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, $gdbstub(M)anual: (Defaults to N)"
2810 appsdir
='\$(ROOTDIR)/bootloader'
2812 extradefines
="$extradefines -DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
2814 echo "e200R-installer build selected"
2817 appsdir
='\$(ROOTDIR)/bootloader'
2819 echo "C2(4)0 or C2(5)0"
2823 extradefines
="$extradefines -DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
2824 echo "c240 eraser build selected"
2827 extradefines
="$extradefines -DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
2828 echo "c240 eraser build selected"
2832 echo "c200 eraser build selected"
2835 if test $t_manufacturer = "archos"; then
2836 # Archos SH-based players do this somewhat differently for
2838 appsdir
='\$(ROOTDIR)/flash/bootbox'
2841 appsdir
='\$(ROOTDIR)/bootloader'
2844 if test -n "$boottool"; then
2847 if test -n "$bootoutput"; then
2851 extradefines
="$extradefines -DBOOTLOADER -ffunction-sections -fdata-sections"
2853 echo "Bootloader build selected"
2856 if [ "$modelname" = "sansae200r" ]; then
2857 echo "Do not use the e200R target for simulator builds. Use e200 instead."
2862 extradefines
="$extradefines -DSIMULATOR"
2865 echo "Simulator build selected"
2868 echo "Advanced build selected"
2869 whichadvanced
$btype
2872 extradefines
="$extradefines -DSTUB" # for target makefile symbol EXTRA_DEFINES
2873 appsdir
='\$(ROOTDIR)/gdb'
2882 echo "GDB stub build selected"
2887 echo "Manual build selected"
2895 extradefines
="$extradefines -DDEBUG"
2896 appsdir
='\$(ROOTDIR)/tools/checkwps';
2897 output
='checkwps.'${modelname};
2899 echo "CheckWPS build selected"
2907 appsdir
='\$(ROOTDIR)/tools/database';
2912 output
="database_${modelname}.exe"
2915 output
='database.'${modelname};
2919 echo "Database tool build selected"
2922 if [ "$modelname" = "sansae200r" ]; then
2923 echo "Do not use the e200R target for regular builds. Use e200 instead."
2927 btype
="N" # set it explicitly since RET only gets here as well
2928 echo "Normal build selected"
2932 # to be able running "make manual" from non-manual configuration
2935 manualdev
="archosfmrecorder"
2938 manualdev
="iriverh100"
2941 manualdev
="ipodmini1g"
2944 manualdev
=$modelname
2948 if [ -z "$debug" ]; then
2949 GCCOPTS
="$GCCOPTS $GCCOPTIMIZE"
2952 echo "Using source code root directory: $rootdir"
2954 # this was once possible to change at build-time, but no more:
2959 if [ "yes" = "$simulator" ]; then
2960 # setup compiler and things for simulator
2963 if [ -d "simdisk" ]; then
2964 echo "Subdirectory 'simdisk' already present"
2967 echo "Created a 'simdisk' subdirectory for simulating the hard disk"
2971 # Now, figure out version number of the (gcc) compiler we are about to use
2972 gccver
=`$CC -dumpversion`;
2974 # figure out the binutil version too and display it, mostly for the build
2975 # system etc to be able to see it easier
2976 if [ $uname = "Darwin" ]; then
2977 ldver
=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
2979 ldver
=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
2982 if [ -z "$gccver" ]; then
2983 echo "[WARNING] The compiler you must use ($CC) is not in your path!"
2984 echo "[WARNING] this may cause your build to fail since we cannot do the"
2985 echo "[WARNING] checks we want now."
2988 # gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
2991 num1
=`echo $gccver | cut -d . -f1`
2992 num2
=`echo $gccver | cut -d . -f2`
2993 gccnum
=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
3000 echo "Using $CC $gccver ($gccnum)"
3002 if test "$gccnum" -ge "400"; then
3003 # gcc 4.0 is just *so* much pickier on arguments that differ in signedness
3004 # so we ignore that warnings for now
3006 GCCOPTS
="$GCCOPTS -Wno-pointer-sign"
3009 if test "$gccnum" -ge "402"; then
3010 # disable warning about "warning: initialized field overwritten" as gcc 4.2
3011 # and later would throw it for several valid cases
3012 GCCOPTS
="$GCCOPTS -Wno-override-init"
3016 ""|
"$CROSS_COMPILE")
3020 # cross-compile for win32
3023 # Verify that the cross-compiler is of a recommended version!
3024 if test "$gccver" != "$gccchoice"; then
3025 echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
3026 echo "WARNING: version $gccchoice!"
3027 echo "WARNING: This may cause your build to fail since it may be a version"
3028 echo "WARNING: that isn't functional or known to not be the best choice."
3029 echo "WARNING: If you suffer from build problems, you know that this is"
3030 echo "WARNING: a likely source for them..."
3038 echo "Using $LD $ldver"
3040 # check the compiler for SH platforms
3041 if test "$CC" = "sh-elf-gcc"; then
3042 if test "$gccnum" -lt "400"; then
3043 echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
3044 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
3046 # figure out patch status
3047 gccpatch
=`$CC --version`;
3049 if { echo $gccpatch |
grep "rockbox" >/dev
/null
2>&1; } then
3050 echo "gcc $gccver is rockbox patched"
3051 # then convert -O to -Os to get smaller binaries!
3052 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
3054 echo "WARNING: You use an unpatched gcc compiler: $gccver"
3055 echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
3060 if test "$CC" = "m68k-elf-gcc"; then
3061 # convert -O to -Os to get smaller binaries!
3062 GCCOPTS
=`echo $GCCOPTS | sed 's/ -O / -Os /'`
3065 if [ "$ARG_CCACHE" = "1" ]; then
3066 echo "Enable ccache for building"
3068 elif [ "$ARG_CCACHE" != "0" ]; then
3069 ccache
=`findtool ccache`
3070 if test -n "$ccache"; then
3071 echo "Found and uses ccache ($ccache)"
3075 # figure out the full path to the various commands if possible
3076 HOSTCC
=`findtool gcc --lit`
3077 HOSTAR
=`findtool ar --lit`
3078 CC
=`findtool ${CC} --lit`
3079 LD
=`findtool ${AR} --lit`
3080 AR
=`findtool ${AR} --lit`
3081 AS
=`findtool ${AS} --lit`
3082 OC
=`findtool ${OC} --lit`
3083 WINDRES
=`findtool ${WINDRES} --lit`
3084 DLLTOOL
=`findtool ${DLLTOOL} --lit`
3085 DLLWRAP
=`findtool ${DLLWRAP} --lit`
3086 RANLIB
=`findtool ${RANLIB} --lit`
3088 if test -n "$ccache"; then
3092 if test "$ARG_ARM_THUMB" = "1"; then
3093 extradefines
="$extradefines -DUSE_THUMB"
3094 CC
="$toolsdir/thumb-cc.py $CC"
3097 if test "X$endian" = "Xbig"; then
3098 defendian
="ROCKBOX_BIG_ENDIAN"
3100 defendian
="ROCKBOX_LITTLE_ENDIAN"
3103 if [ "$ARG_RBDIR" ]; then
3104 if [ "$need_full_path" = "yes" ]; then
3105 rbdir
=`realpath $ARG_RBDIR`
3106 else # prepend '/' if needed
3107 if [ -z `echo $ARG_RBDIR | grep '^/'` ]; then
3113 echo "Using alternate rockbox dir: ${rbdir}"
3117 -e "s<@ENDIAN@<${defendian}<g" \
3118 -e "s<^#undef ROCKBOX_HAS_LOGF<$use_logf<g" \
3119 -e "s<^#undef DO_BOOTCHART<$use_bootchart<g" \
3120 -e "s<@config_rtc@<$config_rtc<g" \
3121 -e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \
3122 -e "s<@RBDIR@<${rbdir}<g" \
3123 -e "s<@binpath@<${bindir_full}<g" \
3124 -e "s<@libpath@<${libdir_full}<g" \
3125 -e "s<@have_backlight@<$have_backlight<g" \
3126 -e "s<@have_fmradio_in@<$have_fmradio_in<g" \
3127 -e "s<@have_ata_poweroff@<$have_ata_poweroff<g" \
3128 -e "s<@lcd_width@<$app_lcd_width<g" \
3129 -e "s<@lcd_height@<$app_lcd_height<g" \
3131 /* This header was made by configure */
3132 #ifndef __BUILD_AUTOCONF_H
3133 #define __BUILD_AUTOCONF_H
3135 /* Define endianess for the target or simulator platform */
3138 /* Define this if you build rockbox to support the logf logging and display */
3139 #undef ROCKBOX_HAS_LOGF
3141 /* Define this to record a chart with timings for the stages of boot */
3144 /* optional define for a backlight modded Ondio */
3147 /* optional define for FM radio mod for iAudio M5 */
3150 /* optional define for ATA poweroff on Player */
3153 /* optional defines for RTC mod for h1x0 */
3157 /* lcd dimensions for application builds from configure */
3161 /* root of Rockbox */
3162 #define ROCKBOX_DIR "@RBDIR@"
3163 #define ROCKBOX_BINARY_PATH "@binpath@"
3164 #define ROCKBOX_LIBRARY_PATH "@libpath@"
3166 #endif /* __BUILD_AUTOCONF_H */
3169 if test -n "$t_cpu"; then
3170 TARGET_INC
="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
3171 if [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree
3172 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl/"
3173 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/hosted/"
3175 if [ -n "$app_platform" -a "$app_platform" = "android" ]; then
3176 # android's gcc doesn't add this :/
3177 TARGET_INC
="$TARGET_INC -I$ANDROID_NDK_PATH/build/platforms/android-4/arch-arm/usr/include"
3179 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
3180 TARGET_INC
="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
3184 if test "$simulator" = "yes"; then
3185 # add simul make stuff on the #SIMUL# line
3186 simmagic1
="s<@SIMUL1@<\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim<"
3187 simmagic2
="s<@SIMUL2@<\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim<"
3189 # delete the lines that match
3190 simmagic1
='/@SIMUL1@/D'
3191 simmagic2
='/@SIMUL2@/D'
3194 if test "$swcodec" = "yes"; then
3195 voicetoolset
="rbspeexenc voicefont wavtrim"
3197 voicetoolset
="voicefont wavtrim"
3200 if test "$apps" = "apps"; then
3201 # only when we build "real" apps we build the .lng files
3205 #### Fix the cmdline ###
3206 if [ "$ARG_CCACHE" = "1" ]; then
3208 elif [ "$ARG_CCACHE" = "0" ]; then
3209 cmdline
="--no-ccache "
3211 if [ "$ARG_ARM_EABI" = "1" ]; then
3212 cmdline
="$cmdline--eabi "
3215 cmdline
="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts --prefix=\$(PREFIX)"
3219 -e "s<@ROOTDIR@<${rootdir}<g" \
3220 -e "s<@DEBUG@<${debug}<g" \
3221 -e "s<@MEMORY@<${memory}<g" \
3222 -e "s<@TARGET_ID@<${target_id}<g" \
3223 -e "s<@TARGET@<${target}<g" \
3224 -e "s<@CPU@<${t_cpu}<g" \
3225 -e "s<@MANUFACTURER@<${t_manufacturer}<g" \
3226 -e "s<@MODELNAME@<${modelname}<g" \
3227 -e "s<@LANGUAGE@<${language}<g" \
3228 -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
3229 -e "s<@PWD@<${pwd}<g" \
3230 -e "s<@HOSTCC@<${HOSTCC}<g" \
3231 -e "s<@HOSTAR@<${HOSTAR}<g" \
3232 -e "s<@CC@<${CC}<g" \
3233 -e "s<@LD@<${LD}<g" \
3234 -e "s<@AR@<${AR}<g" \
3235 -e "s<@AS@<${AS}<g" \
3236 -e "s<@OC@<${OC}<g" \
3237 -e "s<@WINDRES@<${WINDRES}<g" \
3238 -e "s<@DLLTOOL@<${DLLTOOL}<g" \
3239 -e "s<@DLLWRAP@<${DLLWRAP}<g" \
3240 -e "s<@RANLIB@<${RANLIB}<g" \
3241 -e "s<@TOOL@<${tool}<g" \
3242 -e "s<@BMP2RB_NATIVE@<${bmp2rb_native}<g" \
3243 -e "s<@BMP2RB_MONO@<${bmp2rb_mono}<g" \
3244 -e "s<@BMP2RB_REMOTENATIVE@<${bmp2rb_remotenative}<g" \
3245 -e "s<@BMP2RB_REMOTEMONO@<${bmp2rb_remotemono}<g" \
3246 -e "s<@OUTPUT@<${output}<g" \
3247 -e "s<@APPEXTRA@<${appextra}<g" \
3248 -e "s<@ARCHOSROM@<${archosrom}<g" \
3249 -e "s<@FLASHFILE@<${flash}<g" \
3250 -e "s<@PLUGINS@<${plugins}<g" \
3251 -e "s<@CODECS@<${swcodec}<g" \
3252 -e "s<@PROFILE_OPTS@<${PROFILE_OPTS}<g" \
3253 -e "s<@SHARED_FLAG@<${SHARED_FLAG}<g" \
3254 -e "s<@GCCOPTS@<${GCCOPTS}<g" \
3255 -e "s<@TARGET_INC@<${TARGET_INC}<g" \
3256 -e "s<@LDOPTS@<${LDOPTS}<g" \
3257 -e "s<@GLOBAL_LDOPTS@<${GLOBAL_LDOPTS}<g" \
3258 -e "s<@LOADADDRESS@<${loadaddress}<g" \
3259 -e "s<@EXTRADEF@<${extradefines}<g" \
3260 -e "s<@APPSDIR@<${appsdir}<g" \
3261 -e "s<@FIRMDIR@<${firmdir}<g" \
3262 -e "s<@TOOLSDIR@<${toolsdir}<g" \
3263 -e "s<@APPS@<${apps}<g" \
3264 -e "s<@APP_TYPE@<${app_type}<g" \
3265 -e "s<@GCCVER@<${gccver}<g" \
3266 -e "s<@GCCNUM@<${gccnum}<g" \
3267 -e "s<@UNAME@<${uname}<g" \
3268 -e "s<@ENDIAN@<${defendian}<g" \
3269 -e "s<@TOOLSET@<${toolset}<g" \
3272 -e "s<@MANUALDEV@<${manualdev}<g" \
3273 -e "s<@ENCODER@<${ENC_CMD}<g" \
3274 -e "s<@ENC_OPTS@<${ENC_OPTS}<g" \
3275 -e "s<@TTS_ENGINE@<${TTS_ENGINE}<g" \
3276 -e "s<@TTS_OPTS@<${TTS_OPTS}<g" \
3277 -e "s<@VOICETOOLSET@<${voicetoolset}<g" \
3278 -e "s<@LANGS@<${buildlangs}<g" \
3279 -e "s<@USE_ELF@<${USE_ELF}<g" \
3280 -e "s<@RBDIR@<${rbdir}<g" \
3281 -e "s<@binpath@<${bindir}<g" \
3282 -e "s<@libpath@<${libdir}<g" \
3283 -e "s<@PREFIX@<$PREFIX<g" \
3284 -e "s<@CMDLINE@<$cmdline<g" \
3285 -e "s<@SDLCONFIG@<$sdl<g" \
3287 ## Automatically generated. http://www.rockbox.org/
3289 export ROOTDIR=@ROOTDIR@
3290 export FIRMDIR=@FIRMDIR@
3291 export APPSDIR=@APPSDIR@
3292 export TOOLSDIR=@TOOLSDIR@
3293 export DOCSDIR=\$(ROOTDIR)/docs
3294 export MANUALDIR=\${ROOTDIR}/manual
3295 export DEBUG=@DEBUG@
3296 export MODELNAME=@MODELNAME@
3297 export ARCHOSROM=@ARCHOSROM@
3298 export FLASHFILE=@FLASHFILE@
3299 export TARGET_ID=@TARGET_ID@
3300 export TARGET=@TARGET@
3302 export MANUFACTURER=@MANUFACTURER@
3304 export BUILDDIR=@PWD@
3305 export LANGUAGE=@LANGUAGE@
3306 export VOICELANGUAGE=@VOICELANGUAGE@
3307 export MEMORYSIZE=@MEMORY@
3308 export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
3309 export MKFIRMWARE=@TOOL@
3310 export BMP2RB_MONO=@BMP2RB_MONO@
3311 export BMP2RB_NATIVE=@BMP2RB_NATIVE@
3312 export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
3313 export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
3314 export BINARY=@OUTPUT@
3315 export APPEXTRA=@APPEXTRA@
3316 export ENABLEDPLUGINS=@PLUGINS@
3317 export SOFTWARECODECS=@CODECS@
3318 export EXTRA_DEFINES=@EXTRADEF@
3319 export HOSTCC=@HOSTCC@
3320 export HOSTAR=@HOSTAR@
3326 export WINDRES=@WINDRES@
3327 export DLLTOOL=@DLLTOOL@
3328 export DLLWRAP=@DLLWRAP@
3329 export RANLIB=@RANLIB@
3330 export PREFIX=@PREFIX@
3331 export PROFILE_OPTS=@PROFILE_OPTS@
3332 export APP_TYPE=@APP_TYPE@
3333 export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
3334 export GCCOPTS=@GCCOPTS@
3335 export TARGET_INC=@TARGET_INC@
3336 export LOADADDRESS=@LOADADDRESS@
3337 export SHARED_FLAG=@SHARED_FLAG@
3338 export LDOPTS=@LDOPTS@
3339 export GLOBAL_LDOPTS=@GLOBAL_LDOPTS@
3340 export GCCVER=@GCCVER@
3341 export GCCNUM=@GCCNUM@
3342 export UNAME=@UNAME@
3343 export MANUALDEV=@MANUALDEV@
3344 export TTS_OPTS=@TTS_OPTS@
3345 export TTS_ENGINE=@TTS_ENGINE@
3346 export ENC_OPTS=@ENC_OPTS@
3347 export ENCODER=@ENCODER@
3348 export USE_ELF=@USE_ELF@
3349 export RBDIR=@RBDIR@
3350 export ROCKBOX_BINARY_PATH=@binpath@
3351 export ROCKBOX_LIBRARY_PATH=@libpath@
3352 export SDLCONFIG=@SDLCONFIG@
3354 CONFIGURE_OPTIONS=@CMDLINE@
3356 include \$(TOOLSDIR)/root.make
3360 echo "Created Makefile"