2006-11-06 11:48:00 +00:00
|
|
|
#!/bin/sh
|
2002-05-23 09:11:35 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2004-10-04 13:02:41 +00:00
|
|
|
# global CC options for all platforms
|
2009-07-29 14:31:17 +00:00
|
|
|
CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe"
|
2002-09-02 11:50:52 +00:00
|
|
|
|
2005-05-30 13:00:43 +00:00
|
|
|
use_logf="#undef ROCKBOX_HAS_LOGF"
|
|
|
|
|
2005-07-08 10:19:02 +00:00
|
|
|
scriptver=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
|
|
|
|
|
2008-11-24 22:16:07 +00:00
|
|
|
rbdir=".rockbox"
|
2009-07-13 21:50:25 +00:00
|
|
|
|
2002-10-17 09:08:05 +00:00
|
|
|
#
|
|
|
|
# Begin Function Definitions
|
|
|
|
#
|
2002-05-23 09:11:35 +00:00
|
|
|
input() {
|
|
|
|
read response
|
|
|
|
echo $response
|
|
|
|
}
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
prefixtools () {
|
|
|
|
prefix="$1"
|
|
|
|
CC=${prefix}gcc
|
|
|
|
WINDRES=${prefix}windres
|
|
|
|
DLLTOOL=${prefix}dlltool
|
|
|
|
DLLWRAP=${prefix}dllwrap
|
|
|
|
RANLIB=${prefix}ranlib
|
|
|
|
LD=${prefix}ld
|
|
|
|
AR=${prefix}ar
|
|
|
|
AS=${prefix}as
|
|
|
|
OC=${prefix}objcopy
|
|
|
|
}
|
|
|
|
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc() {
|
|
|
|
if [ "$ARG_ARM_EABI" = "1" ]; then
|
|
|
|
prefixtools arm-elf-eabi-
|
|
|
|
gccchoice="4.4.2"
|
|
|
|
else
|
|
|
|
prefixtools arm-elf-
|
|
|
|
gccchoice="4.0.3"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2006-01-09 12:41:07 +00:00
|
|
|
# scan the $PATH for the given command
|
|
|
|
findtool(){
|
|
|
|
file="$1"
|
|
|
|
|
|
|
|
IFS=":"
|
|
|
|
for path in $PATH
|
|
|
|
do
|
|
|
|
# echo "checks for $file in $path" >&2
|
|
|
|
if test -f "$path/$file"; then
|
|
|
|
echo "$path/$file"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
done
|
2008-10-06 23:04:31 +00:00
|
|
|
# check whether caller wants literal return value if not found
|
|
|
|
if [ "$2" = "--lit" ]; then
|
|
|
|
echo "$file"
|
|
|
|
fi
|
2006-01-09 12:41:07 +00:00
|
|
|
}
|
|
|
|
|
2009-10-12 18:49:29 +00:00
|
|
|
# scan the $PATH for sdl-config - if crosscompiling, require that it is
|
|
|
|
# a mingw32 sdl-config
|
|
|
|
findsdl(){
|
|
|
|
file="sdl-config"
|
|
|
|
|
|
|
|
IFS=":"
|
|
|
|
for path in $PATH
|
|
|
|
do
|
|
|
|
#echo "checks for $file in $path" >&2
|
|
|
|
if test -f "$path/$file"; then
|
|
|
|
if [ "yes" = "${crosscompile}" ]; then
|
|
|
|
if [ "0" != `$path/$file --libs |grep -c mwindows` ]; then
|
|
|
|
echo "$path/$file"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "$path/$file"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
simcc () {
|
|
|
|
|
|
|
|
# default tool setup for native building
|
|
|
|
prefixtools ""
|
|
|
|
|
2007-04-20 11:58:39 +00:00
|
|
|
simver=sdl
|
2008-09-01 13:03:27 +00:00
|
|
|
GCCOPTS='-W -Wall -g -fno-builtin'
|
2009-10-07 14:31:16 +00:00
|
|
|
GCCOPTIMIZE=''
|
2005-02-18 13:47:17 +00:00
|
|
|
|
|
|
|
output="rockboxui" # use this as default output binary name
|
2009-10-12 18:49:29 +00:00
|
|
|
sdl=`findsdl`
|
2009-09-23 09:00:44 +00:00
|
|
|
sdl_cflags=""
|
|
|
|
sdl_libs=""
|
|
|
|
|
|
|
|
if [ $1 = "sdl" ]; then
|
|
|
|
if [ -z "$sdl" ]; then
|
|
|
|
echo "configure didn't find sdl-config, which indicates that you"
|
|
|
|
echo "don't have SDL (properly) installed. Please correct and"
|
|
|
|
echo "re-run configure!"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
# generic sdl-config checker
|
2009-10-12 18:49:29 +00:00
|
|
|
sdl_cflags=`$sdl --cflags`
|
|
|
|
sdl_libs=`$sdl --libs`
|
2009-09-23 09:00:44 +00:00
|
|
|
fi
|
2006-01-09 12:41:07 +00:00
|
|
|
fi
|
|
|
|
|
2007-04-20 11:27:03 +00:00
|
|
|
# default share option, override below if needed
|
|
|
|
SHARED_FLAG="-shared"
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
case $uname in
|
|
|
|
CYGWIN*)
|
|
|
|
echo "Cygwin host detected"
|
2005-02-22 12:19:12 +00:00
|
|
|
|
2007-04-20 11:27:03 +00:00
|
|
|
# sdl version
|
2009-09-23 09:00:44 +00:00
|
|
|
GCCOPTS="$GCCOPTS $sdl_cflags"
|
|
|
|
LDOPTS="-mconsole $sdl_libs"
|
2007-04-20 11:27:03 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
output="rockboxui.exe" # use this as output binary name
|
|
|
|
;;
|
|
|
|
|
2009-02-04 20:59:27 +00:00
|
|
|
MINGW*)
|
|
|
|
echo "MinGW host detected"
|
|
|
|
|
|
|
|
# sdl version
|
2009-09-23 09:00:44 +00:00
|
|
|
GCCOPTS="$GCCOPTS $sdl_cflags"
|
|
|
|
LDOPTS="-mconsole $sdl_libs"
|
2009-02-04 20:59:27 +00:00
|
|
|
|
|
|
|
output="rockboxui.exe" # use this as output binary name
|
|
|
|
;;
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
Linux)
|
|
|
|
echo "Linux host detected"
|
2009-09-23 09:00:44 +00:00
|
|
|
GCCOPTS="$GCCOPTS $sdl_cflags"
|
|
|
|
LDOPTS="$sdl_libs"
|
2005-02-18 13:47:17 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
FreeBSD)
|
|
|
|
echo "FreeBSD host detected"
|
2007-05-31 10:23:16 +00:00
|
|
|
# sdl version
|
2009-09-23 09:00:44 +00:00
|
|
|
GCCOPTS="$GCCOPTS $sdl_cflags"
|
|
|
|
LDOPTS="$sdl_libs"
|
2005-02-18 13:47:17 +00:00
|
|
|
;;
|
|
|
|
|
2006-09-29 16:15:11 +00:00
|
|
|
Darwin)
|
|
|
|
echo "Darwin host detected"
|
|
|
|
# sdl version
|
2009-09-23 09:00:44 +00:00
|
|
|
GCCOPTS="$GCCOPTS $sdl_cflags"
|
|
|
|
LDOPTS="$sdl_libs"
|
2006-09-29 20:04:36 +00:00
|
|
|
SHARED_FLAG="-dynamiclib -Wl\,-single_module"
|
2006-09-29 16:15:11 +00:00
|
|
|
;;
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
*)
|
2009-08-09 19:02:22 +00:00
|
|
|
echo "[ERROR] Unsupported system: $uname, fix configure and retry"
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 2
|
2005-02-18 13:47:17 +00:00
|
|
|
;;
|
|
|
|
esac
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2007-04-20 11:58:39 +00:00
|
|
|
GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
|
|
|
|
|
2005-04-26 22:41:48 +00:00
|
|
|
if test "X$crosscompile" != "Xyes"; then
|
2010-02-15 01:27:04 +00:00
|
|
|
case `uname -m` in
|
|
|
|
x86_64|amd64)
|
|
|
|
# fPIC is needed to make shared objects link
|
|
|
|
# setting visibility to hidden is necessary to avoid strange crashes
|
|
|
|
# due to symbol clashing
|
|
|
|
GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
|
|
|
|
# x86_64 supports MMX by default
|
|
|
|
;;
|
|
|
|
|
|
|
|
i686)
|
|
|
|
echo "Enabling MMX support"
|
|
|
|
GCCOPTS="$GCCOPTS -mmmx"
|
|
|
|
;;
|
|
|
|
esac
|
2008-06-11 18:45:16 +00:00
|
|
|
|
2005-04-26 22:41:48 +00:00
|
|
|
id=$$
|
2009-07-13 21:50:25 +00:00
|
|
|
cat >$tmpdir/conftest-$id.c <<EOF
|
2005-04-26 22:41:48 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int var=0;
|
|
|
|
char *varp = (char *)&var;
|
|
|
|
*varp=1;
|
|
|
|
|
|
|
|
printf("%d\n", var);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
2009-07-13 21:50:25 +00:00
|
|
|
$CC -o $tmpdir/conftest-$id $tmpdir/conftest-$id.c 2>/dev/null
|
2005-04-26 22:41:48 +00:00
|
|
|
|
2009-07-13 21:50:25 +00:00
|
|
|
if test `$tmpdir/conftest-$id 2>/dev/null` -gt "1"; then
|
2005-04-26 22:41:48 +00:00
|
|
|
# big endian
|
|
|
|
endian="big"
|
|
|
|
else
|
|
|
|
# little endian
|
|
|
|
endian="little"
|
|
|
|
fi
|
2009-09-23 09:00:44 +00:00
|
|
|
|
|
|
|
if [ $1 = "sdl" ]; then
|
|
|
|
echo "Simulator environment deemed $endian endian"
|
|
|
|
elif [ $1 = "checkwps" ]; then
|
|
|
|
echo "CheckWPS environment deemed $endian endian"
|
|
|
|
fi
|
2005-04-26 22:56:53 +00:00
|
|
|
|
|
|
|
# use wildcard here to make it work even if it was named *.exe like
|
|
|
|
# on cygwin
|
2009-07-13 21:50:25 +00:00
|
|
|
rm -f $tmpdir/conftest-$id*
|
2009-10-12 18:49:29 +00:00
|
|
|
else
|
|
|
|
# We are crosscompiling
|
|
|
|
# add cross-compiler option(s)
|
|
|
|
prefixtools i586-mingw32msvc-
|
|
|
|
LDOPTS="-mconsole $sdl_libs"
|
|
|
|
output="rockboxui.exe" # use this as output binary name
|
|
|
|
endian="little" # windows is little endian
|
2010-02-15 01:27:04 +00:00
|
|
|
echo "Enabling MMX support"
|
|
|
|
GCCOPTS="$GCCOPTS -mmmx"
|
2005-04-26 22:41:48 +00:00
|
|
|
fi
|
2005-02-18 13:47:17 +00:00
|
|
|
}
|
|
|
|
|
2008-02-27 21:37:48 +00:00
|
|
|
#
|
|
|
|
# functions for setting up cross-compiler names and options
|
|
|
|
# also set endianess and what the exact recommended gcc version is
|
|
|
|
# the gcc version should most likely match what versions we build with
|
|
|
|
# rockboxdev.sh
|
|
|
|
#
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc () {
|
2005-02-18 13:47:17 +00:00
|
|
|
prefixtools sh-elf-
|
2004-10-04 13:02:41 +00:00
|
|
|
GCCOPTS="$CCOPTS -m1"
|
2004-10-07 07:08:57 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer -fschedule-insns"
|
2005-04-26 22:41:48 +00:00
|
|
|
endian="big"
|
2008-02-27 21:37:48 +00:00
|
|
|
gccchoice="4.0.3"
|
2004-09-22 08:58:50 +00:00
|
|
|
}
|
|
|
|
|
2005-01-04 15:00:06 +00:00
|
|
|
calmrisccc () {
|
2005-02-18 13:47:17 +00:00
|
|
|
prefixtools calmrisc16-unknown-elf-
|
2005-02-10 22:37:09 +00:00
|
|
|
GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
|
2005-01-04 15:00:06 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
2005-04-26 22:41:48 +00:00
|
|
|
endian="big"
|
2005-01-04 15:00:06 +00:00
|
|
|
}
|
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
coldfirecc () {
|
2005-02-18 13:47:17 +00:00
|
|
|
prefixtools m68k-elf-
|
2006-09-18 18:13:33 +00:00
|
|
|
GCCOPTS="$CCOPTS -m5206e -Wa\,-m5249 -malign-int -mstrict-align"
|
2004-10-07 07:08:57 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
2005-04-26 22:41:48 +00:00
|
|
|
endian="big"
|
2008-02-27 21:37:48 +00:00
|
|
|
gccchoice="3.4.6"
|
2004-09-22 08:58:50 +00:00
|
|
|
}
|
|
|
|
|
2005-11-08 00:52:39 +00:00
|
|
|
arm7tdmicc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2006-08-12 22:46:34 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm7tdmi"
|
2009-11-20 02:51:23 +00:00
|
|
|
if test "X$1" != "Xshort" -a "$ARG_ARM_EABI" != "1"; then
|
2007-02-17 11:19:14 +00:00
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
2006-08-12 22:46:34 +00:00
|
|
|
fi
|
2005-11-08 00:52:39 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2006-02-24 15:42:52 +00:00
|
|
|
arm9tdmicc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-02-10 09:27:20 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm9tdmi"
|
2009-12-07 15:07:51 +00:00
|
|
|
if test "$modelname" != "gigabeatfx" -a "$t_manufacturer" != "as3525" -a "$ARG_ARM_EABI" != "1"; then
|
2009-02-10 09:27:20 +00:00
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2006-02-24 15:42:52 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2008-06-27 23:24:34 +00:00
|
|
|
arm940tbecc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-11-20 02:51:23 +00:00
|
|
|
GCCOPTS="$CCOPTS -mbig-endian -mcpu=arm940t"
|
|
|
|
if test "ARG_ARM_EABI" != "1"; then
|
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2008-06-27 23:24:34 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="big"
|
|
|
|
}
|
|
|
|
|
2009-07-12 22:16:51 +00:00
|
|
|
arm940tcc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-11-20 02:51:23 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm940t"
|
|
|
|
if test "ARG_ARM_EABI" != "1"; then
|
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2009-07-12 22:16:51 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2007-10-28 11:08:10 +00:00
|
|
|
arm946cc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-11-20 02:51:23 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm9e"
|
|
|
|
if test "ARG_ARM_EABI" != "1"; then
|
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2007-10-28 11:08:10 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
2008-02-18 19:08:29 +00:00
|
|
|
}
|
|
|
|
|
2007-11-13 04:09:25 +00:00
|
|
|
arm926ejscc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-11-20 02:51:23 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm926ej-s"
|
|
|
|
if test "ARG_ARM_EABI" != "1"; then
|
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2007-11-13 04:09:25 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2008-02-10 17:40:06 +00:00
|
|
|
arm1136jfscc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-02-10 09:27:20 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm1136jf-s"
|
2009-11-20 02:51:23 +00:00
|
|
|
if test "$modelname" != "gigabeats" -a "ARG_ARM_EABI" != "1"; then
|
2009-02-10 09:27:20 +00:00
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2008-02-10 17:40:06 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2009-07-13 21:09:39 +00:00
|
|
|
arm1176jzscc () {
|
2009-11-19 22:47:14 +00:00
|
|
|
findarmgcc
|
2009-11-20 02:51:23 +00:00
|
|
|
GCCOPTS="$CCOPTS -mcpu=arm1176jz-s"
|
|
|
|
if test "ARG_ARM_EABI" != "1"; then
|
|
|
|
GCCOPTS="$GCCOPTS -mlong-calls"
|
|
|
|
fi
|
2009-07-13 21:09:39 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
}
|
|
|
|
|
2008-07-14 15:03:10 +00:00
|
|
|
mipselcc () {
|
2008-07-30 08:28:35 +00:00
|
|
|
prefixtools mipsel-elf-
|
2009-05-30 16:13:42 +00:00
|
|
|
GCCOPTS="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls"
|
|
|
|
GCCOPTS="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
|
2008-07-14 15:03:10 +00:00
|
|
|
GCCOPTIMIZE="-fomit-frame-pointer"
|
|
|
|
endian="little"
|
|
|
|
gccchoice="4.1.2"
|
|
|
|
}
|
|
|
|
|
2007-03-03 00:36:54 +00:00
|
|
|
whichadvanced () {
|
2009-08-09 19:02:22 +00:00
|
|
|
atype=`echo "$1" | cut -c 2-`
|
2005-05-30 13:00:43 +00:00
|
|
|
##################################################################
|
|
|
|
# Prompt for specific developer options
|
|
|
|
#
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$atype" ]; then
|
|
|
|
interact=
|
|
|
|
else
|
|
|
|
interact=1
|
|
|
|
echo ""
|
|
|
|
echo "Enter your developer options (press enter when done)"
|
2009-10-12 18:49:29 +00:00
|
|
|
printf "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile"
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$memory" = "2" ]; then
|
|
|
|
printf ", (8)MB MOD"
|
|
|
|
fi
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "archosplayer" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
printf ", Use (A)TA poweroff"
|
|
|
|
fi
|
|
|
|
if [ "$t_model" = "ondio" ]; then
|
|
|
|
printf ", (B)acklight MOD"
|
|
|
|
fi
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "iaudiom5" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
printf ", (F)M radio MOD"
|
|
|
|
fi
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "iriverh120" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
printf ", (R)TC MOD"
|
|
|
|
fi
|
|
|
|
echo ""
|
2009-06-12 18:53:44 +00:00
|
|
|
fi
|
2007-03-03 00:36:54 +00:00
|
|
|
|
2005-05-30 13:00:43 +00:00
|
|
|
cont=1
|
|
|
|
while [ $cont = "1" ]; do
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$interact" ]; then
|
|
|
|
option=`input`
|
|
|
|
else
|
|
|
|
option=`echo "$atype" | cut -c 1`
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
|
|
|
|
case $option in
|
|
|
|
[Dd])
|
2006-01-18 20:54:13 +00:00
|
|
|
if [ "yes" = "$profile" ]; then
|
|
|
|
echo "Debug is incompatible with profiling"
|
|
|
|
else
|
2009-08-09 19:02:22 +00:00
|
|
|
echo "DEBUG build enabled"
|
2006-01-18 20:54:13 +00:00
|
|
|
use_debug="yes"
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
;;
|
|
|
|
[Ll])
|
|
|
|
echo "logf() support enabled"
|
2006-01-18 20:54:13 +00:00
|
|
|
logf="yes"
|
2005-05-30 13:00:43 +00:00
|
|
|
;;
|
|
|
|
[Ss])
|
|
|
|
echo "Simulator build enabled"
|
|
|
|
simulator="yes"
|
|
|
|
;;
|
2006-01-18 20:54:13 +00:00
|
|
|
[Pp])
|
|
|
|
if [ "yes" = "$use_debug" ]; then
|
|
|
|
echo "Profiling is incompatible with debug"
|
|
|
|
else
|
|
|
|
echo "Profiling support is enabled"
|
|
|
|
profile="yes"
|
|
|
|
fi
|
|
|
|
;;
|
2007-08-08 22:01:06 +00:00
|
|
|
[Vv])
|
|
|
|
echo "Voice build selected"
|
|
|
|
voice="yes"
|
|
|
|
;;
|
2007-03-03 00:36:54 +00:00
|
|
|
8)
|
|
|
|
if [ "$memory" = "2" ]; then
|
|
|
|
memory="8"
|
|
|
|
echo "Memory size selected: 8MB"
|
|
|
|
fi
|
|
|
|
;;
|
2009-06-20 18:37:29 +00:00
|
|
|
[Aa])
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "archosplayer" ]; then
|
2009-06-20 18:37:29 +00:00
|
|
|
have_ata_poweroff="#define HAVE_ATA_POWEROFF"
|
|
|
|
echo "ATA poweroff enabled"
|
|
|
|
fi
|
|
|
|
;;
|
2009-06-12 18:53:44 +00:00
|
|
|
[Bb])
|
|
|
|
if [ "$t_model" = "ondio" ]; then
|
|
|
|
have_backlight="#define HAVE_BACKLIGHT"
|
|
|
|
echo "Backlight functions enabled"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
[Ff])
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "iaudiom5" ]; then
|
2009-06-12 18:53:44 +00:00
|
|
|
have_fmradio_in="#define HAVE_FMRADIO_IN"
|
|
|
|
echo "FM radio functions enabled"
|
|
|
|
fi
|
|
|
|
;;
|
2007-03-03 00:36:54 +00:00
|
|
|
[Rr])
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "iriverh120" ]; then
|
2007-03-03 00:36:54 +00:00
|
|
|
config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231"
|
|
|
|
have_rtc_alarm="#define HAVE_RTC_ALARM"
|
|
|
|
echo "RTC functions enabled (DS1339/DS3231)"
|
|
|
|
fi
|
|
|
|
;;
|
2009-10-12 18:49:29 +00:00
|
|
|
[Ww])
|
|
|
|
echo "Enabling Windows 32 cross-compiling"
|
|
|
|
crosscompile="yes"
|
|
|
|
;;
|
2005-05-30 13:00:43 +00:00
|
|
|
*)
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$interact" ]; then
|
|
|
|
cont=0
|
|
|
|
else
|
|
|
|
echo "[ERROR] Option $option unsupported"
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
;;
|
2007-01-13 02:24:15 +00:00
|
|
|
esac
|
2009-12-25 18:33:47 +00:00
|
|
|
if [ "$interact" ]; then
|
|
|
|
btype="$btype$option"
|
|
|
|
else
|
2009-08-09 19:02:22 +00:00
|
|
|
atype=`echo "$atype" | cut -c 2-`
|
|
|
|
[ "$atype" ] || cont=0
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
done
|
2007-03-03 00:36:54 +00:00
|
|
|
echo "done"
|
2005-05-30 13:00:43 +00:00
|
|
|
|
2007-08-08 22:01:06 +00:00
|
|
|
if [ "yes" = "$voice" ]; then
|
2007-08-13 12:21:16 +00:00
|
|
|
# Ask about languages to build
|
|
|
|
picklang
|
|
|
|
voicelanguage=`whichlang`
|
|
|
|
echo "Voice language set to $voicelanguage"
|
|
|
|
|
|
|
|
# Configure encoder and TTS engine for each language
|
|
|
|
for thislang in `echo $voicelanguage | sed 's/,/ /g'`; do
|
|
|
|
voiceconfig "$thislang"
|
|
|
|
done
|
2007-08-08 22:01:06 +00:00
|
|
|
fi
|
2006-01-18 20:54:13 +00:00
|
|
|
if [ "yes" = "$use_debug" ]; then
|
|
|
|
debug="-DDEBUG"
|
|
|
|
GCCOPTS="$GCCOPTS -g -DDEBUG"
|
|
|
|
fi
|
|
|
|
if [ "yes" = "$logf" ]; then
|
|
|
|
use_logf="#define ROCKBOX_HAS_LOGF 1"
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
if [ "yes" = "$simulator" ]; then
|
2005-08-30 21:21:06 +00:00
|
|
|
debug="-DDEBUG"
|
2006-01-18 20:54:13 +00:00
|
|
|
extradefines="$extradefines -DSIMULATOR"
|
2009-04-21 16:13:00 +00:00
|
|
|
archosrom=""
|
|
|
|
flash=""
|
2005-05-30 13:00:43 +00:00
|
|
|
fi
|
2006-01-18 20:54:13 +00:00
|
|
|
if [ "yes" = "$profile" ]; then
|
|
|
|
extradefines="$extradefines -DRB_PROFILE"
|
|
|
|
PROFILE_OPTS="-finstrument-functions"
|
|
|
|
fi
|
2005-05-30 13:00:43 +00:00
|
|
|
}
|
|
|
|
|
2007-08-13 12:21:16 +00:00
|
|
|
# Configure voice settings
|
2006-11-03 21:47:52 +00:00
|
|
|
voiceconfig () {
|
2007-08-13 12:21:16 +00:00
|
|
|
thislang=$1
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ ! "$ARG_TTS" ]; then
|
|
|
|
echo "Building $thislang voice for $modelname. Select options"
|
|
|
|
echo ""
|
|
|
|
fi
|
2006-11-03 21:47:52 +00:00
|
|
|
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool flite`" ]; then
|
2006-11-03 21:47:52 +00:00
|
|
|
FLITE="F(l)ite "
|
2007-08-25 22:00:13 +00:00
|
|
|
FLITE_OPTS=""
|
2006-11-03 21:47:52 +00:00
|
|
|
DEFAULT_TTS="flite"
|
|
|
|
DEFAULT_TTS_OPTS=$FLITE_OPTS
|
|
|
|
DEFAULT_NOISEFLOOR="500"
|
|
|
|
DEFAULT_CHOICE="L"
|
|
|
|
fi
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool espeak`" ]; then
|
2006-11-03 21:47:52 +00:00
|
|
|
ESPEAK="(e)Speak "
|
2007-08-25 22:00:13 +00:00
|
|
|
ESPEAK_OPTS=""
|
2006-11-03 21:47:52 +00:00
|
|
|
DEFAULT_TTS="espeak"
|
|
|
|
DEFAULT_TTS_OPTS=$ESPEAK_OPTS
|
|
|
|
DEFAULT_NOISEFLOOR="500"
|
|
|
|
DEFAULT_CHOICE="e"
|
|
|
|
fi
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool festival`" ]; then
|
2006-11-03 21:47:52 +00:00
|
|
|
FESTIVAL="(F)estival "
|
2007-08-25 22:00:13 +00:00
|
|
|
case "$thislang" in
|
|
|
|
"italiano")
|
|
|
|
FESTIVAL_OPTS="--language italian"
|
|
|
|
;;
|
|
|
|
"espanol")
|
|
|
|
FESTIVAL_OPTS="--language spanish"
|
|
|
|
;;
|
|
|
|
"finnish")
|
|
|
|
FESTIVAL_OPTS="--language finnish"
|
|
|
|
;;
|
|
|
|
"czech")
|
|
|
|
FESTIVAL_OPTS="--language czech"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
FESTIVAL_OPTS=""
|
|
|
|
;;
|
|
|
|
esac
|
2006-11-03 21:47:52 +00:00
|
|
|
DEFAULT_TTS="festival"
|
|
|
|
DEFAULT_TTS_OPTS=$FESTIVAL_OPTS
|
|
|
|
DEFAULT_NOISEFLOOR="500"
|
|
|
|
DEFAULT_CHOICE="F"
|
|
|
|
fi
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool swift`" ]; then
|
2007-09-01 20:03:20 +00:00
|
|
|
SWIFT="S(w)ift "
|
|
|
|
SWIFT_OPTS=""
|
|
|
|
DEFAULT_TTS="swift"
|
|
|
|
DEFAULT_TTS_OPTS=$SWIFT_OPTS
|
|
|
|
DEFAULT_NOISEFLOOR="500"
|
|
|
|
DEFAULT_CHOICE="w"
|
|
|
|
fi
|
2007-08-09 12:07:42 +00:00
|
|
|
# Allow SAPI if Windows is in use
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool winver`" ]; then
|
2007-09-02 22:32:34 +00:00
|
|
|
SAPI="(S)API "
|
|
|
|
SAPI_OPTS=""
|
|
|
|
DEFAULT_TTS="sapi"
|
|
|
|
DEFAULT_TTS_OPTS=$SAPI_OPTS
|
2007-08-09 12:07:42 +00:00
|
|
|
DEFAULT_NOISEFLOOR="500"
|
|
|
|
DEFAULT_CHOICE="S"
|
|
|
|
fi
|
2006-11-03 21:47:52 +00:00
|
|
|
|
2007-09-02 22:32:34 +00:00
|
|
|
if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
|
|
|
|
echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 3
|
2006-11-03 21:47:52 +00:00
|
|
|
fi
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_TTS" ]; then
|
|
|
|
option=$ARG_TTS
|
|
|
|
else
|
|
|
|
echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
|
|
|
|
option=`input`
|
|
|
|
fi
|
|
|
|
advopts="$advopts --tts=$option"
|
2006-11-03 21:47:52 +00:00
|
|
|
case "$option" in
|
|
|
|
[Ll])
|
|
|
|
TTS_ENGINE="flite"
|
|
|
|
NOISEFLOOR="500" # TODO: check this value
|
|
|
|
TTS_OPTS=$FLITE_OPTS
|
|
|
|
;;
|
|
|
|
[Ee])
|
|
|
|
TTS_ENGINE="espeak"
|
|
|
|
NOISEFLOOR="500"
|
|
|
|
TTS_OPTS=$ESPEAK_OPTS
|
|
|
|
;;
|
|
|
|
[Ff])
|
|
|
|
TTS_ENGINE="festival"
|
|
|
|
NOISEFLOOR="500"
|
|
|
|
TTS_OPTS=$FESTIVAL_OPTS
|
|
|
|
;;
|
2007-08-09 12:07:42 +00:00
|
|
|
[Ss])
|
2007-09-02 22:32:34 +00:00
|
|
|
TTS_ENGINE="sapi"
|
2007-08-09 12:07:42 +00:00
|
|
|
NOISEFLOOR="500"
|
2007-09-02 22:32:34 +00:00
|
|
|
TTS_OPTS=$SAPI_OPTS
|
2007-08-09 12:07:42 +00:00
|
|
|
;;
|
2007-09-01 20:03:20 +00:00
|
|
|
[Ww])
|
|
|
|
TTS_ENGINE="swift"
|
|
|
|
NOISEFLOOR="500"
|
|
|
|
TTS_OPTS=$SWIFT_OPTS
|
|
|
|
;;
|
2006-11-03 21:47:52 +00:00
|
|
|
*)
|
|
|
|
TTS_ENGINE=$DEFAULT_TTS
|
|
|
|
TTS_OPTS=$DEFAULT_TTS_OPTS
|
|
|
|
NOISEFLOOR=$DEFAULT_NOISEFLOOR
|
|
|
|
esac
|
|
|
|
echo "Using $TTS_ENGINE for TTS"
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2009-03-02 21:36:48 +00:00
|
|
|
# Select which voice to use for Festival
|
|
|
|
if [ "$TTS_ENGINE" = "festival" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
voicelist=`echo "(voice.list)"|festival -i 2>/dev/null |tr "\n" " "|sed -e 's/.*festival> (\(.*\)) festival>/\1/'|sort`
|
|
|
|
for voice in $voicelist; do
|
|
|
|
TTS_FESTIVAL_VOICE="$voice" # Default choice
|
|
|
|
break
|
2009-03-02 21:36:48 +00:00
|
|
|
done
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_VOICE" ]; then
|
|
|
|
CHOICE=$ARG_VOICE
|
|
|
|
else
|
|
|
|
i=1
|
|
|
|
for voice in $voicelist; do
|
|
|
|
printf "%3d. %s\n" "$i" "$voice"
|
|
|
|
i=`expr $i + 1`
|
|
|
|
done
|
|
|
|
printf "Please select which Festival voice to use (default is $TTS_FESTIVAL_VOICE): "
|
|
|
|
CHOICE=`input`
|
|
|
|
fi
|
2009-03-02 21:36:48 +00:00
|
|
|
i=1
|
2009-08-09 19:02:22 +00:00
|
|
|
for voice in $voicelist; do
|
2009-03-02 21:36:48 +00:00
|
|
|
if [ "$i" = "$CHOICE" -o "$voice" = "$CHOICE" ]; then
|
|
|
|
TTS_FESTIVAL_VOICE="$voice"
|
|
|
|
fi
|
|
|
|
i=`expr $i + 1`
|
|
|
|
done
|
2009-08-09 19:02:22 +00:00
|
|
|
advopts="$advopts --voice=$CHOICE"
|
2009-03-02 21:36:48 +00:00
|
|
|
echo "Festival voice set to $TTS_FESTIVAL_VOICE"
|
|
|
|
echo "(voice_$TTS_FESTIVAL_VOICE)" > festival-prolog.scm
|
|
|
|
fi
|
|
|
|
|
2009-12-08 10:24:59 +00:00
|
|
|
# Read custom tts options from command line
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_TTSOPTS" ]; then
|
2009-12-25 18:35:15 +00:00
|
|
|
TTS_OPTS="$ARG_TTSOPTS"
|
2009-12-08 10:24:59 +00:00
|
|
|
advopts="$advopts --ttsopts='$TTS_OPTS'"
|
|
|
|
echo "$TTS_ENGINE options set to $TTS_OPTS"
|
2007-08-13 12:21:16 +00:00
|
|
|
fi
|
2006-11-03 21:47:52 +00:00
|
|
|
|
2007-11-18 17:10:50 +00:00
|
|
|
if [ "$swcodec" = "yes" ]; then
|
|
|
|
ENCODER="rbspeexenc"
|
2007-11-18 18:44:45 +00:00
|
|
|
ENC_CMD="rbspeexenc"
|
2007-11-18 17:10:50 +00:00
|
|
|
ENC_OPTS="-q 4 -c 10"
|
|
|
|
else
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool lame`" ]; then
|
2007-11-18 17:10:50 +00:00
|
|
|
ENCODER="lame"
|
|
|
|
ENC_CMD="lame"
|
2009-05-30 00:12:24 +00:00
|
|
|
ENC_OPTS="--resample 12 -t -m m -h -V 9.999 -S -B 64 --vbr-new"
|
2007-11-18 17:10:50 +00:00
|
|
|
else
|
|
|
|
echo "You need LAME in the system path to build voice files for"
|
|
|
|
echo "HWCODEC targets."
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 4
|
2007-11-18 17:10:50 +00:00
|
|
|
fi
|
2006-11-03 21:47:52 +00:00
|
|
|
fi
|
2007-11-18 17:10:50 +00:00
|
|
|
|
2006-11-03 21:47:52 +00:00
|
|
|
echo "Using $ENCODER for encoding voice clips"
|
2007-08-13 12:21:16 +00:00
|
|
|
|
2009-12-08 10:24:59 +00:00
|
|
|
# Read custom encoder options from command line
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_ENCOPTS" ]; then
|
2009-12-08 10:24:59 +00:00
|
|
|
ENC_OPTS="$ARG_ENCOPTS"
|
|
|
|
advopts="$advopts --encopts='$ENC_OPTS'"
|
|
|
|
echo "$ENCODER options set to $ENC_OPTS"
|
2007-08-13 12:21:16 +00:00
|
|
|
fi
|
|
|
|
|
2007-08-09 12:07:42 +00:00
|
|
|
TEMPDIR="${pwd}"
|
2008-10-08 23:18:23 +00:00
|
|
|
if [ -n "`findtool cygpath`" ]; then
|
2007-08-09 12:07:42 +00:00
|
|
|
TEMPDIR=`cygpath . -a -w`
|
|
|
|
fi
|
2006-11-03 21:47:52 +00:00
|
|
|
}
|
|
|
|
|
2007-01-13 02:24:15 +00:00
|
|
|
picklang() {
|
|
|
|
# figure out which languages that are around
|
|
|
|
for file in $rootdir/apps/lang/*.lang; do
|
2009-08-09 19:02:22 +00:00
|
|
|
clean=`basename $file .lang`
|
2007-01-13 02:24:15 +00:00
|
|
|
langs="$langs $clean"
|
|
|
|
done
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_LANG" ]; then
|
|
|
|
pick=$ARG_LANG
|
|
|
|
else
|
|
|
|
echo "Select a number for the language to use (default is english)"
|
|
|
|
# FIXME The multiple-language feature is currently broken
|
|
|
|
# echo "You may enter a comma-separated list of languages to build"
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
num=1
|
|
|
|
for one in $langs; do
|
|
|
|
echo "$num. $one"
|
|
|
|
num=`expr $num + 1`
|
|
|
|
done
|
|
|
|
pick=`input`
|
|
|
|
fi
|
|
|
|
advopts="$advopts --language=$pick"
|
2007-01-13 02:24:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
whichlang() {
|
2007-08-13 12:21:16 +00:00
|
|
|
output=""
|
|
|
|
# Allow the user to pass a comma-separated list of langauges
|
|
|
|
for thispick in `echo $pick | sed 's/,/ /g'`; do
|
|
|
|
num=1
|
|
|
|
for one in $langs; do
|
|
|
|
# Accept both the language number and name
|
|
|
|
if [ "$num" = "$thispick" ] || [ "$thispick" = "$one" ]; then
|
|
|
|
if [ "$output" = "" ]; then
|
|
|
|
output=$one
|
|
|
|
else
|
|
|
|
output=$output,$one
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
num=`expr $num + 1`
|
|
|
|
done
|
2007-01-13 02:24:15 +00:00
|
|
|
done
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ -z "$output" ]; then
|
|
|
|
# pick a default
|
|
|
|
output="english"
|
|
|
|
fi
|
2007-08-13 12:21:16 +00:00
|
|
|
echo $output
|
2006-11-03 21:47:52 +00:00
|
|
|
}
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
help() {
|
2002-10-17 09:08:05 +00:00
|
|
|
echo "Rockbox configure script."
|
|
|
|
echo "Invoke this in a directory to generate a Makefile to build Rockbox"
|
|
|
|
echo "Do *NOT* run this within the tools directory!"
|
2005-06-01 11:42:51 +00:00
|
|
|
echo ""
|
2009-08-09 19:02:22 +00:00
|
|
|
cat <<EOF
|
2008-04-02 21:28:15 +00:00
|
|
|
Usage: configure [OPTION]...
|
|
|
|
Options:
|
|
|
|
--target=TARGET Sets the target, TARGET can be either the target ID or
|
2008-07-17 02:58:53 +00:00
|
|
|
corresponding string. Run without this option to see all
|
2008-04-02 21:28:15 +00:00
|
|
|
available targets.
|
|
|
|
|
|
|
|
--ram=RAM Sets the RAM for certain targets. Even though any number
|
|
|
|
is accepted, not every number is correct. The default
|
|
|
|
value will be applied, if you entered a wrong number
|
|
|
|
(which depends on the target). Watch the output. Run
|
|
|
|
without this option if you are not sure which the right
|
|
|
|
number is.
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
--type=TYPE Sets the build type. Shortcuts are also valid.
|
|
|
|
Run without this option to see all available types.
|
|
|
|
Multiple values are allowed and managed in the input
|
|
|
|
order. So --type=b stands for Bootloader build, while
|
|
|
|
--type=ab stands for "Backlight MOD" build.
|
|
|
|
|
|
|
|
--language=LANG Set the language used for voice generation (used only if
|
|
|
|
TYPE is AV).
|
|
|
|
|
|
|
|
--tts=ENGINE Set the TTS engine used for voice generation (used only
|
|
|
|
if TYPE is AV).
|
|
|
|
|
|
|
|
--voice=VOICE Set voice to use with selected TTS (used only if TYPE is
|
|
|
|
AV).
|
|
|
|
|
|
|
|
--ttsopts=OPTS Set TTS engine manual options (used only if TYPE is AV).
|
|
|
|
|
|
|
|
--encopts=OPTS Set encoder manual options (used only if ATYPE is AV).
|
2008-11-24 22:16:07 +00:00
|
|
|
|
|
|
|
--rbdir=dir Use alternative rockbox directory (default: ${rbdir}).
|
|
|
|
This is useful for having multiple alternate builds on
|
|
|
|
your device that you can load with ROLO. However as the
|
|
|
|
bootloader looks for .rockbox you won't be able to boot
|
|
|
|
into this build.
|
|
|
|
|
2008-04-02 21:28:15 +00:00
|
|
|
--ccache Enable ccache use (done by default these days)
|
|
|
|
--no-ccache Disable ccache use
|
2009-11-19 22:47:14 +00:00
|
|
|
|
|
|
|
--eabi Make configure prefer toolchains that are able to compile
|
|
|
|
for the new ARM standard abi EABI
|
|
|
|
--no-eabi The opposite of --eabi (prefer old non-eabi toolchains)
|
2008-04-02 21:28:15 +00:00
|
|
|
--help Shows this message (must not be used with other options)
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2002-10-17 09:08:05 +00:00
|
|
|
exit
|
2009-08-09 19:02:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ARG_CCACHE=
|
|
|
|
ARG_ENCOPTS=
|
|
|
|
ARG_LANG=
|
|
|
|
ARG_RAM=
|
|
|
|
ARG_RBDIR=
|
|
|
|
ARG_TARGET=
|
|
|
|
ARG_TTS=
|
|
|
|
ARG_TTSOPTS=
|
|
|
|
ARG_TYPE=
|
|
|
|
ARG_VOICE=
|
2009-11-19 22:47:14 +00:00
|
|
|
ARG_ARM_EABI=
|
2009-08-09 19:02:22 +00:00
|
|
|
err=
|
|
|
|
for arg in "$@"; do
|
|
|
|
case "$arg" in
|
|
|
|
--ccache) ARG_CCACHE=1;;
|
2009-11-19 22:47:14 +00:00
|
|
|
--no-ccache) ARG_CCACHE=0;;
|
2009-08-09 19:02:22 +00:00
|
|
|
--encopts=*) ARG_ENCOPTS=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--language=*) ARG_LANG=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--ram=*) ARG_RAM=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--rbdir=*) ARG_RBDIR=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--target=*) ARG_TARGET=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--tts=*) ARG_TTS=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--ttsopts=*) ARG_TTSOPTS=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--type=*) ARG_TYPE=`echo "$arg" | cut -d = -f 2`;;
|
|
|
|
--voice=*) ARG_VOICE=`echo "$arg" | cut -d = -f 2`;;
|
2009-11-19 22:47:14 +00:00
|
|
|
--eabi) ARG_ARM_EABI=1;;
|
|
|
|
--no-eabi) ARG_ARM_EABI=0;;
|
2009-08-09 19:02:22 +00:00
|
|
|
--help) help;;
|
|
|
|
*) err=1; echo "[ERROR] Option '$arg' unsupported";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
[ "$err" ] && exit 1
|
|
|
|
|
|
|
|
advopts=
|
|
|
|
|
|
|
|
if [ "$TMPDIR" != "" ]; then
|
|
|
|
tmpdir=$TMPDIR
|
|
|
|
else
|
|
|
|
tmpdir=/tmp
|
2002-10-17 09:08:05 +00:00
|
|
|
fi
|
2009-08-09 19:02:22 +00:00
|
|
|
echo Using temporary directory $tmpdir
|
2002-10-17 09:08:05 +00:00
|
|
|
|
|
|
|
if test -r "configure"; then
|
|
|
|
# this is a check for a configure script in the current directory, it there
|
|
|
|
# is one, try to figure out if it is this one!
|
|
|
|
|
|
|
|
if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
|
|
|
|
echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
|
|
|
|
echo "It will only cause you pain and grief. Instead do this:"
|
|
|
|
echo ""
|
|
|
|
echo " cd .."
|
|
|
|
echo " mkdir build-dir"
|
|
|
|
echo " cd build-dir"
|
|
|
|
echo " ../tools/configure"
|
|
|
|
echo ""
|
|
|
|
echo "Much happiness will arise from this. Enjoy"
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 5
|
2002-10-17 09:08:05 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2002-05-31 07:22:38 +00:00
|
|
|
# get our current directory
|
|
|
|
pwd=`pwd`;
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2007-04-20 11:02:16 +00:00
|
|
|
if { echo $pwd | grep " "; } then
|
|
|
|
echo "You're running this script in a path that contains space. The build"
|
|
|
|
echo "system is unfortunately not clever enough to deal with this. Please"
|
|
|
|
echo "run the script from a different path, rename the path or fix the build"
|
|
|
|
echo "system!"
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 6
|
2007-04-20 11:02:16 +00:00
|
|
|
fi
|
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
if [ -z "$rootdir" ]; then
|
|
|
|
##################################################################
|
|
|
|
# Figure out where the source code root is!
|
|
|
|
#
|
2006-11-18 22:43:55 +00:00
|
|
|
rootdir=`dirname $0`/../
|
2004-09-22 08:58:50 +00:00
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
# Convert the possibly relative directory name to an absolute version
|
|
|
|
#
|
|
|
|
now=`pwd`
|
|
|
|
cd $rootdir
|
|
|
|
rootdir=`pwd`
|
|
|
|
|
|
|
|
# cd back to the build dir
|
|
|
|
cd $now
|
|
|
|
fi
|
|
|
|
|
2005-05-07 23:16:08 +00:00
|
|
|
apps="apps"
|
2005-01-29 00:00:47 +00:00
|
|
|
appsdir='\$(ROOTDIR)/apps'
|
2006-02-06 07:25:25 +00:00
|
|
|
firmdir='\$(ROOTDIR)/firmware'
|
2006-02-06 07:54:50 +00:00
|
|
|
toolsdir='\$(ROOTDIR)/tools'
|
2006-02-06 07:25:25 +00:00
|
|
|
|
2005-01-29 00:00:47 +00:00
|
|
|
|
2002-05-23 09:11:35 +00:00
|
|
|
##################################################################
|
|
|
|
# Figure out target platform
|
|
|
|
#
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_TARGET" ]; then
|
|
|
|
buildfor=$ARG_TARGET
|
2008-04-02 21:28:15 +00:00
|
|
|
else
|
2005-05-24 09:19:44 +00:00
|
|
|
echo "Enter target platform:"
|
2006-08-30 21:53:26 +00:00
|
|
|
cat <<EOF
|
2008-09-23 11:32:00 +00:00
|
|
|
==Archos== ==iriver== ==Apple iPod==
|
|
|
|
0) Player/Studio 10) H120/H140 20) Color/Photo
|
2009-12-07 12:19:08 +00:00
|
|
|
1) Recorder 11) H320/H340 21) Nano 1G
|
2008-09-23 11:32:00 +00:00
|
|
|
2) FM Recorder 12) iHP-100/110/115 22) Video
|
|
|
|
3) Recorder v2 13) iFP-790 23) 3G
|
|
|
|
4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
|
|
|
|
5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
|
|
|
|
6) AV300 26) Mini 2G
|
2008-11-05 23:12:14 +00:00
|
|
|
==Toshiba== 27) 1G, 2G
|
2009-12-07 15:07:51 +00:00
|
|
|
==Cowon/iAudio== 40) Gigabeat F/X 28) Nano 2G
|
2009-07-12 22:16:51 +00:00
|
|
|
30) X5/X5V/X5L 41) Gigabeat S
|
|
|
|
31) M5/M5L ==SanDisk==
|
|
|
|
32) 7 ==Olympus= 50) Sansa e200
|
|
|
|
33) D2 70) M:Robe 500 51) Sansa e200R
|
|
|
|
34) M3/M3L 71) M:Robe 100 52) Sansa c200
|
|
|
|
53) Sansa m200
|
|
|
|
==Creative== ==Philips== 54) Sansa c100
|
|
|
|
90) Zen Vision:M 30GB 100) GoGear SA9200 55) Sansa Clip
|
|
|
|
91) Zen Vision:M 60GB 101) GoGear HDD1630/ 56) Sansa e200v2
|
|
|
|
92) Zen Vision HDD1830 57) Sansa m200v4
|
2009-12-25 04:05:01 +00:00
|
|
|
102) GoGear HDD6330 58) Sansa Fuze
|
|
|
|
==Onda== 59) Sansa c200v2
|
|
|
|
120) VX747 ==Meizu== 60) Sansa Clipv2
|
|
|
|
121) VX767 110) M6SL 61) Sansa View
|
2010-01-13 03:05:29 +00:00
|
|
|
122) VX747+ 111) M6SP 62) Sansa Clip+
|
|
|
|
123) VX777 112) M3
|
|
|
|
==Logik==
|
|
|
|
==Samsung== ==Tatung== 80) DAX 1GB MP3/DAB
|
|
|
|
140) YH-820 150) Elio TPJ-1022
|
|
|
|
141) YH-920 ==Lyre project==1
|
2010-01-18 19:05:20 +00:00
|
|
|
142) YH-925 ==Packard Bell== 130) Lyre proto 1
|
|
|
|
143) YP-S3 160) Vibe 500 131) Mini2440
|
2006-08-30 21:53:26 +00:00
|
|
|
EOF
|
2006-08-28 08:46:16 +00:00
|
|
|
|
|
|
|
buildfor=`input`;
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2008-04-02 21:28:15 +00:00
|
|
|
fi
|
2005-12-02 08:56:20 +00:00
|
|
|
# Set of tools built for all target platforms:
|
2007-04-01 13:09:22 +00:00
|
|
|
toolset="rdf2binary convbdf codepages"
|
2005-12-02 08:56:20 +00:00
|
|
|
|
|
|
|
# Toolsets for some target families:
|
2007-04-01 13:09:22 +00:00
|
|
|
archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb"
|
|
|
|
iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb"
|
|
|
|
iaudiobitmaptools="$toolset scramble descramble mkboot bmp2rb"
|
2008-01-12 18:11:46 +00:00
|
|
|
ipodbitmaptools="$toolset scramble bmp2rb"
|
2007-04-01 13:09:22 +00:00
|
|
|
gigabeatbitmaptools="$toolset scramble descramble bmp2rb"
|
2009-10-28 21:11:43 +00:00
|
|
|
tccbitmaptools="$toolset scramble bmp2rb"
|
2008-10-12 19:34:47 +00:00
|
|
|
# generic is used by IFP, Meizu and Onda
|
2007-04-01 13:09:22 +00:00
|
|
|
genericbitmaptools="$toolset bmp2rb"
|
2008-10-12 19:34:47 +00:00
|
|
|
# scramble is used by all other targets
|
|
|
|
scramblebitmaptools="$genericbitmaptools scramble"
|
2005-12-02 08:56:20 +00:00
|
|
|
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2006-08-28 08:46:16 +00:00
|
|
|
# ---- For each target ----
|
|
|
|
#
|
|
|
|
# *Variables*
|
2008-01-23 10:59:17 +00:00
|
|
|
# target_id: a unique number identifying this target, IS NOT the menu number.
|
|
|
|
# Just use the currently highest number+1 when you add a new
|
|
|
|
# target.
|
|
|
|
# modelname: short model name used all over to identify this target
|
2007-05-19 14:35:11 +00:00
|
|
|
# memory: number of megabytes of RAM this target has. If the amount can
|
|
|
|
# be selected by the size prompt, let memory be unset here
|
2006-08-28 08:46:16 +00:00
|
|
|
# target: -Ddefine passed to the build commands to make the correct
|
|
|
|
# config-*.h file get included etc
|
|
|
|
# tool: the tool that takes a plain binary and converts that into a
|
|
|
|
# working "firmware" file for your target
|
|
|
|
# output: the final output file name
|
2006-08-31 12:31:16 +00:00
|
|
|
# boottool: the tool that takes a plain binary and generates a bootloader
|
|
|
|
# file for your target (or blank to use $tool)
|
2007-01-13 02:24:15 +00:00
|
|
|
# bootoutput:the final output file name for the bootloader (or blank to use
|
2006-08-31 12:31:16 +00:00
|
|
|
# $output)
|
2006-08-28 08:46:16 +00:00
|
|
|
# appextra: passed to the APPEXTRA variable in the Makefiles.
|
|
|
|
# TODO: add proper explanation
|
|
|
|
# archosrom: used only for Archos targets that build a special flashable .ucl
|
2008-01-23 10:59:17 +00:00
|
|
|
# image.
|
|
|
|
# flash: name of output for flashing, for targets where there's a special
|
|
|
|
# file output for this.
|
2006-08-28 08:46:16 +00:00
|
|
|
# plugins: set to 'yes' to build the plugins. Early development builds can
|
|
|
|
# set this to no in the early stages to have an easier life for a
|
|
|
|
# while
|
2007-07-16 22:25:41 +00:00
|
|
|
# swcodec: set 'yes' on swcodec targets
|
2006-08-28 08:46:16 +00:00
|
|
|
# toolset: lists what particular tools in the tools/ directory that this
|
|
|
|
# target needs to have built prior to building Rockbox
|
|
|
|
#
|
|
|
|
# *Functions*
|
|
|
|
# *cc: sets up gcc and compiler options for your target builds. Note
|
|
|
|
# that if you select a simulator build, the compiler selection is
|
|
|
|
# overridden later in the script.
|
|
|
|
|
|
|
|
case $buildfor in
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
0|archosplayer)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=1
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosplayer"
|
2002-05-23 09:11:35 +00:00
|
|
|
target="-DARCHOS_PLAYER"
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc
|
2004-10-07 08:08:05 +00:00
|
|
|
tool="$rootdir/tools/scramble"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="archos.mod"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="player:gui"
|
2004-11-20 00:55:25 +00:00
|
|
|
archosrom="$pwd/rombox.ucl"
|
|
|
|
flash="$pwd/rockbox.ucl"
|
2004-09-22 21:40:45 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2007-04-04 00:16:11 +00:00
|
|
|
toolset="$toolset scramble descramble sh2d player_unifont uclpack"
|
2005-12-04 23:25:24 +00:00
|
|
|
|
|
|
|
# Note: the convbdf is present in the toolset just because: 1) the
|
|
|
|
# firmware/Makefile assumes it is present always, and 2) we will need it when we
|
|
|
|
# build the player simulator
|
|
|
|
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="player"
|
2004-09-22 08:58:50 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
1|archosrecorder)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=2
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosrecorder"
|
2005-06-15 11:27:37 +00:00
|
|
|
target="-DARCHOS_RECORDER"
|
|
|
|
shcc
|
|
|
|
tool="$rootdir/tools/scramble"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2005-06-15 11:27:37 +00:00
|
|
|
output="ajbrec.ajz"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-01-23 10:59:17 +00:00
|
|
|
#archosrom="$pwd/rombox.ucl"
|
2005-06-15 11:27:37 +00:00
|
|
|
flash="$pwd/rockbox.ucl"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$archosbitmaptools
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="recorder"
|
2005-06-15 11:27:37 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
2|archosfmrecorder)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=3
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosfmrecorder"
|
2003-01-16 14:37:30 +00:00
|
|
|
target="-DARCHOS_FMRECORDER"
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc
|
2004-10-07 08:08:05 +00:00
|
|
|
tool="$rootdir/tools/scramble -fm"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="ajbrec.ajz"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-01-23 10:59:17 +00:00
|
|
|
#archosrom="$pwd/rombox.ucl"
|
2004-10-07 08:20:25 +00:00
|
|
|
flash="$pwd/rockbox.ucl"
|
2004-09-22 21:40:45 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$archosbitmaptools
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="fm_v2"
|
2003-01-16 14:37:30 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
3|archosrecorderv2)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=4
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosrecorderv2"
|
2003-11-19 06:40:59 +00:00
|
|
|
target="-DARCHOS_RECORDERV2"
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc
|
2004-10-07 08:08:05 +00:00
|
|
|
tool="$rootdir/tools/scramble -v2"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="ajbrec.ajz"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-01-23 10:59:17 +00:00
|
|
|
#archosrom="$pwd/rombox.ucl"
|
2004-10-07 08:20:25 +00:00
|
|
|
flash="$pwd/rockbox.ucl"
|
2004-09-22 21:40:45 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$archosbitmaptools
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="fm_v2"
|
2003-11-19 06:40:59 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
4|archosondiosp)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=7
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosondiosp"
|
2004-09-09 06:01:46 +00:00
|
|
|
target="-DARCHOS_ONDIOSP"
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc
|
2004-10-07 08:08:05 +00:00
|
|
|
tool="$rootdir/tools/scramble -osp"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="ajbrec.ajz"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2004-10-07 06:51:22 +00:00
|
|
|
archosrom="$pwd/rombox.ucl"
|
2004-10-07 08:20:25 +00:00
|
|
|
flash="$pwd/rockbox.ucl"
|
2004-10-07 06:51:22 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$archosbitmaptools
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="ondio"
|
2004-09-09 06:01:46 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
5|archosondiofm)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=8
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosondiofm"
|
2004-09-09 06:01:46 +00:00
|
|
|
target="-DARCHOS_ONDIOFM"
|
2004-09-22 08:58:50 +00:00
|
|
|
shcc
|
2004-10-07 08:08:05 +00:00
|
|
|
tool="$rootdir/tools/scramble -ofm"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="ajbrec.ajz"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-01-23 10:59:17 +00:00
|
|
|
#archosrom="$pwd/rombox.ucl"
|
2004-10-07 08:20:25 +00:00
|
|
|
flash="$pwd/rockbox.ucl"
|
2004-10-07 06:51:22 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2005-12-02 08:56:20 +00:00
|
|
|
toolset=$archosbitmaptools
|
2006-11-27 02:16:32 +00:00
|
|
|
t_cpu="sh"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="ondio"
|
2004-09-16 14:36:08 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
6|archosav300)
|
2008-03-10 00:27:00 +00:00
|
|
|
target_id=38
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="archosav300"
|
2007-01-14 13:48:09 +00:00
|
|
|
target="-DARCHOS_AV300"
|
|
|
|
memory=16 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mm=C"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
|
|
|
output="cjbm.ajz"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec=""
|
2007-01-14 13:48:09 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2007-09-07 15:34:54 +00:00
|
|
|
toolset="$toolset scramble descramble bmp2rb"
|
2007-01-14 13:48:09 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="archos"
|
|
|
|
t_model="av300"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
10|iriverh120)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=9
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverh120"
|
2005-07-08 06:31:13 +00:00
|
|
|
target="-DIRIVER_H120"
|
2004-09-16 21:19:21 +00:00
|
|
|
memory=32 # always
|
2004-09-22 08:58:50 +00:00
|
|
|
coldfirecc
|
2005-01-28 12:27:39 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=h120"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
|
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
|
2004-09-22 08:58:50 +00:00
|
|
|
output="rockbox.iriver"
|
2009-10-24 22:56:00 +00:00
|
|
|
bootoutput="bootloader.iriver"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2007-01-08 18:21:12 +00:00
|
|
|
flash="$pwd/rombox.iriver"
|
2005-02-04 12:52:15 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$iriverbitmaptools
|
2006-10-29 10:26:41 +00:00
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iriver"
|
|
|
|
t_model="h100"
|
2002-05-23 09:11:35 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
11|iriverh300)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=10
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverh300"
|
2005-06-15 11:27:37 +00:00
|
|
|
target="-DIRIVER_H300"
|
|
|
|
memory=32 # always
|
|
|
|
coldfirecc
|
2005-07-01 09:46:23 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=h300"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
|
2005-06-15 11:27:37 +00:00
|
|
|
output="rockbox.iriver"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2004-09-22 21:40:45 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$iriverbitmaptools
|
2006-10-29 10:26:41 +00:00
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iriver"
|
|
|
|
t_model="h300"
|
2004-09-22 09:29:58 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
12|iriverh100)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=11
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverh100"
|
2005-07-08 06:31:13 +00:00
|
|
|
target="-DIRIVER_H100"
|
|
|
|
memory=16 # always
|
|
|
|
coldfirecc
|
|
|
|
tool="$rootdir/tools/scramble -add=h100"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
|
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
|
2005-07-08 06:31:13 +00:00
|
|
|
output="rockbox.iriver"
|
2009-10-24 22:56:00 +00:00
|
|
|
bootoutput="bootloader.iriver"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-02-09 15:06:09 +00:00
|
|
|
flash="$pwd/rombox.iriver"
|
2005-07-08 06:31:13 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$iriverbitmaptools
|
2006-10-29 10:26:41 +00:00
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iriver"
|
|
|
|
t_model="h100"
|
2005-07-08 06:31:13 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
13|iriverifp7xx)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=19
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverifp7xx"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIRIVER_IFP7XX"
|
|
|
|
memory=1
|
|
|
|
arm7tdmicc short
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
output="rockbox.wma"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$genericbitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="pnx0101"
|
|
|
|
t_model="iriver-ifp7xx"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
14|iriverh10)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=22
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverh10"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIRIVER_H10"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBOS"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2007-10-12 00:28:57 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
2007-07-26 22:42:31 +00:00
|
|
|
output="rockbox.mi4"
|
2005-10-28 00:00:00 +00:00
|
|
|
appextra="recorder:gui"
|
2005-07-15 21:24:10 +00:00
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2007-07-26 22:42:31 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=h10 -type=RBBL"
|
|
|
|
bootoutput="H10_20GC.mi4"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2006-03-07 12:45:45 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
2007-07-26 22:42:31 +00:00
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="iriver"
|
|
|
|
t_model="h10"
|
2005-07-15 21:24:10 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
15|iriverh10_5gb)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=24
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iriverh10_5gb"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIRIVER_H10_5GB"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBOS"
|
2007-03-04 14:09:21 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2007-07-26 22:42:31 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
|
|
|
output="rockbox.mi4"
|
2007-03-04 14:09:21 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2007-07-26 22:42:31 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4v2 -model=h105 -type=RBBL"
|
|
|
|
bootoutput="H10.mi4"
|
2007-03-04 14:09:21 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2007-03-04 14:09:21 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
2007-07-26 22:42:31 +00:00
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="iriver"
|
|
|
|
t_model="h10"
|
2007-03-04 14:09:21 +00:00
|
|
|
;;
|
|
|
|
|
2006-08-30 21:53:26 +00:00
|
|
|
20|ipodcolor)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=13
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipodcolor"
|
2005-11-08 00:52:39 +00:00
|
|
|
target="-DIPOD_COLOR"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=ipco"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
2005-11-08 00:52:39 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="color"
|
2005-11-08 00:52:39 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
21|ipodnano1g)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=14
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="ipodnano1g"
|
2005-11-08 00:52:39 +00:00
|
|
|
target="-DIPOD_NANO"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=nano"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
2005-11-08 00:52:39 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2005-12-02 08:56:20 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="nano"
|
2005-11-08 00:52:39 +00:00
|
|
|
;;
|
|
|
|
|
2006-08-30 21:53:26 +00:00
|
|
|
22|ipodvideo)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=15
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipodvideo"
|
2005-12-18 13:04:00 +00:00
|
|
|
target="-DIPOD_VIDEO"
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=ipvd"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2005-12-18 13:04:00 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2005-12-18 13:04:00 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="video"
|
2005-12-18 13:04:00 +00:00
|
|
|
;;
|
|
|
|
|
2006-08-30 21:53:26 +00:00
|
|
|
23|ipod3g)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=16
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipod3g"
|
2006-02-05 18:30:50 +00:00
|
|
|
target="-DIPOD_3G"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=ip3g"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2006-02-16 20:03:07 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
2006-02-05 18:30:50 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2006-02-05 18:30:50 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="3g"
|
2006-02-05 18:30:50 +00:00
|
|
|
;;
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2006-08-30 21:53:26 +00:00
|
|
|
24|ipod4g)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=17
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipod4g"
|
2006-02-05 18:30:50 +00:00
|
|
|
target="-DIPOD_4G"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=ip4g"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2006-02-16 20:03:07 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
2006-02-05 18:30:50 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2006-02-05 18:30:50 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="4g"
|
2006-02-05 18:30:50 +00:00
|
|
|
;;
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
25|ipodmini1g)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=18
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="ipodmini1g"
|
2006-02-21 15:01:25 +00:00
|
|
|
target="-DIPOD_MINI"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=mini"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2006-02-21 15:01:25 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="mini"
|
2006-02-21 15:01:25 +00:00
|
|
|
;;
|
2007-01-13 02:24:15 +00:00
|
|
|
|
2007-07-26 22:42:31 +00:00
|
|
|
26|ipodmini2g)
|
|
|
|
target_id=21
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipodmini2g"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIPOD_MINI2G"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=mn2g"
|
2006-01-22 21:30:32 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2007-07-26 22:42:31 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
|
|
|
output="rockbox.ipod"
|
2006-01-12 00:35:50 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2006-01-24 22:33:49 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2007-07-26 22:42:31 +00:00
|
|
|
toolset=$ipodbitmaptools
|
2006-08-12 08:01:54 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
2007-07-26 22:42:31 +00:00
|
|
|
t_manufacturer="ipod"
|
|
|
|
t_model="mini2g"
|
2006-02-24 15:42:52 +00:00
|
|
|
;;
|
|
|
|
|
2007-07-26 22:42:31 +00:00
|
|
|
27|ipod1g2g)
|
|
|
|
target_id=29
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="ipod1g2g"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIPOD_1G2G"
|
2006-03-30 17:29:21 +00:00
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
2007-07-26 22:42:31 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=1g2g"
|
2006-03-30 17:29:21 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 6"
|
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2008-01-23 10:59:17 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2006-03-30 17:29:21 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
2006-10-05 10:58:51 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="ipod"
|
2007-07-26 22:42:31 +00:00
|
|
|
t_model="1g2g"
|
2006-03-30 17:29:21 +00:00
|
|
|
;;
|
|
|
|
|
2009-07-12 22:16:51 +00:00
|
|
|
28|ipodnano2g)
|
|
|
|
target_id=62
|
|
|
|
modelname="ipodnano2g"
|
|
|
|
target="-DIPOD_NANO2G"
|
|
|
|
memory=32 # always
|
|
|
|
arm940tcc
|
|
|
|
tool="$rootdir/tools/scramble -add=nn2g"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2009-07-16 00:38:50 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2009-07-12 22:16:51 +00:00
|
|
|
output="rockbox.ipod"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
2009-10-11 01:37:12 +00:00
|
|
|
bootoutput="bootloader-$modelname.ipod"
|
2009-07-12 22:16:51 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$ipodbitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s5l8700"
|
|
|
|
t_model="ipodnano2g"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
30|iaudiox5)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=12
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iaudiox5"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIAUDIO_X5"
|
|
|
|
memory=16 # always
|
|
|
|
coldfirecc
|
|
|
|
tool="$rootdir/tools/scramble -add=iax5"
|
2006-08-01 22:22:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2006-09-09 19:02:18 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2007-07-26 22:42:31 +00:00
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
|
|
|
|
output="rockbox.iaudio"
|
2006-08-01 22:22:01 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2006-08-01 22:22:01 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2007-07-26 22:42:31 +00:00
|
|
|
toolset="$iaudiobitmaptools"
|
2006-08-01 22:22:01 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
2007-07-26 22:42:31 +00:00
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iaudio"
|
|
|
|
t_model="x5"
|
2006-08-01 22:22:01 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
31|iaudiom5)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=28
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iaudiom5"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DIAUDIO_M5"
|
|
|
|
memory=16 # always
|
|
|
|
coldfirecc
|
|
|
|
tool="$rootdir/tools/scramble -add=iam5"
|
2007-03-16 14:28:00 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2007-07-26 22:42:31 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
|
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 7"
|
|
|
|
output="rockbox.iaudio"
|
2007-03-16 14:28:00 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2007-03-16 14:28:00 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2007-07-26 22:42:31 +00:00
|
|
|
toolset="$iaudiobitmaptools"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iaudio"
|
|
|
|
t_model="m5"
|
|
|
|
;;
|
|
|
|
|
2008-03-10 00:27:00 +00:00
|
|
|
32|iaudio7)
|
|
|
|
target_id=32
|
|
|
|
modelname="iaudio7"
|
|
|
|
target="-DIAUDIO_7"
|
|
|
|
memory=16 # always
|
|
|
|
arm946cc
|
2008-09-06 17:50:59 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=i7"
|
2008-03-10 00:27:00 +00:00
|
|
|
boottool="$rootdir/tools/scramble -tcc=crc"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2008-09-16 08:09:44 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-03-10 00:27:00 +00:00
|
|
|
output="rockbox.iaudio"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
bootoutput="I7_FW.BIN"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset="$tccbitmaptools"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tcc77x"
|
|
|
|
t_model="iaudio7"
|
|
|
|
;;
|
|
|
|
|
|
|
|
33|cowond2)
|
|
|
|
target_id=34
|
|
|
|
modelname="cowond2"
|
|
|
|
target="-DCOWON_D2"
|
|
|
|
memory=32
|
|
|
|
arm926ejscc
|
|
|
|
tool="$rootdir/tools/scramble -add=d2"
|
2009-10-29 22:08:47 +00:00
|
|
|
boottool="cp "
|
2008-03-10 00:27:00 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-11-17 21:16:07 +00:00
|
|
|
output="rockbox.d2"
|
2009-10-29 22:08:47 +00:00
|
|
|
bootoutput="bootloader-cowond2.bin"
|
2008-03-10 00:27:00 +00:00
|
|
|
appextra="recorder:gui"
|
2008-03-22 22:03:34 +00:00
|
|
|
plugins="yes"
|
2008-03-10 00:27:00 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset="$tccbitmaptools"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tcc780x"
|
|
|
|
t_model="cowond2"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
34|iaudiom3)
|
2008-03-10 00:27:00 +00:00
|
|
|
target_id=37
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="iaudiom3"
|
2008-03-10 00:27:00 +00:00
|
|
|
target="-DIAUDIO_M3"
|
|
|
|
memory=16 # always
|
|
|
|
coldfirecc
|
|
|
|
tool="$rootdir/tools/scramble -add=iam3"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 7"
|
|
|
|
output="rockbox.iaudio"
|
|
|
|
appextra="recorder:gui"
|
2008-03-23 01:01:21 +00:00
|
|
|
plugins="yes"
|
2008-03-10 00:27:00 +00:00
|
|
|
swcodec="yes"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset="$iaudiobitmaptools"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="coldfire"
|
|
|
|
t_manufacturer="iaudio"
|
|
|
|
t_model="m3"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
40|gigabeatfx)
|
2007-07-26 22:42:31 +00:00
|
|
|
target_id=20
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="gigabeatfx"
|
2007-07-26 22:42:31 +00:00
|
|
|
target="-DGIGABEAT_F"
|
|
|
|
memory=32 # always
|
|
|
|
arm9tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=giga"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.gigabeat"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$gigabeatbitmaptools
|
|
|
|
boottool="$rootdir/tools/scramble -gigabeat"
|
|
|
|
bootoutput="FWIMG01.DAT"
|
2007-03-16 14:28:00 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
2007-07-26 22:42:31 +00:00
|
|
|
t_manufacturer="s3c2440"
|
|
|
|
t_model="gigabeat-fx"
|
2007-03-16 14:28:00 +00:00
|
|
|
;;
|
|
|
|
|
2007-09-21 15:51:53 +00:00
|
|
|
41|gigabeats)
|
|
|
|
target_id=26
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="gigabeats"
|
2007-09-21 15:51:53 +00:00
|
|
|
target="-DGIGABEAT_S"
|
2008-02-08 02:20:05 +00:00
|
|
|
memory=64
|
2008-02-10 17:40:06 +00:00
|
|
|
arm1136jfscc
|
2007-09-21 15:51:53 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=gigs"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.gigabeat"
|
|
|
|
appextra="recorder:gui"
|
2008-02-17 12:23:02 +00:00
|
|
|
plugins="yes"
|
2007-09-22 02:17:08 +00:00
|
|
|
swcodec="yes"
|
2009-10-27 21:15:21 +00:00
|
|
|
toolset="$gigabeatbitmaptools"
|
2007-09-21 15:51:53 +00:00
|
|
|
boottool="$rootdir/tools/scramble -gigabeats"
|
|
|
|
bootoutput="nk.bin"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="imx31"
|
|
|
|
t_model="gigabeat-s"
|
|
|
|
;;
|
|
|
|
|
2007-09-20 04:46:41 +00:00
|
|
|
70|mrobe500)
|
2008-03-10 00:27:00 +00:00
|
|
|
target_id=36
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="mrobe500"
|
2007-09-20 04:46:41 +00:00
|
|
|
target="-DMROBE_500"
|
|
|
|
memory=64 # always
|
2007-11-13 04:09:25 +00:00
|
|
|
arm926ejscc
|
2009-02-26 21:24:40 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=m500"
|
2007-09-20 04:46:41 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2009-10-09 14:04:28 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 8"
|
2009-04-11 07:23:56 +00:00
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
|
2007-09-20 04:46:41 +00:00
|
|
|
output="rockbox.mrobe500"
|
|
|
|
appextra="recorder:gui"
|
2007-10-21 23:12:17 +00:00
|
|
|
plugins="yes"
|
2007-09-20 04:46:41 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$gigabeatbitmaptools
|
|
|
|
boottool="cp "
|
|
|
|
bootoutput="rockbox.mrboot"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
2007-09-30 08:57:49 +00:00
|
|
|
t_manufacturer="tms320dm320"
|
2007-09-20 04:46:41 +00:00
|
|
|
t_model="mrobe-500"
|
|
|
|
;;
|
|
|
|
|
2008-01-09 20:07:42 +00:00
|
|
|
71|mrobe100)
|
|
|
|
target_id=33
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="mrobe100"
|
2008-01-09 07:24:43 +00:00
|
|
|
target="-DMROBE_100"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
2009-07-26 14:26:14 +00:00
|
|
|
bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0"
|
2008-01-09 07:24:43 +00:00
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2008-01-11 21:48:01 +00:00
|
|
|
plugins="yes"
|
2008-01-09 07:24:43 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v2 -model=m100 -type=RBBL"
|
|
|
|
bootoutput="pp5020.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2008-01-09 07:24:43 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="olympus"
|
|
|
|
t_model="mrobe-100"
|
|
|
|
;;
|
|
|
|
|
2007-10-28 11:08:10 +00:00
|
|
|
80|logikdax)
|
|
|
|
target_id=31
|
2008-01-23 10:59:17 +00:00
|
|
|
modelname="logikdax"
|
2007-10-28 11:08:10 +00:00
|
|
|
target="-DLOGIK_DAX"
|
|
|
|
memory=2 # always
|
|
|
|
arm946cc
|
|
|
|
tool="$rootdir/tools/scramble -add=ldax"
|
|
|
|
boottool="$rootdir/tools/scramble -tcc=crc"
|
|
|
|
bootoutput="player.rom"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
output="rockbox.logik"
|
|
|
|
appextra="recorder:gui"
|
2008-03-14 09:22:30 +00:00
|
|
|
plugins=""
|
2007-10-28 11:08:10 +00:00
|
|
|
swcodec="yes"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$tccbitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tcc77x"
|
|
|
|
t_model="logikdax"
|
|
|
|
;;
|
2008-02-18 19:08:29 +00:00
|
|
|
|
2009-12-07 13:40:08 +00:00
|
|
|
90|zenvisionm30gb)
|
2008-02-18 19:08:29 +00:00
|
|
|
target_id=35
|
2009-12-07 13:40:08 +00:00
|
|
|
modelname="zenvisionm30gb"
|
2008-02-18 19:08:29 +00:00
|
|
|
target="-DCREATIVE_ZVM"
|
2008-04-09 11:53:28 +00:00
|
|
|
memory=64
|
2008-02-18 21:21:22 +00:00
|
|
|
arm926ejscc
|
2008-02-18 19:08:29 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-04-24 20:08:28 +00:00
|
|
|
tool="$rootdir/tools/scramble -creative=zvm"
|
2008-05-17 14:20:09 +00:00
|
|
|
USE_ELF="yes"
|
2008-02-18 19:08:29 +00:00
|
|
|
output="rockbox.zvm"
|
|
|
|
appextra="recorder:gui"
|
2008-12-04 21:28:56 +00:00
|
|
|
plugins="yes"
|
2008-02-18 19:08:29 +00:00
|
|
|
swcodec="yes"
|
2008-04-24 20:08:28 +00:00
|
|
|
toolset=$ipodbitmaptools
|
2008-08-03 19:32:14 +00:00
|
|
|
boottool="$rootdir/tools/scramble -creative=zvm -no-ciff"
|
2008-02-18 19:08:29 +00:00
|
|
|
bootoutput="rockbox.zvmboot"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tms320dm320"
|
|
|
|
t_model="creative-zvm"
|
|
|
|
;;
|
2008-05-12 21:28:13 +00:00
|
|
|
|
2009-12-07 13:40:08 +00:00
|
|
|
91|zenvisionm60gb)
|
2008-05-14 13:51:47 +00:00
|
|
|
target_id=40
|
2009-12-07 13:40:08 +00:00
|
|
|
modelname="zenvisionm60gb"
|
2008-05-14 18:55:19 +00:00
|
|
|
target="-DCREATIVE_ZVM60GB"
|
2008-05-14 13:51:47 +00:00
|
|
|
memory=64
|
|
|
|
arm926ejscc
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-08-03 19:32:14 +00:00
|
|
|
tool="$rootdir/tools/scramble -creative=zvm60 -no-ciff"
|
2008-05-17 14:20:09 +00:00
|
|
|
USE_ELF="yes"
|
2008-05-14 13:51:47 +00:00
|
|
|
output="rockbox.zvm60"
|
|
|
|
appextra="recorder:gui"
|
2008-12-04 21:28:56 +00:00
|
|
|
plugins="yes"
|
2008-05-14 13:51:47 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$ipodbitmaptools
|
|
|
|
boottool="$rootdir/tools/scramble -creative=zvm60"
|
|
|
|
bootoutput="rockbox.zvm60boot"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tms320dm320"
|
|
|
|
t_model="creative-zvm"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 13:40:08 +00:00
|
|
|
92|zenvision)
|
2008-05-12 21:37:11 +00:00
|
|
|
target_id=39
|
2009-12-07 13:40:08 +00:00
|
|
|
modelname="zenvision"
|
2008-05-14 18:55:19 +00:00
|
|
|
target="-DCREATIVE_ZV"
|
2008-05-12 21:28:13 +00:00
|
|
|
memory=64
|
|
|
|
arm926ejscc
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-08-03 19:32:14 +00:00
|
|
|
tool="$rootdir/tools/scramble -creative=zenvision -no-ciff"
|
2008-05-17 14:20:09 +00:00
|
|
|
USE_ELF="yes"
|
2008-05-12 21:28:13 +00:00
|
|
|
output="rockbox.zv"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$ipodbitmaptools
|
|
|
|
boottool="$rootdir/tools/scramble -creative=zenvision"
|
2008-05-14 21:25:52 +00:00
|
|
|
bootoutput="rockbox.zvboot"
|
2008-05-12 21:28:13 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tms320dm320"
|
|
|
|
t_model="creative-zvm"
|
|
|
|
;;
|
2007-10-28 11:08:10 +00:00
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
50|sansae200)
|
2006-08-28 08:46:16 +00:00
|
|
|
target_id=23
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansae200"
|
2006-08-01 22:22:01 +00:00
|
|
|
target="-DSANSA_E200"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
2007-04-12 21:07:35 +00:00
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBOS"
|
2006-08-01 22:22:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2006-11-21 22:26:10 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2007-04-12 21:07:35 +00:00
|
|
|
output="rockbox.mi4"
|
2006-08-01 22:22:01 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2007-03-16 14:28:00 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=e200 -type=RBBL"
|
2006-08-31 09:39:54 +00:00
|
|
|
bootoutput="PP5022.mi4"
|
2006-08-01 22:22:01 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2006-08-01 22:22:01 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="sandisk"
|
|
|
|
t_model="sansa-e200"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
51|sansae200r)
|
2007-02-23 22:57:01 +00:00
|
|
|
# the e200R model is pretty much identical to the e200, it only has a
|
|
|
|
# different option to the scramble tool when building a bootloader and
|
|
|
|
# makes the bootloader output file name in all lower case.
|
|
|
|
target_id=27
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansae200r"
|
2007-02-23 22:57:01 +00:00
|
|
|
target="-DSANSA_E200"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
2007-04-12 21:07:35 +00:00
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=e20r -type=RBOS"
|
2007-02-23 22:57:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2007-04-12 21:07:35 +00:00
|
|
|
output="rockbox.mi4"
|
2007-02-23 22:57:01 +00:00
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2007-03-16 14:28:00 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4r -model=e20r -type=RBBL"
|
2007-02-23 22:57:01 +00:00
|
|
|
bootoutput="pp5022.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2007-02-23 22:57:01 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="sandisk"
|
|
|
|
t_model="sansa-e200"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
52|sansac200)
|
2007-09-06 03:28:58 +00:00
|
|
|
target_id=30
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansac200"
|
2007-09-06 03:28:58 +00:00
|
|
|
target="-DSANSA_C200"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2007-09-21 16:10:56 +00:00
|
|
|
plugins="yes"
|
2007-09-06 03:28:58 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=c200 -type=RBBL"
|
|
|
|
bootoutput="firmware.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2007-09-06 03:28:58 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="sandisk"
|
|
|
|
t_model="sansa-c200"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
53|sansam200)
|
2008-10-02 17:53:35 +00:00
|
|
|
target_id=48
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansam200"
|
2008-05-02 19:12:09 +00:00
|
|
|
target="-DSANSA_M200"
|
2008-10-12 21:14:08 +00:00
|
|
|
memory=1 # always
|
2008-05-02 19:12:09 +00:00
|
|
|
arm946cc
|
|
|
|
tool="$rootdir/tools/scramble -add=m200"
|
|
|
|
boottool="$rootdir/tools/scramble -tcc=crc"
|
|
|
|
bootoutput="player.rom"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
output="rockbox.m200"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$tccbitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tcc77x"
|
|
|
|
t_model="m200"
|
|
|
|
;;
|
2008-06-21 15:18:36 +00:00
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
54|sansac100)
|
2008-06-21 15:18:36 +00:00
|
|
|
target_id=42
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansac100"
|
2008-09-23 20:59:47 +00:00
|
|
|
target="-DSANSA_C100"
|
2009-06-01 12:37:25 +00:00
|
|
|
memory=2
|
2008-09-23 20:59:47 +00:00
|
|
|
arm946cc
|
|
|
|
tool="$rootdir/tools/scramble -add=c100"
|
|
|
|
boottool="$rootdir/tools/scramble -tcc=crc"
|
2008-06-21 15:18:36 +00:00
|
|
|
bootoutput="player.rom"
|
2008-09-23 20:59:47 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.c100"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
2009-06-01 12:37:25 +00:00
|
|
|
swcodec="yes"
|
2008-09-23 20:59:47 +00:00
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-06-21 15:18:36 +00:00
|
|
|
toolset=$tccbitmaptools
|
2008-09-23 20:59:47 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
2008-06-21 15:18:36 +00:00
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tcc77x"
|
|
|
|
t_model="c100"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
55|sansaclip)
|
2008-10-12 16:46:01 +00:00
|
|
|
target_id=50
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansaclip"
|
2008-10-12 16:46:01 +00:00
|
|
|
target="-DSANSA_CLIP"
|
2008-10-28 11:24:29 +00:00
|
|
|
memory=2
|
2008-10-12 16:46:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$bmp2rb_mono"
|
2008-10-12 19:34:47 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=clip"
|
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-clip.sansa"
|
2008-10-12 16:46:01 +00:00
|
|
|
appextra="recorder:gui"
|
2008-11-28 00:37:28 +00:00
|
|
|
plugins="yes"
|
2008-10-31 18:54:37 +00:00
|
|
|
swcodec="yes"
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2008-10-12 16:46:01 +00:00
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
2008-10-12 18:07:23 +00:00
|
|
|
t_model="sansa-clip"
|
2009-06-08 23:05:33 +00:00
|
|
|
arm9tdmicc
|
2008-10-12 16:46:01 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
56|sansae200v2)
|
2008-10-19 14:11:01 +00:00
|
|
|
target_id=51
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansae200v2"
|
2008-10-19 14:11:01 +00:00
|
|
|
target="-DSANSA_E200V2"
|
2008-10-28 11:24:29 +00:00
|
|
|
memory=8
|
2008-10-19 14:11:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
2008-10-28 17:49:35 +00:00
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-10-19 14:11:01 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=e2v2"
|
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-e200v2.sansa"
|
|
|
|
appextra="recorder:gui"
|
2008-10-28 17:49:35 +00:00
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
2008-10-19 14:11:01 +00:00
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
2008-10-28 16:49:59 +00:00
|
|
|
t_model="sansa-e200v2"
|
2009-06-08 23:05:33 +00:00
|
|
|
arm9tdmicc
|
2008-10-19 14:11:01 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
57|sansam200v4)
|
2008-10-19 14:11:01 +00:00
|
|
|
target_id=52
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansam200v4"
|
2008-11-10 09:27:40 +00:00
|
|
|
target="-DSANSA_M200V4"
|
2008-10-28 11:24:29 +00:00
|
|
|
memory=2
|
2008-10-19 14:11:01 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$bmp2rb_mono"
|
2008-11-11 00:27:00 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=m2v4"
|
2008-10-19 14:11:01 +00:00
|
|
|
output="rockbox.sansa"
|
2008-11-10 09:27:40 +00:00
|
|
|
bootoutput="bootloader-m200v4.sansa"
|
2008-10-19 14:11:01 +00:00
|
|
|
appextra="recorder:gui"
|
2008-12-12 19:50:49 +00:00
|
|
|
plugins="yes"
|
2008-11-10 17:41:18 +00:00
|
|
|
swcodec="yes"
|
2008-10-19 14:11:01 +00:00
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
2008-11-10 09:27:40 +00:00
|
|
|
t_model="sansa-m200v4"
|
2009-06-08 23:05:33 +00:00
|
|
|
arm9tdmicc
|
2008-10-19 14:11:01 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
58|sansafuze)
|
2008-11-01 10:29:23 +00:00
|
|
|
target_id=53
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansafuze"
|
2008-11-01 10:29:23 +00:00
|
|
|
target="-DSANSA_FUZE"
|
2008-11-11 14:46:13 +00:00
|
|
|
memory=8
|
2008-11-01 10:29:23 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
2008-11-01 10:47:17 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=fuze"
|
2008-11-01 10:29:23 +00:00
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-fuze.sansa"
|
|
|
|
appextra="recorder:gui"
|
2009-01-04 23:33:15 +00:00
|
|
|
plugins="yes"
|
2008-11-01 10:29:23 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
|
|
|
t_model="sansa-fuze"
|
2009-06-08 23:05:33 +00:00
|
|
|
arm9tdmicc
|
2008-11-01 10:29:23 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
59|sansac200v2)
|
2008-12-24 04:10:18 +00:00
|
|
|
target_id=55
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansac200v2"
|
2008-12-24 04:10:18 +00:00
|
|
|
target="-DSANSA_C200V2"
|
|
|
|
memory=2 # as per OF diagnosis mode
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
tool="$rootdir/tools/scramble -add=c2v2"
|
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-c200v2.sansa"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
|
|
|
t_model="sansa-c200v2"
|
2009-06-08 23:05:33 +00:00
|
|
|
arm9tdmicc
|
2008-12-24 04:10:18 +00:00
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
60|sansaclipv2)
|
2009-05-28 16:22:08 +00:00
|
|
|
target_id=60
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansaclipv2"
|
2009-05-28 16:22:08 +00:00
|
|
|
target="-DSANSA_CLIPV2"
|
|
|
|
memory=8
|
|
|
|
arm926ejscc
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$bmp2rb_mono"
|
|
|
|
tool="$rootdir/tools/scramble -add=clv2"
|
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-clipv2.sansa"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
|
|
|
t_model="sansa-clipv2"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
61|sansaview)
|
2009-08-12 20:57:38 +00:00
|
|
|
echo "Sansa View is not yet supported!"
|
2009-07-13 21:09:39 +00:00
|
|
|
exit 1
|
|
|
|
target_id=63
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="sansaview"
|
2009-07-13 21:09:39 +00:00
|
|
|
target="-DSANSA_VIEW"
|
|
|
|
memory=32
|
|
|
|
arm1176jzscc
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=view -type=RBBL"
|
|
|
|
bootoutput="firmware.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="sandisk"
|
|
|
|
t_model="sansa-view"
|
|
|
|
;;
|
|
|
|
|
2010-01-13 03:05:29 +00:00
|
|
|
62|sansaclipplus)
|
|
|
|
target_id=66
|
|
|
|
modelname="sansaclipplus"
|
|
|
|
target="-DSANSA_CLIPPLUS"
|
|
|
|
memory=8
|
|
|
|
arm926ejscc
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$bmp2rb_mono"
|
|
|
|
tool="$rootdir/tools/scramble -add=cli+"
|
|
|
|
output="rockbox.sansa"
|
|
|
|
bootoutput="bootloader-clipplus.sansa"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="as3525"
|
|
|
|
t_model="sansa-clipplus"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
150|tatungtpj1022)
|
2006-08-31 20:46:11 +00:00
|
|
|
target_id=25
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="tatungtpj1022"
|
|
|
|
target="-DTATUNG_TPJ1022"
|
2006-08-31 19:19:35 +00:00
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add tpj2"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
|
|
|
output="rockbox.elio"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="yes"
|
2007-07-16 22:25:41 +00:00
|
|
|
swcodec="yes"
|
2006-08-31 19:19:35 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4v2"
|
|
|
|
bootoutput="pp5020.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2006-08-31 19:19:35 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="tatung"
|
|
|
|
t_model="tpj1022"
|
|
|
|
;;
|
2007-10-28 11:08:10 +00:00
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
100|gogearsa9200)
|
2008-05-21 03:55:17 +00:00
|
|
|
target_id=41
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="gogearsa9200"
|
2008-05-21 03:55:17 +00:00
|
|
|
target="-DPHILIPS_SA9200"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=9200 -type=RBBL"
|
|
|
|
bootoutput="FWImage.ebn"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2008-05-21 03:55:17 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="philips"
|
|
|
|
t_model="sa9200"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
101|gogearhdd1630)
|
2008-06-27 18:40:25 +00:00
|
|
|
target_id=43
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="gogearhdd1630"
|
2008-06-27 18:40:25 +00:00
|
|
|
target="-DPHILIPS_HDD1630"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2009-01-24 22:41:55 +00:00
|
|
|
plugins="yes"
|
2008-06-27 18:40:25 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=1630 -type=RBBL"
|
|
|
|
bootoutput="FWImage.ebn"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
2008-10-12 19:34:47 +00:00
|
|
|
toolset=$scramblebitmaptools
|
2008-06-27 18:40:25 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="philips"
|
|
|
|
t_model="hdd1630"
|
|
|
|
;;
|
|
|
|
|
2009-12-25 04:05:01 +00:00
|
|
|
102|gogearhdd6330)
|
|
|
|
target_id=65
|
|
|
|
modelname="gogearhdd6330"
|
|
|
|
target="-DPHILIPS_HDD6330"
|
|
|
|
memory=32 # supposedly
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=6330 -type=RBBL"
|
|
|
|
bootoutput="FWImage.ebn"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="philips"
|
|
|
|
t_model="hdd6330"
|
|
|
|
;;
|
|
|
|
|
2008-06-27 23:24:34 +00:00
|
|
|
110|meizum6sl)
|
2008-10-02 17:53:35 +00:00
|
|
|
target_id=49
|
2008-06-27 23:24:34 +00:00
|
|
|
modelname="meizum6sl"
|
|
|
|
target="-DMEIZU_M6SL"
|
|
|
|
memory=16 # always
|
|
|
|
arm940tbecc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.meizu"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="no" #FIXME
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="rockboot.ebn"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s5l8700"
|
|
|
|
t_model="meizu-m6sl"
|
|
|
|
;;
|
2008-07-14 15:03:10 +00:00
|
|
|
|
2008-09-17 23:22:11 +00:00
|
|
|
111|meizum6sp)
|
|
|
|
target_id=46
|
|
|
|
modelname="meizum6sp"
|
|
|
|
target="-DMEIZU_M6SP"
|
|
|
|
memory=16 # always
|
|
|
|
arm940tbecc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.meizu"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="no" #FIXME
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="rockboot.ebn"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s5l8700"
|
|
|
|
t_model="meizu-m6sp"
|
|
|
|
;;
|
|
|
|
|
|
|
|
112|meizum3)
|
|
|
|
target_id=47
|
|
|
|
modelname="meizum3"
|
|
|
|
target="-DMEIZU_M3"
|
|
|
|
memory=16 # always
|
|
|
|
arm940tbecc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.meizu"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="no" #FIXME
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="rockboot.ebn"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s5l8700"
|
|
|
|
t_model="meizu-m3"
|
|
|
|
;;
|
|
|
|
|
2008-07-14 15:03:10 +00:00
|
|
|
120|ondavx747)
|
2009-08-16 21:03:22 +00:00
|
|
|
target_id=45
|
2008-07-14 15:03:10 +00:00
|
|
|
modelname="ondavx747"
|
|
|
|
target="-DONDA_VX747"
|
2009-02-09 10:02:38 +00:00
|
|
|
memory=16
|
2008-07-14 15:03:10 +00:00
|
|
|
mipselcc
|
2009-02-09 10:02:38 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=x747"
|
2008-07-14 15:03:10 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.vx747"
|
|
|
|
appextra="recorder:gui"
|
2009-04-07 23:54:25 +00:00
|
|
|
plugins="yes"
|
2008-07-14 15:03:10 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
2009-07-17 14:30:42 +00:00
|
|
|
boottool="$rootdir/tools/scramble -ccpmp"
|
|
|
|
bootoutput="ccpmp.bin"
|
2008-07-14 15:03:10 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="mips"
|
|
|
|
t_manufacturer="ingenic_jz47xx"
|
|
|
|
t_model="onda_vx747"
|
|
|
|
;;
|
2008-09-05 15:09:40 +00:00
|
|
|
|
|
|
|
121|ondavx767)
|
2009-08-16 21:03:22 +00:00
|
|
|
target_id=64
|
2008-09-05 15:09:40 +00:00
|
|
|
modelname="ondavx767"
|
|
|
|
target="-DONDA_VX767"
|
|
|
|
memory=16 #FIXME
|
|
|
|
mipselcc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.vx767"
|
|
|
|
appextra="recorder:gui"
|
2009-02-09 10:02:38 +00:00
|
|
|
plugins="" #FIXME
|
2008-09-05 15:09:40 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
2009-07-17 14:30:42 +00:00
|
|
|
boottool="$rootdir/tools/scramble -ccpmp"
|
|
|
|
bootoutput="ccpmp.bin"
|
2008-09-05 15:09:40 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="mips"
|
|
|
|
t_manufacturer="ingenic_jz47xx"
|
|
|
|
t_model="onda_vx767"
|
|
|
|
;;
|
2008-12-19 11:13:58 +00:00
|
|
|
|
|
|
|
122|ondavx747p)
|
|
|
|
target_id=54
|
|
|
|
modelname="ondavx747p"
|
|
|
|
target="-DONDA_VX747P"
|
2009-06-20 10:54:13 +00:00
|
|
|
memory=16
|
2008-12-19 11:13:58 +00:00
|
|
|
mipselcc
|
2009-06-20 10:54:13 +00:00
|
|
|
tool="$rootdir/tools/scramble -add=747p"
|
2008-12-19 11:13:58 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.vx747p"
|
|
|
|
appextra="recorder:gui"
|
2009-06-20 10:54:13 +00:00
|
|
|
plugins="yes"
|
2008-12-19 11:13:58 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
2009-07-17 14:30:42 +00:00
|
|
|
boottool="$rootdir/tools/scramble -ccpmp"
|
|
|
|
bootoutput="ccpmp.bin"
|
2008-12-19 11:13:58 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="mips"
|
|
|
|
t_manufacturer="ingenic_jz47xx"
|
|
|
|
t_model="onda_vx747"
|
|
|
|
;;
|
2009-03-30 12:20:47 +00:00
|
|
|
|
2009-06-20 10:54:13 +00:00
|
|
|
123|ondavx777)
|
|
|
|
target_id=61
|
|
|
|
modelname="ondavx777"
|
|
|
|
target="-DONDA_VX777"
|
|
|
|
memory=16
|
|
|
|
mipselcc
|
|
|
|
tool="$rootdir/tools/scramble -add=x777"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.vx777"
|
|
|
|
appextra="recorder:gui"
|
2009-08-31 21:11:32 +00:00
|
|
|
plugins="yes"
|
2009-06-20 10:54:13 +00:00
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
2009-07-17 14:30:42 +00:00
|
|
|
boottool="$rootdir/tools/scramble -ccpmp"
|
|
|
|
bootoutput="ccpmp.bin"
|
2009-06-20 10:54:13 +00:00
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="mips"
|
|
|
|
t_manufacturer="ingenic_jz47xx"
|
|
|
|
t_model="onda_vx747"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
130|lyreproto1)
|
2009-03-30 12:20:47 +00:00
|
|
|
target_id=56
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="lyreproto1"
|
2009-03-30 12:20:47 +00:00
|
|
|
target="-DLYRE_PROTO1"
|
|
|
|
memory=64
|
|
|
|
arm926ejscc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.lyre"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="bootloader-proto1.lyre"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="at91sam"
|
|
|
|
t_model="lyre_proto1"
|
|
|
|
;;
|
2009-10-19 18:14:27 +00:00
|
|
|
|
|
|
|
131|mini2440)
|
|
|
|
target_id=99
|
|
|
|
modelname="mini2440"
|
|
|
|
target="-DMINI2440"
|
|
|
|
memory=64
|
|
|
|
arm9tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -add=m244"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mini2440"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins=""
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="bootloader-mini2440.lyre"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s3c2440"
|
|
|
|
t_model="mini2440"
|
|
|
|
;;
|
2008-12-19 11:13:58 +00:00
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
140|samsungyh820)
|
2009-05-25 21:10:45 +00:00
|
|
|
target_id=57
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="samsungyh820"
|
2009-05-25 21:10:45 +00:00
|
|
|
target="-DSAMSUNG_YH820"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2009-08-04 03:08:32 +00:00
|
|
|
plugins="yes"
|
2009-05-25 21:10:45 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v2 -model=y820 -type=RBBL"
|
|
|
|
bootoutput="FW_YH820.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="samsung"
|
|
|
|
t_model="yh820"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
141|samsungyh920)
|
2009-05-25 21:10:45 +00:00
|
|
|
target_id=58
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="samsungyh920"
|
2009-05-25 21:10:45 +00:00
|
|
|
target="-DSAMSUNG_YH920"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 2"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2009-08-04 03:08:32 +00:00
|
|
|
plugins="yes"
|
2009-05-25 21:10:45 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v2 -model=y920 -type=RBBL"
|
|
|
|
bootoutput="PP5020.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="samsung"
|
|
|
|
t_model="yh920"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
142|samsungyh925)
|
2009-05-25 21:10:45 +00:00
|
|
|
target_id=59
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="samsungyh925"
|
2009-05-25 21:10:45 +00:00
|
|
|
target="-DSAMSUNG_YH925"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
|
|
|
tool="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBOS"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2009-08-04 03:08:32 +00:00
|
|
|
plugins="yes"
|
2009-05-25 21:10:45 +00:00
|
|
|
swcodec="yes"
|
|
|
|
boottool="$rootdir/tools/scramble -mi4v2 -model=y925 -type=RBBL"
|
|
|
|
bootoutput="FW_YH925.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="samsung"
|
|
|
|
t_model="yh925"
|
|
|
|
;;
|
|
|
|
|
2009-12-07 12:19:08 +00:00
|
|
|
143|samsungyps3)
|
2009-07-29 20:42:02 +00:00
|
|
|
target_id=60
|
2009-12-07 12:19:08 +00:00
|
|
|
modelname="samsungyps3"
|
2009-07-29 20:42:02 +00:00
|
|
|
target="-DSAMSUNG_YPS3"
|
|
|
|
memory=16 # always
|
|
|
|
arm940tbecc
|
|
|
|
tool="cp"
|
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
|
|
|
|
output="rockbox.yps3"
|
|
|
|
appextra="recorder:gui"
|
|
|
|
plugins="no" #FIXME
|
|
|
|
swcodec="yes"
|
|
|
|
toolset=$genericbitmaptools
|
|
|
|
boottool="cp"
|
|
|
|
bootoutput="rockboot.ebn"
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="s5l8700"
|
|
|
|
t_model="yps3"
|
|
|
|
;;
|
|
|
|
|
2010-02-18 10:30:00 +00:00
|
|
|
160|vibe500)
|
2010-01-18 19:05:20 +00:00
|
|
|
target_id=67
|
2010-01-30 20:42:54 +00:00
|
|
|
modelname="vibe500"
|
2010-01-18 19:05:20 +00:00
|
|
|
target="-DPBELL_VIBE500"
|
|
|
|
memory=32 # always
|
|
|
|
arm7tdmicc
|
2010-01-30 21:11:18 +00:00
|
|
|
tool="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBOS"
|
2010-01-18 19:05:20 +00:00
|
|
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
|
|
|
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
|
|
|
|
output="jukebox.mi4"
|
|
|
|
appextra="recorder:gui"
|
2010-02-11 22:40:17 +00:00
|
|
|
plugins="yes"
|
2010-01-18 19:05:20 +00:00
|
|
|
swcodec="yes"
|
2010-01-30 21:11:18 +00:00
|
|
|
boottool="$rootdir/tools/scramble -mi4v3 -model=v500 -type=RBBL"
|
2010-01-18 19:05:20 +00:00
|
|
|
bootoutput="rockbox.mi4"
|
|
|
|
# toolset is the tools within the tools directory that we build for
|
|
|
|
# this particular target.
|
|
|
|
toolset=$scramblebitmaptools
|
|
|
|
# architecture, manufacturer and model for the target-tree build
|
|
|
|
t_cpu="arm"
|
|
|
|
t_manufacturer="pbell"
|
|
|
|
t_model="vibe500"
|
|
|
|
;;
|
2009-07-29 20:42:02 +00:00
|
|
|
|
2005-05-23 16:21:46 +00:00
|
|
|
*)
|
2006-08-30 21:53:26 +00:00
|
|
|
echo "Please select a supported target platform!"
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 7
|
2005-05-23 16:21:46 +00:00
|
|
|
;;
|
|
|
|
|
2002-05-23 09:11:35 +00:00
|
|
|
esac
|
2003-02-26 09:13:47 +00:00
|
|
|
|
2008-01-23 10:59:17 +00:00
|
|
|
echo "Platform set to $modelname"
|
2003-02-26 09:13:47 +00:00
|
|
|
|
2005-05-30 13:00:43 +00:00
|
|
|
|
2007-03-03 00:36:54 +00:00
|
|
|
#remove start
|
2005-05-30 13:00:43 +00:00
|
|
|
############################################################################
|
2007-05-19 14:35:11 +00:00
|
|
|
# Amount of memory, for those that can differ. They have $memory unset at
|
|
|
|
# this point.
|
2005-05-30 13:00:43 +00:00
|
|
|
#
|
2003-02-26 09:13:47 +00:00
|
|
|
|
2007-05-19 14:35:11 +00:00
|
|
|
if [ -z "$memory" ]; then
|
2008-04-02 21:28:15 +00:00
|
|
|
case $target_id in
|
|
|
|
15)
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_RAM" ]; then
|
|
|
|
size=$ARG_RAM
|
2008-04-02 21:28:15 +00:00
|
|
|
else
|
2009-08-09 19:02:22 +00:00
|
|
|
echo "Enter size of your RAM (in MB): (Defaults to 32)"
|
2008-04-02 21:28:15 +00:00
|
|
|
size=`input`;
|
|
|
|
fi
|
|
|
|
case $size in
|
|
|
|
60|64)
|
|
|
|
memory="64"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
memory="32"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
*)
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_RAM" ]; then
|
|
|
|
size=$ARG_RAM
|
|
|
|
else
|
|
|
|
echo "Enter size of your RAM (in MB): (Defaults to 2)"
|
|
|
|
size=`input`;
|
|
|
|
fi
|
|
|
|
case $size in
|
|
|
|
8)
|
|
|
|
memory="8"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
memory="2"
|
|
|
|
;;
|
|
|
|
esac
|
2008-04-02 21:28:15 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
echo "Memory size selected: $memory MB"
|
2009-08-09 19:02:22 +00:00
|
|
|
[ "$ARG_TYPE" ] || echo ""
|
2002-05-23 09:11:35 +00:00
|
|
|
fi
|
2007-03-03 00:36:54 +00:00
|
|
|
#remove end
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2005-05-30 13:00:43 +00:00
|
|
|
##################################################################
|
|
|
|
# Figure out build "type"
|
|
|
|
#
|
2006-02-09 21:22:36 +00:00
|
|
|
|
|
|
|
# the ifp7x0 is the only platform that supports building a gdb stub like
|
|
|
|
# this
|
2008-04-02 21:28:15 +00:00
|
|
|
case $modelname in
|
2009-12-07 12:19:08 +00:00
|
|
|
iriverifp7xx)
|
2008-04-02 21:28:15 +00:00
|
|
|
gdbstub="(G)DB stub, "
|
|
|
|
;;
|
2009-12-07 12:19:08 +00:00
|
|
|
sansae200r|sansae200)
|
2009-05-06 15:47:01 +00:00
|
|
|
gdbstub="(I)nstaller, "
|
2008-04-02 21:28:15 +00:00
|
|
|
;;
|
2009-12-07 12:19:08 +00:00
|
|
|
sansac200)
|
2008-10-21 18:57:11 +00:00
|
|
|
gdbstub="(E)raser, "
|
|
|
|
;;
|
2008-04-02 21:28:15 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_TYPE" ]; then
|
|
|
|
btype=$ARG_TYPE
|
2008-04-02 21:28:15 +00:00
|
|
|
else
|
2009-10-07 16:54:15 +00:00
|
|
|
echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, $gdbstub(M)anual: (Defaults to N)"
|
2009-01-09 23:15:27 +00:00
|
|
|
btype=`input`;
|
2008-04-02 21:28:15 +00:00
|
|
|
fi
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2009-01-09 23:15:27 +00:00
|
|
|
case $btype in
|
2007-09-09 11:20:20 +00:00
|
|
|
[Ii])
|
|
|
|
appsdir='\$(ROOTDIR)/bootloader'
|
|
|
|
apps="bootloader"
|
|
|
|
extradefines="-DBOOTLOADER -DE200R_INSTALLER -ffunction-sections -fdata-sections"
|
|
|
|
bootloader="1"
|
|
|
|
echo "e200R-installer build selected"
|
|
|
|
;;
|
2008-10-21 18:57:11 +00:00
|
|
|
[Ee])
|
|
|
|
appsdir='\$(ROOTDIR)/bootloader'
|
|
|
|
apps="bootloader"
|
|
|
|
echo "C2(4)0 or C2(5)0"
|
|
|
|
variant=`input`
|
|
|
|
case $variant in
|
|
|
|
4)
|
|
|
|
extradefines="-DBOOTLOADER -DC200_ERASE -DC240_ERASE -ffunction-sections -fdata-sections"
|
|
|
|
echo "c240 eraser build selected"
|
|
|
|
;;
|
|
|
|
5)
|
|
|
|
extradefines="-DBOOTLOADER -DC200_ERASE -DC250_ERASE -ffunction-sections -fdata-sections"
|
|
|
|
echo "c240 eraser build selected"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
bootloader="1"
|
|
|
|
echo "c200 eraser build selected"
|
|
|
|
;;
|
2005-01-29 00:00:47 +00:00
|
|
|
[Bb])
|
2007-08-06 15:50:39 +00:00
|
|
|
if test $t_manufacturer = "archos"; then
|
2006-08-25 12:19:08 +00:00
|
|
|
# Archos SH-based players do this somewhat differently for
|
|
|
|
# some reason
|
|
|
|
appsdir='\$(ROOTDIR)/flash/bootbox'
|
|
|
|
apps="bootbox"
|
|
|
|
else
|
|
|
|
appsdir='\$(ROOTDIR)/bootloader'
|
|
|
|
apps="bootloader"
|
2007-01-08 18:21:12 +00:00
|
|
|
flash=""
|
2006-08-31 09:39:54 +00:00
|
|
|
if test -n "$boottool"; then
|
|
|
|
tool="$boottool"
|
|
|
|
fi
|
|
|
|
if test -n "$bootoutput"; then
|
|
|
|
output=$bootoutput
|
|
|
|
fi
|
2006-08-25 12:19:08 +00:00
|
|
|
fi
|
2007-02-22 10:05:39 +00:00
|
|
|
extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
|
2005-01-29 00:00:47 +00:00
|
|
|
bootloader="1"
|
|
|
|
echo "Bootloader build selected"
|
|
|
|
;;
|
2002-05-31 07:22:38 +00:00
|
|
|
[Ss])
|
2009-12-10 19:48:14 +00:00
|
|
|
if [ "$modelname" = "sansae200r" ]; then
|
|
|
|
echo "Do not use the e200R target for simulator builds. Use e200 instead."
|
|
|
|
exit 8
|
|
|
|
fi
|
2005-08-30 21:21:06 +00:00
|
|
|
debug="-DDEBUG"
|
2002-05-31 07:22:38 +00:00
|
|
|
simulator="yes"
|
2005-02-18 13:47:17 +00:00
|
|
|
extradefines="-DSIMULATOR"
|
2008-11-20 11:27:31 +00:00
|
|
|
archosrom=""
|
|
|
|
flash=""
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Simulator build selected"
|
2002-05-31 07:22:38 +00:00
|
|
|
;;
|
2009-08-09 19:02:22 +00:00
|
|
|
[Aa]*)
|
2007-03-03 00:36:54 +00:00
|
|
|
echo "Advanced build selected"
|
2009-08-09 19:02:22 +00:00
|
|
|
whichadvanced $btype
|
2002-05-23 10:10:44 +00:00
|
|
|
;;
|
2006-01-25 01:41:22 +00:00
|
|
|
[Gg])
|
|
|
|
extradefines="-DSTUB" # for target makefile symbol EXTRA_DEFINES
|
|
|
|
appsdir='\$(ROOTDIR)/gdb'
|
|
|
|
apps="stub"
|
2008-01-23 10:59:17 +00:00
|
|
|
case $modelname in
|
2009-12-07 12:19:08 +00:00
|
|
|
iriverifp7xx)
|
2006-01-25 01:41:22 +00:00
|
|
|
output="stub.wma"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
echo "GDB stub build selected"
|
|
|
|
;;
|
2006-02-06 07:25:25 +00:00
|
|
|
[Mm])
|
|
|
|
toolset='';
|
|
|
|
apps="manual"
|
|
|
|
echo "Manual build selected"
|
2007-01-13 02:24:15 +00:00
|
|
|
;;
|
2009-08-21 20:26:53 +00:00
|
|
|
[Cc])
|
|
|
|
uname=`uname`
|
2009-09-23 09:00:44 +00:00
|
|
|
simcc "checkwps"
|
2009-08-21 20:26:53 +00:00
|
|
|
toolset='';
|
|
|
|
t_cpu='';
|
|
|
|
GCCOPTS='';
|
|
|
|
appsdir='\$(ROOTDIR)/tools/checkwps';
|
|
|
|
output='checkwps.'${modelname};
|
2009-09-11 17:58:17 +00:00
|
|
|
archosrom='';
|
2009-08-21 20:26:53 +00:00
|
|
|
echo "CheckWPS build selected"
|
|
|
|
;;
|
2009-10-07 16:54:15 +00:00
|
|
|
[Dd])
|
|
|
|
uname=`uname`
|
|
|
|
simcc "database"
|
|
|
|
toolset='';
|
|
|
|
t_cpu='';
|
|
|
|
GCCOPTS='';
|
|
|
|
appsdir='\$(ROOTDIR)/tools/database';
|
|
|
|
output='database.'${modelname};
|
|
|
|
archosrom='';
|
|
|
|
echo "Database tool build selected"
|
|
|
|
;;
|
2002-05-23 10:10:44 +00:00
|
|
|
*)
|
2009-12-07 12:19:08 +00:00
|
|
|
if [ "$modelname" = "sansae200r" ]; then
|
2008-01-05 22:36:46 +00:00
|
|
|
echo "Do not use the e200R target for regular builds. Use e200 instead."
|
2008-12-11 17:24:04 +00:00
|
|
|
exit 8
|
2008-01-05 22:36:46 +00:00
|
|
|
fi
|
2004-09-22 08:58:50 +00:00
|
|
|
debug=""
|
2009-01-09 23:15:27 +00:00
|
|
|
btype="N" # set it explicitly since RET only gets here as well
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Normal build selected"
|
2002-05-23 10:10:44 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
2006-10-23 18:09:38 +00:00
|
|
|
# to be able running "make manual" from non-manual configuration
|
2008-01-23 10:59:17 +00:00
|
|
|
case $modelname in
|
2009-12-07 12:19:08 +00:00
|
|
|
archosrecorderv2)
|
2009-12-17 13:53:17 +00:00
|
|
|
manualdev="archosfmrecorder"
|
2006-10-23 18:09:38 +00:00
|
|
|
;;
|
2009-12-07 12:19:08 +00:00
|
|
|
iriverh1??)
|
|
|
|
manualdev="iriverh100"
|
2006-10-23 18:09:38 +00:00
|
|
|
;;
|
|
|
|
ipodmini2g)
|
2009-12-07 12:19:08 +00:00
|
|
|
manualdev="ipodmini1g"
|
2007-01-13 02:24:15 +00:00
|
|
|
;;
|
2006-10-23 18:09:38 +00:00
|
|
|
*)
|
2008-01-23 10:59:17 +00:00
|
|
|
manualdev=$modelname
|
2006-10-23 18:09:38 +00:00
|
|
|
;;
|
|
|
|
esac
|
2005-05-30 13:00:43 +00:00
|
|
|
|
2006-09-18 18:13:33 +00:00
|
|
|
if [ -z "$debug" ]; then
|
|
|
|
GCCOPTS="$GCCOPTS $GCCOPTIMIZE"
|
|
|
|
fi
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2006-08-30 21:53:26 +00:00
|
|
|
echo "Using source code root directory: $rootdir"
|
|
|
|
|
2006-01-09 10:43:51 +00:00
|
|
|
# this was once possible to change at build-time, but no more:
|
|
|
|
language="english"
|
2002-09-20 06:38:38 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
uname=`uname`
|
|
|
|
|
2002-10-17 09:14:57 +00:00
|
|
|
if [ "yes" = "$simulator" ]; then
|
2005-02-18 13:47:17 +00:00
|
|
|
# setup compiler and things for simulator
|
2009-09-23 09:00:44 +00:00
|
|
|
simcc "sdl"
|
2005-02-18 13:47:17 +00:00
|
|
|
|
2008-11-24 20:32:57 +00:00
|
|
|
if [ -d "simdisk" ]; then
|
|
|
|
echo "Subdirectory 'simdisk' already present"
|
2005-02-18 13:47:17 +00:00
|
|
|
else
|
2008-11-24 20:32:57 +00:00
|
|
|
mkdir simdisk
|
|
|
|
echo "Created a 'simdisk' subdirectory for simulating the hard disk"
|
2005-02-18 13:47:17 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Now, figure out version number of the (gcc) compiler we are about to use
|
|
|
|
gccver=`$CC -dumpversion`;
|
|
|
|
|
2007-09-08 21:45:21 +00:00
|
|
|
# figure out the binutil version too and display it, mostly for the build
|
|
|
|
# system etc to be able to see it easier
|
2009-02-27 06:02:40 +00:00
|
|
|
if [ $uname = "Darwin" ]; then
|
|
|
|
ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
|
|
|
|
else
|
|
|
|
ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'`
|
|
|
|
fi
|
2007-09-08 21:45:21 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
if [ -z "$gccver" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
echo "[WARNING] The compiler you must use ($CC) is not in your path!"
|
|
|
|
echo "[WARNING] this may cause your build to fail since we cannot do the"
|
|
|
|
echo "[WARNING] checks we want now."
|
2005-02-18 13:47:17 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
# gccver should now be "3.3.5", "3.4.3", "2.95.3-6" and similar, but don't
|
|
|
|
# DEPEND on it
|
|
|
|
|
|
|
|
num1=`echo $gccver | cut -d . -f1`
|
|
|
|
num2=`echo $gccver | cut -d . -f2`
|
|
|
|
gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
|
|
|
|
|
|
|
|
# This makes:
|
|
|
|
# 3.3.X => 303
|
|
|
|
# 3.4.X => 304
|
|
|
|
# 2.95.3 => 295
|
|
|
|
|
|
|
|
echo "Using $CC $gccver ($gccnum)"
|
|
|
|
|
2007-01-13 02:24:15 +00:00
|
|
|
if test "$gccnum" -ge "400"; then
|
2005-07-07 08:16:39 +00:00
|
|
|
# gcc 4.0 is just *so* much pickier on arguments that differ in signedness
|
|
|
|
# so we ignore that warnings for now
|
|
|
|
# -Wno-pointer-sign
|
|
|
|
GCCOPTS="$GCCOPTS -Wno-pointer-sign"
|
|
|
|
fi
|
|
|
|
|
2007-01-13 02:24:15 +00:00
|
|
|
if test "$gccnum" -ge "401"; then
|
2006-08-16 13:02:29 +00:00
|
|
|
# this is a lame hack to avoid "warning: dereferencing type-punned pointer
|
|
|
|
# will break strict-aliasing rules"
|
|
|
|
|
|
|
|
GCCOPTS="$GCCOPTS -fno-strict-aliasing"
|
|
|
|
fi
|
|
|
|
|
2007-09-07 17:55:21 +00:00
|
|
|
if test "$gccnum" -ge "402"; then
|
|
|
|
# disable warning about "warning: initialized field overwritten" as gcc 4.2
|
|
|
|
# and later would throw it for several valid cases
|
|
|
|
GCCOPTS="$GCCOPTS -Wno-override-init"
|
|
|
|
fi
|
|
|
|
|
2008-02-27 21:37:48 +00:00
|
|
|
case $prefix in
|
|
|
|
"")
|
|
|
|
# simulator
|
|
|
|
;;
|
|
|
|
i586-mingw32msvc-)
|
|
|
|
# cross-compile for win32
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# Verify that the cross-compiler is of a recommended version!
|
|
|
|
if test "$gccver" != "$gccchoice"; then
|
|
|
|
echo "WARNING: Your cross-compiler $CC $gccver is not of the recommended"
|
|
|
|
echo "WARNING: version $gccchoice!"
|
|
|
|
echo "WARNING: This may cause your build to fail since it may be a version"
|
|
|
|
echo "WARNING: that isn't functional or known to not be the best choice."
|
|
|
|
echo "WARNING: If you suffer from build problems, you know that this is"
|
|
|
|
echo "WARNING: a likely source for them..."
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-10-17 09:14:57 +00:00
|
|
|
fi
|
|
|
|
|
2008-02-27 21:37:48 +00:00
|
|
|
|
2007-09-08 21:45:21 +00:00
|
|
|
echo "Using $LD $ldver"
|
|
|
|
|
2006-05-01 21:21:15 +00:00
|
|
|
# check the compiler for SH platforms
|
|
|
|
if test "$CC" = "sh-elf-gcc"; then
|
2007-01-13 02:24:15 +00:00
|
|
|
if test "$gccnum" -lt "400"; then
|
2006-05-01 21:21:15 +00:00
|
|
|
echo "WARNING: Consider upgrading your compiler to the 4.0.X series!"
|
|
|
|
echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
|
|
|
|
else
|
|
|
|
# figure out patch status
|
|
|
|
gccpatch=`$CC --version`;
|
|
|
|
|
|
|
|
if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then
|
|
|
|
echo "gcc $gccver is rockbox patched"
|
|
|
|
# then convert -O to -Os to get smaller binaries!
|
2006-05-01 21:34:24 +00:00
|
|
|
GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
|
2006-05-01 21:21:15 +00:00
|
|
|
else
|
|
|
|
echo "WARNING: You use an unpatched gcc compiler: $gccver"
|
|
|
|
echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2007-06-13 15:35:07 +00:00
|
|
|
if test "$CC" = "m68k-elf-gcc"; then
|
|
|
|
# convert -O to -Os to get smaller binaries!
|
|
|
|
GCCOPTS=`echo $GCCOPTS | sed 's/ -O / -Os /'`
|
|
|
|
fi
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_CCACHE" = "1" ]; then
|
2006-08-16 13:02:29 +00:00
|
|
|
echo "Enable ccache for building"
|
|
|
|
ccache="ccache"
|
2009-08-13 21:09:09 +00:00
|
|
|
elif [ "$ARG_CCACHE" != "0" ]; then
|
2009-08-09 19:02:22 +00:00
|
|
|
ccache=`findtool ccache`
|
|
|
|
if test -n "$ccache"; then
|
|
|
|
echo "Found and uses ccache ($ccache)"
|
2006-08-16 13:02:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
2006-05-01 21:21:15 +00:00
|
|
|
|
2008-10-06 23:04:31 +00:00
|
|
|
# figure out the full path to the various commands if possible
|
|
|
|
HOSTCC=`findtool gcc --lit`
|
|
|
|
HOSTAR=`findtool ar --lit`
|
|
|
|
CC=`findtool ${CC} --lit`
|
|
|
|
LD=`findtool ${AR} --lit`
|
|
|
|
AR=`findtool ${AR} --lit`
|
|
|
|
AS=`findtool ${AS} --lit`
|
|
|
|
OC=`findtool ${OC} --lit`
|
|
|
|
WINDRES=`findtool ${WINDRES} --lit`
|
|
|
|
DLLTOOL=`findtool ${DLLTOOL} --lit`
|
|
|
|
DLLWRAP=`findtool ${DLLWRAP} --lit`
|
|
|
|
RANLIB=`findtool ${RANLIB} --lit`
|
|
|
|
|
2006-08-16 13:02:29 +00:00
|
|
|
if test -n "$ccache"; then
|
|
|
|
CC="$ccache $CC"
|
2005-06-01 11:42:51 +00:00
|
|
|
fi
|
|
|
|
|
2005-04-26 22:41:48 +00:00
|
|
|
if test "X$endian" = "Xbig"; then
|
|
|
|
defendian="ROCKBOX_BIG_ENDIAN"
|
|
|
|
else
|
|
|
|
defendian="ROCKBOX_LITTLE_ENDIAN"
|
|
|
|
fi
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
if [ "$ARG_RBDIR" ]; then
|
|
|
|
rbdir=$ARG_RBDIR
|
2008-11-24 22:16:07 +00:00
|
|
|
echo "Using alternate rockbox dir: ${rbdir}"
|
|
|
|
fi
|
|
|
|
|
2005-04-26 22:41:48 +00:00
|
|
|
sed > autoconf.h \
|
|
|
|
-e "s,@ENDIAN@,${defendian},g" \
|
2005-05-30 13:00:43 +00:00
|
|
|
-e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
|
2007-03-03 00:36:54 +00:00
|
|
|
-e "s,@config_rtc@,$config_rtc,g" \
|
|
|
|
-e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
|
2008-11-24 22:16:07 +00:00
|
|
|
-e "s,@RBDIR@,${rbdir},g" \
|
2009-05-29 13:36:12 +00:00
|
|
|
-e "s,@have_backlight@,$have_backlight,g" \
|
2009-06-12 18:53:44 +00:00
|
|
|
-e "s,@have_fmradio_in@,$have_fmradio_in,g" \
|
2009-06-20 18:37:29 +00:00
|
|
|
-e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \
|
2005-04-26 22:41:48 +00:00
|
|
|
<<EOF
|
2005-05-07 22:41:17 +00:00
|
|
|
/* This header was made by configure */
|
|
|
|
#ifndef __BUILD_AUTOCONF_H
|
|
|
|
#define __BUILD_AUTOCONF_H
|
|
|
|
|
2005-04-26 22:41:48 +00:00
|
|
|
/* Define endianess for the target or simulator platform */
|
|
|
|
#define @ENDIAN@ 1
|
2005-05-07 22:41:17 +00:00
|
|
|
|
2005-05-30 13:00:43 +00:00
|
|
|
/* Define this if you build rockbox to support the logf logging and display */
|
|
|
|
#undef ROCKBOX_HAS_LOGF
|
|
|
|
|
2009-06-12 18:53:44 +00:00
|
|
|
/* optional define for a backlight modded Ondio */
|
|
|
|
@have_backlight@
|
|
|
|
|
|
|
|
/* optional define for FM radio mod for iAudio M5 */
|
|
|
|
@have_fmradio_in@
|
|
|
|
|
2009-06-20 18:37:29 +00:00
|
|
|
/* optional define for ATA poweroff on Player */
|
|
|
|
@have_ata_poweroff@
|
|
|
|
|
2007-03-03 00:36:54 +00:00
|
|
|
/* optional defines for RTC mod for h1x0 */
|
|
|
|
@config_rtc@
|
|
|
|
@have_rtc_alarm@
|
|
|
|
|
2008-11-24 22:16:07 +00:00
|
|
|
/* root of Rockbox */
|
|
|
|
#define ROCKBOX_DIR "/@RBDIR@"
|
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
#endif /* __BUILD_AUTOCONF_H */
|
2005-04-26 22:41:48 +00:00
|
|
|
EOF
|
|
|
|
|
2006-03-07 12:45:45 +00:00
|
|
|
if test -n "$t_cpu"; then
|
2006-07-26 12:26:57 +00:00
|
|
|
TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
|
|
|
|
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
|
2006-03-07 12:45:45 +00:00
|
|
|
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu"
|
2006-08-01 22:22:01 +00:00
|
|
|
GCCOPTS="$GCCOPTS"
|
2006-03-07 12:45:45 +00:00
|
|
|
fi
|
|
|
|
|
2005-05-23 16:21:46 +00:00
|
|
|
if test "$simulator" = "yes"; then
|
|
|
|
# add simul make stuff on the #SIMUL# line
|
2006-10-27 21:48:06 +00:00
|
|
|
simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim,"
|
|
|
|
simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim,"
|
2005-05-23 16:21:46 +00:00
|
|
|
else
|
2005-12-05 22:13:55 +00:00
|
|
|
# delete the lines that match
|
|
|
|
simmagic1='/@SIMUL1@/D'
|
|
|
|
simmagic2='/@SIMUL2@/D'
|
2005-05-23 16:21:46 +00:00
|
|
|
fi
|
|
|
|
|
2007-11-16 21:03:38 +00:00
|
|
|
if test "$swcodec" = "yes"; then
|
|
|
|
voicetoolset="rbspeexenc voicefont wavtrim"
|
|
|
|
else
|
|
|
|
voicetoolset="voicefont wavtrim"
|
|
|
|
fi
|
|
|
|
|
2008-02-18 12:17:34 +00:00
|
|
|
if test "$apps" = "apps"; then
|
|
|
|
# only when we build "real" apps we build the .lng files
|
|
|
|
buildlangs="langs"
|
|
|
|
fi
|
|
|
|
|
2009-01-09 23:15:27 +00:00
|
|
|
#### Fix the cmdline ###
|
|
|
|
if test -n "$ccache"; then
|
2009-08-09 19:02:22 +00:00
|
|
|
cmdline="--ccache "
|
2009-01-09 23:15:27 +00:00
|
|
|
fi
|
|
|
|
|
2009-08-09 19:02:22 +00:00
|
|
|
cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts"
|
2009-01-09 23:15:27 +00:00
|
|
|
### end of cmdline
|
|
|
|
|
2002-05-23 09:39:31 +00:00
|
|
|
sed > Makefile \
|
2004-05-26 11:07:16 +00:00
|
|
|
-e "s,@ROOTDIR@,${rootdir},g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@DEBUG@,${debug},g" \
|
2003-02-26 09:13:47 +00:00
|
|
|
-e "s,@MEMORY@,${memory},g" \
|
2006-01-15 18:20:18 +00:00
|
|
|
-e "s,@TARGET_ID@,${target_id},g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@TARGET@,${target},g" \
|
2007-04-20 13:47:30 +00:00
|
|
|
-e "s,@CPU@,${t_cpu},g" \
|
|
|
|
-e "s,@MANUFACTURER@,${t_manufacturer},g" \
|
2008-01-23 10:59:17 +00:00
|
|
|
-e "s,@MODELNAME@,${modelname},g" \
|
2002-09-20 06:38:38 +00:00
|
|
|
-e "s,@LANGUAGE@,${language},g" \
|
2007-08-13 12:21:16 +00:00
|
|
|
-e "s:@VOICELANGUAGE@:${voicelanguage}:g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@PWD@,${pwd},g" \
|
2008-10-06 23:04:31 +00:00
|
|
|
-e "s,@HOSTCC@,${HOSTCC},g" \
|
|
|
|
-e "s,@HOSTAR@,${HOSTAR},g" \
|
2004-09-22 08:58:50 +00:00
|
|
|
-e "s,@CC@,${CC},g" \
|
|
|
|
-e "s,@LD@,${LD},g" \
|
|
|
|
-e "s,@AR@,${AR},g" \
|
|
|
|
-e "s,@AS@,${AS},g" \
|
|
|
|
-e "s,@OC@,${OC},g" \
|
2005-02-18 13:47:17 +00:00
|
|
|
-e "s,@WINDRES@,${WINDRES},g" \
|
|
|
|
-e "s,@DLLTOOL@,${DLLTOOL},g" \
|
|
|
|
-e "s,@DLLWRAP@,${DLLWRAP},g" \
|
|
|
|
-e "s,@RANLIB@,${RANLIB},g" \
|
2004-09-22 08:58:50 +00:00
|
|
|
-e "s,@TOOL@,${tool},g" \
|
2006-01-22 21:30:32 +00:00
|
|
|
-e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \
|
|
|
|
-e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \
|
|
|
|
-e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \
|
|
|
|
-e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \
|
2004-09-22 08:58:50 +00:00
|
|
|
-e "s,@OUTPUT@,${output},g" \
|
|
|
|
-e "s,@APPEXTRA@,${appextra},g" \
|
|
|
|
-e "s,@ARCHOSROM@,${archosrom},g" \
|
2004-10-07 08:20:25 +00:00
|
|
|
-e "s,@FLASHFILE@,${flash},g" \
|
2004-09-22 21:40:45 +00:00
|
|
|
-e "s,@PLUGINS@,${plugins},g" \
|
2007-07-16 22:25:41 +00:00
|
|
|
-e "s,@CODECS@,${swcodec},g" \
|
2006-01-18 20:54:13 +00:00
|
|
|
-e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \
|
2006-09-29 20:04:36 +00:00
|
|
|
-e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \
|
2004-10-04 13:02:41 +00:00
|
|
|
-e "s,@GCCOPTS@,${GCCOPTS},g" \
|
2006-03-07 12:45:45 +00:00
|
|
|
-e "s,@TARGET_INC@,${TARGET_INC},g" \
|
2006-01-09 21:43:17 +00:00
|
|
|
-e "s!@LDOPTS@!${LDOPTS}!g" \
|
2005-02-10 22:37:09 +00:00
|
|
|
-e "s,@LOADADDRESS@,${loadaddress},g" \
|
2005-01-29 00:00:47 +00:00
|
|
|
-e "s,@EXTRADEF@,${extradefines},g" \
|
|
|
|
-e "s,@APPSDIR@,${appsdir},g" \
|
2006-02-06 07:25:25 +00:00
|
|
|
-e "s,@FIRMDIR@,${firmdir},g" \
|
|
|
|
-e "s,@TOOLSDIR@,${toolsdir},g" \
|
2005-05-07 23:16:08 +00:00
|
|
|
-e "s,@APPS@,${apps},g" \
|
2007-04-20 11:58:39 +00:00
|
|
|
-e "s,@SIMVER@,${simver},g" \
|
2005-02-18 13:47:17 +00:00
|
|
|
-e "s,@GCCVER@,${gccver},g" \
|
|
|
|
-e "s,@GCCNUM@,${gccnum},g" \
|
2005-02-22 20:00:19 +00:00
|
|
|
-e "s,@UNAME@,${uname},g" \
|
2005-04-26 22:41:48 +00:00
|
|
|
-e "s,@ENDIAN@,${defendian},g" \
|
2005-12-02 08:56:20 +00:00
|
|
|
-e "s,@TOOLSET@,${toolset},g" \
|
2005-12-05 22:13:55 +00:00
|
|
|
-e "${simmagic1}" \
|
|
|
|
-e "${simmagic2}" \
|
2006-10-23 18:09:38 +00:00
|
|
|
-e "s,@MANUALDEV@,${manualdev},g" \
|
2007-11-18 17:10:50 +00:00
|
|
|
-e "s,@ENCODER@,${ENC_CMD},g" \
|
2007-08-25 22:00:13 +00:00
|
|
|
-e "s,@ENC_OPTS@,${ENC_OPTS},g" \
|
|
|
|
-e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
|
|
|
|
-e "s,@TTS_OPTS@,${TTS_OPTS},g" \
|
2007-11-16 21:03:38 +00:00
|
|
|
-e "s,@VOICETOOLSET@,${voicetoolset},g" \
|
2008-02-18 12:17:34 +00:00
|
|
|
-e "s,@LANGS@,${buildlangs},g" \
|
2008-05-17 14:20:09 +00:00
|
|
|
-e "s,@USE_ELF@,${USE_ELF},g" \
|
2008-11-24 22:16:07 +00:00
|
|
|
-e "s,@RBDIR@,${rbdir},g" \
|
2009-04-12 01:28:33 +00:00
|
|
|
-e "s,@PREFIX@,$PREFIX,g" \
|
2009-01-09 23:15:27 +00:00
|
|
|
-e "s,@CMDLINE@,$cmdline,g" \
|
2005-02-22 20:00:19 +00:00
|
|
|
<<EOF
|
2008-04-09 11:53:28 +00:00
|
|
|
## Automatically generated. http://www.rockbox.org/
|
2002-05-23 10:10:44 +00:00
|
|
|
|
2004-09-22 08:58:50 +00:00
|
|
|
export ROOTDIR=@ROOTDIR@
|
2006-02-06 07:25:25 +00:00
|
|
|
export FIRMDIR=@FIRMDIR@
|
2005-01-29 00:00:47 +00:00
|
|
|
export APPSDIR=@APPSDIR@
|
2006-02-06 07:25:25 +00:00
|
|
|
export TOOLSDIR=@TOOLSDIR@
|
2004-09-22 08:58:50 +00:00
|
|
|
export DOCSDIR=\$(ROOTDIR)/docs
|
2006-02-06 07:25:25 +00:00
|
|
|
export MANUALDIR=\${ROOTDIR}/manual
|
2004-09-22 08:58:50 +00:00
|
|
|
export DEBUG=@DEBUG@
|
2008-01-23 10:59:17 +00:00
|
|
|
export MODELNAME=@MODELNAME@
|
2004-09-22 08:58:50 +00:00
|
|
|
export ARCHOSROM=@ARCHOSROM@
|
2004-10-07 08:20:25 +00:00
|
|
|
export FLASHFILE=@FLASHFILE@
|
2006-01-15 18:20:18 +00:00
|
|
|
export TARGET_ID=@TARGET_ID@
|
2004-09-22 08:58:50 +00:00
|
|
|
export TARGET=@TARGET@
|
2007-04-20 13:47:30 +00:00
|
|
|
export CPU=@CPU@
|
|
|
|
export MANUFACTURER=@MANUFACTURER@
|
2004-09-22 08:58:50 +00:00
|
|
|
export OBJDIR=@PWD@
|
2005-05-07 22:41:17 +00:00
|
|
|
export BUILDDIR=@PWD@
|
2004-09-22 08:58:50 +00:00
|
|
|
export LANGUAGE=@LANGUAGE@
|
2007-08-08 22:01:06 +00:00
|
|
|
export VOICELANGUAGE=@VOICELANGUAGE@
|
2004-09-22 08:58:50 +00:00
|
|
|
export MEMORYSIZE=@MEMORY@
|
2009-01-19 16:18:30 +00:00
|
|
|
export VERSION:=\$(shell \$(ROOTDIR)/tools/version.sh \$(ROOTDIR))
|
2008-11-20 11:27:31 +00:00
|
|
|
export BUILDDATE:=\$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
|
2004-10-07 08:08:05 +00:00
|
|
|
export MKFIRMWARE=@TOOL@
|
2006-01-22 21:30:32 +00:00
|
|
|
export BMP2RB_MONO=@BMP2RB_MONO@
|
|
|
|
export BMP2RB_NATIVE=@BMP2RB_NATIVE@
|
|
|
|
export BMP2RB_REMOTEMONO=@BMP2RB_REMOTEMONO@
|
|
|
|
export BMP2RB_REMOTENATIVE=@BMP2RB_REMOTENATIVE@
|
2004-09-22 08:58:50 +00:00
|
|
|
export BINARY=@OUTPUT@
|
|
|
|
export APPEXTRA=@APPEXTRA@
|
2004-09-22 21:40:45 +00:00
|
|
|
export ENABLEDPLUGINS=@PLUGINS@
|
2005-02-16 00:38:31 +00:00
|
|
|
export SOFTWARECODECS=@CODECS@
|
2005-01-29 00:00:47 +00:00
|
|
|
export EXTRA_DEFINES=@EXTRADEF@
|
2008-10-06 23:04:31 +00:00
|
|
|
export HOSTCC=@HOSTCC@
|
|
|
|
export HOSTAR=@HOSTAR@
|
2004-09-22 08:58:50 +00:00
|
|
|
export CC=@CC@
|
|
|
|
export LD=@LD@
|
|
|
|
export AR=@AR@
|
|
|
|
export AS=@AS@
|
|
|
|
export OC=@OC@
|
2005-02-18 13:47:17 +00:00
|
|
|
export WINDRES=@WINDRES@
|
|
|
|
export DLLTOOL=@DLLTOOL@
|
|
|
|
export DLLWRAP=@DLLWRAP@
|
|
|
|
export RANLIB=@RANLIB@
|
2009-04-12 01:28:33 +00:00
|
|
|
export PREFIX=@PREFIX@
|
2006-01-18 20:54:13 +00:00
|
|
|
export PROFILE_OPTS=@PROFILE_OPTS@
|
2007-04-20 11:58:39 +00:00
|
|
|
export SIMVER=@SIMVER@
|
|
|
|
export SIMDIR=\$(ROOTDIR)/uisimulator/sdl
|
2004-10-04 13:02:41 +00:00
|
|
|
export GCCOPTS=@GCCOPTS@
|
2006-03-07 12:45:45 +00:00
|
|
|
export TARGET_INC=@TARGET_INC@
|
2005-02-10 22:37:09 +00:00
|
|
|
export LOADADDRESS=@LOADADDRESS@
|
2006-09-29 20:04:36 +00:00
|
|
|
export SHARED_FLAG=@SHARED_FLAG@
|
2005-02-18 13:47:17 +00:00
|
|
|
export LDOPTS=@LDOPTS@
|
|
|
|
export GCCVER=@GCCVER@
|
|
|
|
export GCCNUM=@GCCNUM@
|
2005-02-22 20:00:19 +00:00
|
|
|
export UNAME=@UNAME@
|
2006-10-23 18:09:38 +00:00
|
|
|
export MANUALDEV=@MANUALDEV@
|
2007-08-25 22:00:13 +00:00
|
|
|
export TTS_OPTS=@TTS_OPTS@
|
|
|
|
export TTS_ENGINE=@TTS_ENGINE@
|
|
|
|
export ENC_OPTS=@ENC_OPTS@
|
|
|
|
export ENCODER=@ENCODER@
|
2008-05-17 14:20:09 +00:00
|
|
|
export USE_ELF=@USE_ELF@
|
2008-11-24 22:16:07 +00:00
|
|
|
export RBDIR=@RBDIR@
|
2004-09-22 08:58:50 +00:00
|
|
|
|
2009-01-09 23:15:27 +00:00
|
|
|
CONFIGURE_OPTIONS=@CMDLINE@
|
|
|
|
|
2008-11-20 11:27:31 +00:00
|
|
|
include \$(TOOLSDIR)/root.make
|
2006-03-19 06:57:59 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
EOF
|
|
|
|
|
2002-05-23 09:39:31 +00:00
|
|
|
echo "Created Makefile"
|