diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index 959467029f..eaa391c3e7 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -592,6 +592,48 @@ maemocc () { | |||
592 | fi | 592 | fi |
593 | } | 593 | } |
594 | 594 | ||
595 | pandoracc () { | ||
596 | # Note: The new "Ivanovic" pandora toolchain is not able to compile rockbox. | ||
597 | # You have to use the sebt3 toolchain: | ||
598 | # http://www.gp32x.com/board/index.php?/topic/58490-yactfeau/ | ||
599 | |||
600 | PNDSDK="/usr/local/angstrom/arm" | ||
601 | if [ ! -x $PNDSDK/bin/arm-angstrom-linux-gnueabi-gcc ]; then | ||
602 | echo "Pandora SDK gcc not found in $PNDSDK/bin/arm-angstrom-linux-gnueabi-gcc" | ||
603 | exit | ||
604 | fi | ||
605 | |||
606 | PATH=$PNDSDK/bin:$PATH:$PNDSDK/arm-angstrom-linux-gnueabi/usr/bin | ||
607 | PKG_CONFIG_PATH=$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib/pkgconfig | ||
608 | LDOPTS="-L$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib -Wl,-rpath,$PNDSDK/arm-angstrom-linux-gnueabi/usr/lib $LDOPTS" | ||
609 | PKG_CONFIG="pkg-config" | ||
610 | |||
611 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` | ||
612 | GCCOPTS="$GCCOPTS -fno-builtin -g -I\$(SIMDIR)" | ||
613 | GCCOPTIMIZE='' | ||
614 | LDOPTS="-lm -ldl $LDOPTS" | ||
615 | GLOBAL_LDOPTS="$GLOBAL_LDOPTS -Wl,-z,defs" | ||
616 | SHARED_FLAG="-shared" | ||
617 | endian="little" | ||
618 | thread_support="HAVE_SIGALTSTACK_THREADS" | ||
619 | |||
620 | # Include path | ||
621 | GCCOPTS="-I$PNDSDK/arm-angstrom-linux-gnueabi/usr/include" | ||
622 | |||
623 | # Set up compiler | ||
624 | gccchoice="4.3.3" | ||
625 | prefixtools "$PNDSDK/bin/arm-angstrom-linux-gnueabi-" | ||
626 | |||
627 | # Detect SDL | ||
628 | GCCOPTS="$GCCOPTS `$PKG_CONFIG --cflags sdl`" | ||
629 | LDOPTS="$LDOPTS `$PKG_CONFIG --libs sdl`" | ||
630 | |||
631 | # Compiler options | ||
632 | GCCOPTS="$GCCOPTS -O2 -fno-strict-aliasing" | ||
633 | GCCOPTS="$GCCOPTS -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" | ||
634 | GCCOPTS="$GCCOPTS -ffast-math -fsingle-precision-constant" | ||
635 | } | ||
636 | |||
595 | androidcc () { | 637 | androidcc () { |
596 | if [ -z "$ANDROID_SDK_PATH" ]; then | 638 | if [ -z "$ANDROID_SDK_PATH" ]; then |
597 | echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH" | 639 | echo "ERROR: You need the Android SDK installed and have the ANDROID_SDK_PATH" |
@@ -1230,6 +1272,7 @@ cat <<EOF | |||
1230 | 201) Android 171) HD300 | 1272 | 201) Android 171) HD300 |
1231 | 202) Nokia N8xx | 1273 | 202) Nokia N8xx |
1232 | 203) Nokia N900 | 1274 | 203) Nokia N900 |
1275 | 204) Pandora | ||
1233 | 1276 | ||
1234 | EOF | 1277 | EOF |
1235 | 1278 | ||
@@ -3012,6 +3055,33 @@ fi | |||
3012 | t_model="app" | 3055 | t_model="app" |
3013 | ;; | 3056 | ;; |
3014 | 3057 | ||
3058 | 204|pandora) | ||
3059 | application="yes" | ||
3060 | target_id=77 | ||
3061 | modelname="pandora" | ||
3062 | app_type="sdl-app" | ||
3063 | target="-DPANDORA" | ||
3064 | sharedir="rockbox/share" | ||
3065 | bindir="rockbox/bin" | ||
3066 | libdir="rockbox/lib" | ||
3067 | memory=8 | ||
3068 | uname=`uname` | ||
3069 | pandoracc | ||
3070 | tool="cp " | ||
3071 | boottool="cp " | ||
3072 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | ||
3073 | bmp2rb_native="$rootdir/tools/bmp2rb -f 4" | ||
3074 | output="rockbox" | ||
3075 | bootoutput="rockbox" | ||
3076 | appextra="recorder:gui:radio" | ||
3077 | plugins="yes" | ||
3078 | swcodec="yes" | ||
3079 | # architecture, manufacturer and model for the target-tree build | ||
3080 | t_cpu="hosted" | ||
3081 | t_manufacturer="pandora" | ||
3082 | t_model="app" | ||
3083 | ;; | ||
3084 | |||
3015 | *) | 3085 | *) |
3016 | echo "Please select a supported target platform!" | 3086 | echo "Please select a supported target platform!" |
3017 | exit 7 | 3087 | exit 7 |
@@ -3469,10 +3539,15 @@ if test -n "$t_cpu"; then | |||
3469 | # Maemo needs the SDL port, too | 3539 | # Maemo needs the SDL port, too |
3470 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl/app" | 3540 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl/app" |
3471 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" | 3541 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" |
3542 | elif [ "$t_cpu" = "hosted" ] && [ "$t_manufacturer" = "pandora" ]; then | ||
3543 | # Pandora needs the SDL port, too | ||
3544 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl/app" | ||
3545 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" | ||
3472 | elif [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree | 3546 | elif [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree |
3473 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" | 3547 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" |
3474 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted" | 3548 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted" |
3475 | fi | 3549 | fi |
3550 | |||
3476 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer" | 3551 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer" |
3477 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu" | 3552 | TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu" |
3478 | GCCOPTS="$GCCOPTS" | 3553 | GCCOPTS="$GCCOPTS" |