Agptek Rocker: Initial commit

Change-Id: I26b51106c7b1c36a603fba6d521e917d79b5a95b
This commit is contained in:
Marcin Bukat 2017-04-27 11:36:40 +02:00
parent beef52c5f0
commit d55680993d
50 changed files with 2343 additions and 74 deletions

47
tools/configure vendored
View file

@ -867,6 +867,26 @@ androidndkcc()
prefixtools $gcctarget
}
mipsellinuxcc () {
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
GCCOPTS="$GCCOPTS -march=mips32r2 -mno-mips16 -mno-long-calls -Umips -fPIC"
GCCOPTIMIZE=''
LDOPTS="-lasound -lpthread -lm -ldl -lrt $LDOPTS"
GLOBAL_LDOPTS="$GLOBAL_LDOPTS -Wl,-z,defs"
SHARED_LDFLAG="-shared"
SHARED_CFLAGS='-fPIC -fvisibility=hidden'
endian="little"
app_type="rocker"
thread_support="HAVE_SIGALTSTACK_THREADS"
# Include path
GCCOPTS="$GCCOPTS -D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_REENTRANT"
# Set up compiler
gccchoice="4.9.4"
prefixtools "mipsel-rockbox-linux-gnu-"
}
whichadvanced () {
atype=`echo "$1" | cut -c 2-`
##################################################################
@ -1511,8 +1531,8 @@ cat <<EOF
207) Android x86 230) 760 223) NWZ-E460 series
208) Samsung YP-R1 231) 960 224) NWZ-E470 series
225) NWZ-E580 series
==iBasso== 226) NWZ-A10 series
232) DX50 227) NW-A20 series
==iBasso== ==Agptek== 226) NWZ-A10 series
232) DX50 240) Rocker 227) NW-A20 series
233) DX90 228) NWZ-A860 series
229) NWZ-S750 series
EOF
@ -4173,6 +4193,29 @@ fi
t_model="dx90"
;;
240|agptekrocker)
application="yes"
target_id=97
modelname="agptekrocker"
target="AGPTEK_ROCKER"
memory=6
tool="cp "
boottool="cp "
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
bmp2rb_native="$rootdir/tools/bmp2rb -f 10"
output="rockbox.rocker"
bootoutput="bootloader.rocker"
appextra="recorder:gui:hosted"
plugins=""
swcodec="yes"
# architecture, manufacturer and model for the target-tree build
t_cpu="hosted"
t_manufacturer="agptek"
t_model="rocker"
rbdir='/mnt/sd_0/.rockbox'
mipsellinuxcc
;;
*)
echo "Please select a supported target platform!"
exit 7