summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLorenzo Miori <memoryS60@gmail.com>2013-09-10 22:48:34 +0200
committerThomas Martitz <kugel@rockbox.org>2014-02-05 09:56:21 +0100
commite876f4df6d240bd2e319b1e63be95a625f049a97 (patch)
treece2fe1b24650e3be7a6cd2d346d29090a5422a8c /tools
parentb828b9d99bff2acc0e1f543f3176fd4b632cba68 (diff)
downloadrockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.zip
rockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.tar.gz
rockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.tar.bz2
rockbox-e876f4df6d240bd2e319b1e63be95a625f049a97.tar.xz
Samsung YP-R1 target port
This is the basic port to the new target Samsung YP-R1, which runs on a similar platform as YP-R0. Port is usable, although there are still some optimizations that have to be done. Change-Id: If83a8e386369e413581753780c159026d9e41f04
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl3
-rwxr-xr-xtools/configure25
-rw-r--r--tools/root.make4
3 files changed, 30 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 56bbe6d..1fd242e 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -375,7 +375,7 @@ sub buildzip {
close(IGNORE);
# the samsung ypr0 has a loader script that's needed in the zip
- if ($modelname =~ /samsungypr0/) {
+ if ($modelname =~ /samsungypr[01]/) {
glob_copy("$ROOT/utils/ypr0tools/rockbox.sh", "$temp_dir/");
}
# add .nomedia on Android
@@ -695,4 +695,3 @@ elsif($exe eq "librockbox.so") {
}
runone($exe, $incfonts);
-
diff --git a/tools/configure b/tools/configure
index 0f89783..dfe84a9 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1340,6 +1340,7 @@ cat <<EOF
205) Samsung YP-R0
206) Android MIPS
207) Android x86
+ 208) Samsung YP-R1
==IHIFI==
230) 760
@@ -3545,6 +3546,30 @@ fi
t_model="app"
;;
+ 208|samsungypr1)
+ application="yes"
+ target_id=93
+ modelname="samsungypr1"
+ target="SAMSUNG_YPR1"
+ memory=32
+ uname=`uname`
+ # Linux environment and CPU are the same as for R0, use the same gcc options
+ ypr0cc
+ tool="cp "
+ boottool="cp "
+ bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
+ bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
+ output="rockbox"
+ bootoutput="rockbox"
+ appextra="recorder:gui:radio"
+ plugins="yes"
+ swcodec="yes"
+ # architecture, manufacturer and model for the target-tree build
+ t_cpu="hosted"
+ t_manufacturer="samsungypr"
+ t_model="ypr1"
+ ;;
+
210|hifietma9)
target_id=83
modelname="hifietma9"
diff --git a/tools/root.make b/tools/root.make
index dcdbba2..20e1ce3 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -128,6 +128,10 @@ else # core
include $(ROOTDIR)/firmware/target/hosted/samsungypr/ypr0/ypr0.make
endif
+ ifneq (,$(findstring ypr1,$(APP_TYPE)))
+ include $(ROOTDIR)/firmware/target/hosted/samsungypr/ypr1/ypr1.make
+ endif
+
ifneq (,$(findstring android, $(APP_TYPE)))
include $(ROOTDIR)/android/android.make
endif