summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl7
-rwxr-xr-xtools/configure48
-rw-r--r--tools/root.make4
3 files changed, 56 insertions, 3 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index ed937d42e4..e17c2f0712 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -201,7 +201,7 @@ sub make_install {
201 @files = readdir(DIR); 201 @files = readdir(DIR);
202 closedir(DIR); 202 closedir(DIR);
203 203
204 foreach my $file (grep (/[a-zA-Z]+\.(txt|config|ignnore)/,@files)) { 204 foreach my $file (grep (/[a-zA-Z]+\.(txt|config|ignore|sh)/,@files)) {
205 glob_install("$src/$file", "$userdir/"); 205 glob_install("$src/$file", "$userdir/");
206 } 206 }
207 return 1; 207 return 1;
@@ -423,6 +423,11 @@ sub buildzip {
423 # create the file so the database does not try indexing a folder 423 # create the file so the database does not try indexing a folder
424 open(IGNORE, ">$temp_dir/database.ignore") || die "can't open database.ignore"; 424 open(IGNORE, ">$temp_dir/database.ignore") || die "can't open database.ignore";
425 close(IGNORE); 425 close(IGNORE);
426
427 # the samsung ypr0 has a loader script that's needed in the zip
428 if ($modelname =~ /samsungypr0/) {
429 glob_copy("$ROOT/utils/ypr0tools/rockbox.sh", "$temp_dir/");
430 }
426 431
427 glob_mkdir("$temp_dir/langs"); 432 glob_mkdir("$temp_dir/langs");
428 glob_mkdir("$temp_dir/rocks"); 433 glob_mkdir("$temp_dir/rocks");
diff --git a/tools/configure b/tools/configure
index 895aca8025..1cb4c5b240 100755
--- a/tools/configure
+++ b/tools/configure
@@ -647,6 +647,26 @@ pandoracc () {
647 GCCOPTS="$GCCOPTS -ffast-math -fsingle-precision-constant" 647 GCCOPTS="$GCCOPTS -ffast-math -fsingle-precision-constant"
648} 648}
649 649
650ypr0cc () {
651
652 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib//`
653 GCCOPTIMIZE=''
654 LDOPTS="-lasound -lpthread -lm -ldl -lrt $LDOPTS"
655 GLOBAL_LDOPTS="$GLOBAL_LDOPTS -Wl,-z,defs"
656 SHARED_LDFLAG="-shared"
657 SHARED_CFLAGS=''
658 endian="little"
659 thread_support="HAVE_SIGALTSTACK_THREADS"
660 app_type="ypr0"
661
662 # Include path
663 GCCOPTS="$GCCOPTS -D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_REENTRANT"
664
665 # Set up compiler
666 gccchoice="4.4.6"
667 prefixtools "arm-ypr0-linux-gnueabi-"
668}
669
650androidcc () { 670androidcc () {
651 if [ -z "$ANDROID_SDK_PATH" ]; then 671 if [ -z "$ANDROID_SDK_PATH" ]; then
652 echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH" 672 echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH"
@@ -1290,7 +1310,7 @@ cat <<EOF
1290 202) Nokia N8xx 131) Mini2440 1310 202) Nokia N8xx 131) Mini2440
1291 203) Nokia N900 ==ROCKCHIP== ==HiFiMAN== 1311 203) Nokia N900 ==ROCKCHIP== ==HiFiMAN==
1292 204) Pandora 180) rk27xx generic 190) HM-60x 1312 204) Pandora 180) rk27xx generic 190) HM-60x
1293 191) HM-801 1313 205) Samsung YP-R0 191) HM-801
1294 1314
1295EOF 1315EOF
1296 1316
@@ -3228,6 +3248,30 @@ fi
3228 t_model="app" 3248 t_model="app"
3229 ;; 3249 ;;
3230 3250
3251 205|samsungypr0)
3252 application="yes"
3253 target_id=78
3254 modelname="samsungypr0"
3255 target="SAMSUNG_YPR0"
3256 app_set_lcd_size 240 320
3257 memory=32
3258 uname=`uname`
3259 ypr0cc
3260 tool="cp "
3261 boottool="cp "
3262 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
3263 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
3264 output="rockbox"
3265 bootoutput="rockbox"
3266 appextra="recorder:gui:radio"
3267 plugins="yes"
3268 swcodec="yes"
3269 # architecture, manufacturer and model for the target-tree build
3270 t_cpu="hosted"
3271 t_manufacturer="ypr0"
3272 t_model="app"
3273 ;;
3274
3231 *) 3275 *)
3232 echo "Please select a supported target platform!" 3276 echo "Please select a supported target platform!"
3233 exit 7 3277 exit 7
@@ -3473,7 +3517,7 @@ gccver=`$CC -dumpversion`;
3473if [ $uname = "Darwin" ]; then 3517if [ $uname = "Darwin" ]; then
3474 ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'` 3518 ldver=`$LD -v 2>&1 | sed -e 's/[^0-9.-]//g'`
3475else 3519else
3476 ldver=`$LD --version | head -n 1 | sed -e 's/[^0-9.]//g'` 3520 ldver=`$LD --version | head -n 1 | sed -e 's/\ /\n/g' | tail -n 1`
3477fi 3521fi
3478 3522
3479if [ -z "$gccver" ]; then 3523if [ -z "$gccver" ]; then
diff --git a/tools/root.make b/tools/root.make
index f97588f158..dd827d6d3f 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -102,6 +102,10 @@ else
102 include $(ROOTDIR)/uisimulator/uisimulator.make 102 include $(ROOTDIR)/uisimulator/uisimulator.make
103 endif 103 endif
104 104
105 ifneq (,$(findstring ypr0,$(APP_TYPE)))
106 include $(ROOTDIR)/firmware/target/hosted/ypr0/ypr0.make
107 endif
108
105 ifneq (,$(findstring android, $(APP_TYPE))) 109 ifneq (,$(findstring android, $(APP_TYPE)))
106 include $(ROOTDIR)/android/android.make 110 include $(ROOTDIR)/android/android.make
107 endif 111 endif