summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2017-04-27 11:36:40 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-12 10:31:14 +0200
commitd55680993df9b6743506814d98b5cc1859828f8a (patch)
tree054dc45425fa1a6863f154b484036f26cc3ac13f /tools
parentbeef52c5f0832e2c36bb1523b51eb8721f851db5 (diff)
downloadrockbox-d55680993df9b6743506814d98b5cc1859828f8a.tar.gz
rockbox-d55680993df9b6743506814d98b5cc1859828f8a.tar.bz2
rockbox-d55680993df9b6743506814d98b5cc1859828f8a.zip
Agptek Rocker: Initial commit
Change-Id: I26b51106c7b1c36a603fba6d521e917d79b5a95b
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure47
-rw-r--r--tools/root.make6
2 files changed, 51 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index d86c78de3a..27c1e71f23 100755
--- a/tools/configure
+++ b/tools/configure
@@ -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
diff --git a/tools/root.make b/tools/root.make
index b5bd0e8096..60a2b69404 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -103,6 +103,8 @@ endif
ifneq (,$(findstring bootloader,$(APPSDIR)))
ifneq (,$(findstring sonynwz,$(APP_TYPE)))
include $(ROOTDIR)/firmware/target/hosted/sonynwz/sonynwz.make
+ else ifneq (,$(findstring rocker,$(APP_TYPE)))
+ include $(ROOTDIR)/firmware/target/hosted/agptek/rocker.make
else
include $(APPSDIR)/bootloader.make
endif
@@ -143,6 +145,10 @@ else # core
include $(ROOTDIR)/firmware/target/hosted/sonynwz/sonynwz.make
endif
+ ifneq (,$(findstring rocker,$(APP_TYPE)))
+ include $(ROOTDIR)/firmware/target/hosted/agptek/rocker.make
+ endif
+
ifneq (,$(findstring android_ndk, $(APP_TYPE)))
include $(ROOTDIR)/firmware/target/hosted/ibasso/android_ndk.make
else