summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-11-06 11:39:49 +0100
committerThomas Martitz <kugel@rockbox.org>2012-11-06 12:21:14 +0100
commit48572c6265fe9b0a753ecc99ff871b60fcec268d (patch)
treee08184dfc17f68caf245695b67a353026fcee952
parent8e3c77d53e14e4ac9371ea21bc7ae747304c3ee9 (diff)
downloadrockbox-48572c6265fe9b0a753ecc99ff871b60fcec268d.tar.gz
rockbox-48572c6265fe9b0a753ecc99ff871b60fcec268d.zip
android: Add x86 target.
Change-Id: If205f8c69a7ac803eecab394e6d1758aeda86336
-rwxr-xr-xtools/configure49
1 files changed, 46 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 5a380608bf..253c0baad2 100755
--- a/tools/configure
+++ b/tools/configure
@@ -667,8 +667,8 @@ androidcc () {
667 fi 667 fi
668 buildhost=$(uname | tr "[:upper:]" "[:lower:]") 668 buildhost=$(uname | tr "[:upper:]" "[:lower:]")
669 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 669 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
670 LDOPTS=" $LDOPTS -shared -ldl -llog" 670 LDOPTS="$LDOPTS -Wl,-soname,librockbox.so -shared -ldl -llog"
671 GLOBAL_LDOPTS="-Wl,-z,defs -Wl,-z,noexecstack" 671 GLOBAL_LDOPTS="-Wl,-z,defs -Wl,-z,noexecstack -shared"
672 thread_support="HAVE_SIGALTSTACK_THREADS" # force for all archs 672 thread_support="HAVE_SIGALTSTACK_THREADS" # force for all archs
673 ANDROID_ARCH=$1 # for android.make too 673 ANDROID_ARCH=$1 # for android.make too
674 # arch dependant stuff 674 # arch dependant stuff
@@ -689,14 +689,28 @@ androidcc () {
689 --sysroot=$ANDROID_NDK_PATH/platforms/android-14/arch-mips -fPIC" 689 --sysroot=$ANDROID_NDK_PATH/platforms/android-14/arch-mips -fPIC"
690 LDOPTS="$LDOPTS --sysroot=$ANDROID_NDK_PATH/platforms/android-14/arch-mips" 690 LDOPTS="$LDOPTS --sysroot=$ANDROID_NDK_PATH/platforms/android-14/arch-mips"
691 ;; 691 ;;
692 x86)
693 endian=little
694 gccchoice="4.4.3"
695 gcctarget="i686-linux-android-"
696 gccdir=x86-$gccchoice
697 GCCOPTS="$GCCOPTS -Wa,--noexecstack -ffunction-sections -fomit-frame-pointer\
698 --sysroot=$ANDROID_NDK_PATH/platforms/android-9/arch-x86"
699 LDOPTS="$LDOPTS --sysroot=$ANDROID_NDK_PATH/platforms/android-9/arch-x86"
700 ;;
692 *) 701 *)
693 echo "ERROR: androidcc(): Unknown target architecture" 702 echo "ERROR: androidcc(): Unknown target architecture"
694 exit 703 exit
695 ;; 704 ;;
696 esac 705 esac
697 echo "Application environment deemed $endian endian" 706 echo "Application environment deemed $endian endian"
698 gccprefix=$ANDROID_NDK_PATH/toolchains/$gcctarget$gccchoice/prebuilt/$buildhost-x86 707 echo $gccdir
708 if [ -z "$gccdir" ]; then
709 gccdir=$gcctarget$gccchoice
710 fi
711 gccprefix=$ANDROID_NDK_PATH/toolchains/$gccdir/prebuilt/$buildhost-x86
699 PATH=$PATH:$gccprefix/bin 712 PATH=$PATH:$gccprefix/bin
713 echo $PATH
700 prefixtools $gcctarget 714 prefixtools $gcctarget
701} 715}
702 716
@@ -1311,6 +1325,7 @@ cat <<EOF
1311 204) Pandora 191) HM-801 1325 204) Pandora 191) HM-801
1312 205) Samsung YP-R0 1326 205) Samsung YP-R0
1313 206) Android MIPS 1327 206) Android MIPS
1328 207) Android x86
1314EOF 1329EOF
1315 1330
1316 buildfor=`input`; 1331 buildfor=`input`;
@@ -3362,6 +3377,34 @@ fi
3362 t_model="app" 3377 t_model="app"
3363 ;; 3378 ;;
3364 3379
3380 207|androidx86)
3381 application="yes"
3382 target_id=74
3383 modelname="androidx86"
3384 target="ANDROID"
3385 app_type="android"
3386 app_set_lcd_size
3387 sharedir="/data/data/org.rockbox/app_rockbox/rockbox"
3388 bindir="/data/data/org.rockbox/lib"
3389 libdir="/data/data/org.rockbox/app_rockbox"
3390 memory=8
3391 uname=`uname`
3392 androidcc x86
3393 tool="cp "
3394 boottool="cp "
3395 bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
3396 bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
3397 output="librockbox.so"
3398 bootoutput="librockbox.so"
3399 appextra="recorder:gui:radio:hosted/android"
3400 plugins="yes"
3401 swcodec="yes"
3402 # architecture, manufacturer and model for the target-tree build
3403 t_cpu="hosted"
3404 t_manufacturer="android"
3405 t_model="app"
3406 ;;
3407
3365 *) 3408 *)
3366 echo "Please select a supported target platform!" 3409 echo "Please select a supported target platform!"
3367 exit 7 3410 exit 7