diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/tools/configure b/tools/configure index 1cfc4cc104..e2e0befae5 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -167,7 +167,7 @@ simcc () { | |||
167 | exit | 167 | exit |
168 | ;; | 168 | ;; |
169 | esac | 169 | esac |
170 | 170 | ||
171 | if [ "`uname -m`" = "x86_64" ]; then | 171 | if [ "`uname -m`" = "x86_64" ]; then |
172 | GCCOPTS="$GCCOPTS -fPIC" # needed to make shared objects link | 172 | GCCOPTS="$GCCOPTS -fPIC" # needed to make shared objects link |
173 | fi | 173 | fi |
@@ -284,7 +284,7 @@ whichdevel () { | |||
284 | echo "done" | 284 | echo "done" |
285 | cont=0 | 285 | cont=0 |
286 | ;; | 286 | ;; |
287 | esac | 287 | esac |
288 | done | 288 | done |
289 | 289 | ||
290 | if [ "yes" = "$use_debug" ]; then | 290 | if [ "yes" = "$use_debug" ]; then |
@@ -402,7 +402,7 @@ voiceconfig () { | |||
402 | NOISEFLOOR=$DEFAULT_NOISEFLOOR | 402 | NOISEFLOOR=$DEFAULT_NOISEFLOOR |
403 | esac | 403 | esac |
404 | echo "Using $TTS_ENGINE for TTS" | 404 | echo "Using $TTS_ENGINE for TTS" |
405 | 405 | ||
406 | echo "" | 406 | echo "" |
407 | 407 | ||
408 | if [ `which oggenc` ]; then | 408 | if [ `which oggenc` ]; then |
@@ -416,7 +416,7 @@ voiceconfig () { | |||
416 | SPEEXENC="(S)peexenc " | 416 | SPEEXENC="(S)peexenc " |
417 | DEFAULT_ENC="speexenc" | 417 | DEFAULT_ENC="speexenc" |
418 | SPEEX_OPTS="" # TODO: find appropriate options for speex | 418 | SPEEX_OPTS="" # TODO: find appropriate options for speex |
419 | DEFAULT_ENC_OPTS=$SPEEX_OPTS | 419 | DEFAULT_ENC_OPTS=$SPEEX_OPTS |
420 | DEFAULT_CHOICE="S" | 420 | DEFAULT_CHOICE="S" |
421 | fi | 421 | fi |
422 | if [ `which lame` ]; then | 422 | if [ `which lame` ]; then |
@@ -464,32 +464,32 @@ ${ENC_OPTS} | |||
464 | EOF | 464 | EOF |
465 | } | 465 | } |
466 | 466 | ||
467 | picklang() { | 467 | picklang() { |
468 | # figure out which languages that are around | 468 | # figure out which languages that are around |
469 | for file in $rootdir/apps/lang/*.lang; do | 469 | for file in $rootdir/apps/lang/*.lang; do |
470 | clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1` | 470 | clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1` |
471 | langs="$langs $clean" | 471 | langs="$langs $clean" |
472 | done | 472 | done |
473 | 473 | ||
474 | num=1 | 474 | num=1 |
475 | for one in $langs; do | 475 | for one in $langs; do |
476 | echo "$num. $one" | 476 | echo "$num. $one" |
477 | num=`expr $num + 1` | 477 | num=`expr $num + 1` |
478 | done | 478 | done |
479 | 479 | ||
480 | read pick | 480 | read pick |
481 | return $pick; | 481 | return $pick; |
482 | } | 482 | } |
483 | 483 | ||
484 | whichlang() { | 484 | whichlang() { |
485 | num=1 | 485 | num=1 |
486 | for one in $langs; do | 486 | for one in $langs; do |
487 | if [ "$num" = "$pick" ]; then | 487 | if [ "$num" = "$pick" ]; then |
488 | echo $one | 488 | echo $one |
489 | return | 489 | return |
490 | fi | 490 | fi |
491 | num=`expr $num + 1` | 491 | num=`expr $num + 1` |
492 | done | 492 | done |
493 | } | 493 | } |
494 | 494 | ||
495 | target=$1 | 495 | target=$1 |
@@ -553,17 +553,17 @@ toolsdir='\$(ROOTDIR)/tools' | |||
553 | 553 | ||
554 | echo "Enter target platform:" | 554 | echo "Enter target platform:" |
555 | cat <<EOF | 555 | cat <<EOF |
556 | ==Archos== ==iriver== ==Apple iPod== | 556 | ==Archos== ==iriver== ==Apple iPod== |
557 | 0) Player/Studio 10) H120/H140 20) Color/Photo | 557 | 0) Player/Studio 10) H120/H140 20) Color/Photo |
558 | 1) Recorder 11) H320/H340 21) Nano | 558 | 1) Recorder 11) H320/H340 21) Nano |
559 | 2) FM Recorder 12) iHP-100/110/115 22) Video | 559 | 2) FM Recorder 12) iHP-100/110/115 22) Video |
560 | 3) Recorder v2 13) iFP-790 23) 3G | 560 | 3) Recorder v2 13) iFP-790 23) 3G |
561 | 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale | 561 | 4) Ondio SP 14) H10 20Gb 24) 4G Grayscale |
562 | 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G | 562 | 5) Ondio FM 15) H10 5/6Gb 25) Mini 1G |
563 | 26) Mini 2G | 563 | 26) Mini 2G |
564 | 564 | ||
565 | ==iAudio== ==Toshiba== ==SanDisk== | 565 | ==iAudio== ==Toshiba== ==SanDisk== |
566 | 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200 | 566 | 30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200 |
567 | 567 | ||
568 | ==Tatung== | 568 | ==Tatung== |
569 | 60) Elio TPJ-1022 | 569 | 60) Elio TPJ-1022 |
@@ -598,7 +598,7 @@ EOF | |||
598 | # output: the final output file name | 598 | # output: the final output file name |
599 | # boottool: the tool that takes a plain binary and generates a bootloader | 599 | # boottool: the tool that takes a plain binary and generates a bootloader |
600 | # file for your target (or blank to use $tool) | 600 | # file for your target (or blank to use $tool) |
601 | # bootoutput:the final output file name for the bootloader (or blank to use | 601 | # bootoutput:the final output file name for the bootloader (or blank to use |
602 | # $output) | 602 | # $output) |
603 | # appextra: passed to the APPEXTRA variable in the Makefiles. | 603 | # appextra: passed to the APPEXTRA variable in the Makefiles. |
604 | # TODO: add proper explanation | 604 | # TODO: add proper explanation |
@@ -953,7 +953,7 @@ EOF | |||
953 | t_manufacturer="ipod" | 953 | t_manufacturer="ipod" |
954 | t_model="3g" | 954 | t_model="3g" |
955 | ;; | 955 | ;; |
956 | 956 | ||
957 | 24|ipod4g) | 957 | 24|ipod4g) |
958 | target_id=17 | 958 | target_id=17 |
959 | archos="ipod4g" | 959 | archos="ipod4g" |
@@ -978,7 +978,7 @@ EOF | |||
978 | t_manufacturer="ipod" | 978 | t_manufacturer="ipod" |
979 | t_model="4g" | 979 | t_model="4g" |
980 | ;; | 980 | ;; |
981 | 981 | ||
982 | 25|ipodmini) | 982 | 25|ipodmini) |
983 | target_id=18 | 983 | target_id=18 |
984 | archos="ipodmini" | 984 | archos="ipodmini" |
@@ -1003,7 +1003,7 @@ EOF | |||
1003 | t_manufacturer="ipod" | 1003 | t_manufacturer="ipod" |
1004 | t_model="mini" | 1004 | t_model="mini" |
1005 | ;; | 1005 | ;; |
1006 | 1006 | ||
1007 | 13|ifp7xx) | 1007 | 13|ifp7xx) |
1008 | target_id=19 | 1008 | target_id=19 |
1009 | archos="ifp7xx" | 1009 | archos="ifp7xx" |
@@ -1031,7 +1031,7 @@ EOF | |||
1031 | target_id=20 | 1031 | target_id=20 |
1032 | archos="gigabeatf" | 1032 | archos="gigabeatf" |
1033 | target="-DGIGABEAT_F" | 1033 | target="-DGIGABEAT_F" |
1034 | memory=30 # always | 1034 | memory=32 # always |
1035 | arm9tdmicc | 1035 | arm9tdmicc |
1036 | tool="cp" | 1036 | tool="cp" |
1037 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 1037 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -1286,7 +1286,7 @@ fi | |||
1286 | toolset=''; | 1286 | toolset=''; |
1287 | apps="manual" | 1287 | apps="manual" |
1288 | echo "Manual build selected" | 1288 | echo "Manual build selected" |
1289 | ;; | 1289 | ;; |
1290 | [Vv]) | 1290 | [Vv]) |
1291 | echo "Voice build selected" | 1291 | echo "Voice build selected" |
1292 | voiceconfig | 1292 | voiceconfig |
@@ -1312,7 +1312,7 @@ fi | |||
1312 | ;; | 1312 | ;; |
1313 | ipodmini2g) | 1313 | ipodmini2g) |
1314 | manualdev="ipodmini" | 1314 | manualdev="ipodmini" |
1315 | ;; | 1315 | ;; |
1316 | *) | 1316 | *) |
1317 | manualdev=$archos | 1317 | manualdev=$archos |
1318 | ;; | 1318 | ;; |
@@ -1329,15 +1329,15 @@ language="english" | |||
1329 | 1329 | ||
1330 | # Ask about language if building voice | 1330 | # Ask about language if building voice |
1331 | if [ "yes" = "$voice" ]; then | 1331 | if [ "yes" = "$voice" ]; then |
1332 | echo "Select a number for the language to use (default is english)" | 1332 | echo "Select a number for the language to use (default is english)" |
1333 | 1333 | ||
1334 | picklang | 1334 | picklang |
1335 | language=`whichlang` | 1335 | language=`whichlang` |
1336 | 1336 | ||
1337 | if [ -z "$language" ]; then | 1337 | if [ -z "$language" ]; then |
1338 | # pick a default | 1338 | # pick a default |
1339 | language="english" | 1339 | language="english" |
1340 | fi | 1340 | fi |
1341 | echo "Language set to $language" | 1341 | echo "Language set to $language" |
1342 | fi | 1342 | fi |
1343 | 1343 | ||
@@ -1378,14 +1378,14 @@ else | |||
1378 | 1378 | ||
1379 | echo "Using $CC $gccver ($gccnum)" | 1379 | echo "Using $CC $gccver ($gccnum)" |
1380 | 1380 | ||
1381 | if test "$gccnum" -ge "400"; then | 1381 | if test "$gccnum" -ge "400"; then |
1382 | # gcc 4.0 is just *so* much pickier on arguments that differ in signedness | 1382 | # gcc 4.0 is just *so* much pickier on arguments that differ in signedness |
1383 | # so we ignore that warnings for now | 1383 | # so we ignore that warnings for now |
1384 | # -Wno-pointer-sign | 1384 | # -Wno-pointer-sign |
1385 | GCCOPTS="$GCCOPTS -Wno-pointer-sign" | 1385 | GCCOPTS="$GCCOPTS -Wno-pointer-sign" |
1386 | fi | 1386 | fi |
1387 | 1387 | ||
1388 | if test "$gccnum" -ge "401"; then | 1388 | if test "$gccnum" -ge "401"; then |
1389 | # this is a lame hack to avoid "warning: dereferencing type-punned pointer | 1389 | # this is a lame hack to avoid "warning: dereferencing type-punned pointer |
1390 | # will break strict-aliasing rules" | 1390 | # will break strict-aliasing rules" |
1391 | 1391 | ||
@@ -1396,7 +1396,7 @@ fi | |||
1396 | 1396 | ||
1397 | # check the compiler for SH platforms | 1397 | # check the compiler for SH platforms |
1398 | if test "$CC" = "sh-elf-gcc"; then | 1398 | if test "$CC" = "sh-elf-gcc"; then |
1399 | if test "$gccnum" -lt "400"; then | 1399 | if test "$gccnum" -lt "400"; then |
1400 | echo "WARNING: Consider upgrading your compiler to the 4.0.X series!" | 1400 | echo "WARNING: Consider upgrading your compiler to the 4.0.X series!" |
1401 | echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" | 1401 | echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" |
1402 | else | 1402 | else |
@@ -1689,7 +1689,7 @@ help: | |||
1689 | @echo "fontzip - creates rockbox-fonts.zip" | 1689 | @echo "fontzip - creates rockbox-fonts.zip" |
1690 | @echo "mapzip - creates rockbox-maps.zip with all .map files" | 1690 | @echo "mapzip - creates rockbox-maps.zip with all .map files" |
1691 | @echo "tools - builds the tools only" | 1691 | @echo "tools - builds the tools only" |
1692 | @echo "install - installs your build (for simulator builds only)" | 1692 | @echo "install - installs your build (for simulator builds only)" |
1693 | 1693 | ||
1694 | EOF | 1694 | EOF |
1695 | 1695 | ||