diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 61 |
1 files changed, 36 insertions, 25 deletions
diff --git a/tools/configure b/tools/configure index a507fdd31a..5626cb1619 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -550,6 +550,8 @@ EOF | |||
550 | # have to be the menu number. Just use the currently highest | 550 | # have to be the menu number. Just use the currently highest |
551 | # number+1 when you add a new target. | 551 | # number+1 when you add a new target. |
552 | # archos: short model name used all over to identify this target | 552 | # archos: short model name used all over to identify this target |
553 | # memory: number of megabytes of RAM this target has. If the amount can | ||
554 | # be selected by the size prompt, let memory be unset here | ||
553 | # target: -Ddefine passed to the build commands to make the correct | 555 | # target: -Ddefine passed to the build commands to make the correct |
554 | # config-*.h file get included etc | 556 | # config-*.h file get included etc |
555 | # tool: the tool that takes a plain binary and converts that into a | 557 | # tool: the tool that takes a plain binary and converts that into a |
@@ -582,7 +584,6 @@ EOF | |||
582 | target_id=1 | 584 | target_id=1 |
583 | archos="player" | 585 | archos="player" |
584 | target="-DARCHOS_PLAYER" | 586 | target="-DARCHOS_PLAYER" |
585 | memory="2" | ||
586 | shcc | 587 | shcc |
587 | tool="$rootdir/tools/scramble" | 588 | tool="$rootdir/tools/scramble" |
588 | output="archos.mod" | 589 | output="archos.mod" |
@@ -609,7 +610,6 @@ EOF | |||
609 | target_id=2 | 610 | target_id=2 |
610 | archos="recorder" | 611 | archos="recorder" |
611 | target="-DARCHOS_RECORDER" | 612 | target="-DARCHOS_RECORDER" |
612 | memory="2" | ||
613 | shcc | 613 | shcc |
614 | tool="$rootdir/tools/scramble" | 614 | tool="$rootdir/tools/scramble" |
615 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 615 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -632,7 +632,6 @@ EOF | |||
632 | target_id=3 | 632 | target_id=3 |
633 | archos="fmrecorder" | 633 | archos="fmrecorder" |
634 | target="-DARCHOS_FMRECORDER" | 634 | target="-DARCHOS_FMRECORDER" |
635 | memory="2" | ||
636 | shcc | 635 | shcc |
637 | tool="$rootdir/tools/scramble -fm" | 636 | tool="$rootdir/tools/scramble -fm" |
638 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 637 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -655,7 +654,6 @@ EOF | |||
655 | target_id=4 | 654 | target_id=4 |
656 | archos="recorderv2" | 655 | archos="recorderv2" |
657 | target="-DARCHOS_RECORDERV2" | 656 | target="-DARCHOS_RECORDERV2" |
658 | memory="2" | ||
659 | shcc | 657 | shcc |
660 | tool="$rootdir/tools/scramble -v2" | 658 | tool="$rootdir/tools/scramble -v2" |
661 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 659 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -678,7 +676,6 @@ EOF | |||
678 | target_id=7 | 676 | target_id=7 |
679 | archos="ondiosp" | 677 | archos="ondiosp" |
680 | target="-DARCHOS_ONDIOSP" | 678 | target="-DARCHOS_ONDIOSP" |
681 | memory="2" | ||
682 | shcc | 679 | shcc |
683 | tool="$rootdir/tools/scramble -osp" | 680 | tool="$rootdir/tools/scramble -osp" |
684 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 681 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -701,7 +698,6 @@ EOF | |||
701 | target_id=8 | 698 | target_id=8 |
702 | archos="ondiofm" | 699 | archos="ondiofm" |
703 | target="-DARCHOS_ONDIOFM" | 700 | target="-DARCHOS_ONDIOFM" |
704 | memory="2" | ||
705 | shcc | 701 | shcc |
706 | tool="$rootdir/tools/scramble -ofm" | 702 | tool="$rootdir/tools/scramble -ofm" |
707 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 703 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -923,7 +919,6 @@ EOF | |||
923 | target_id=15 | 919 | target_id=15 |
924 | archos="ipodvideo" | 920 | archos="ipodvideo" |
925 | target="-DIPOD_VIDEO" | 921 | target="-DIPOD_VIDEO" |
926 | memory=32 # 30GB models have 32MB, 60GB have 64MB | ||
927 | arm7tdmicc | 922 | arm7tdmicc |
928 | tool="$rootdir/tools/scramble -add=ipvd" | 923 | tool="$rootdir/tools/scramble -add=ipvd" |
929 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" | 924 | bmp2rb_mono="$rootdir/tools/bmp2rb -f 0" |
@@ -1236,26 +1231,42 @@ EOF | |||
1236 | 1231 | ||
1237 | #remove start | 1232 | #remove start |
1238 | ############################################################################ | 1233 | ############################################################################ |
1239 | # Amount of memory, for those that can differ. | 1234 | # Amount of memory, for those that can differ. They have $memory unset at |
1235 | # this point. | ||
1240 | # | 1236 | # |
1241 | 1237 | ||
1242 | if [ "$memory" = "2" ]; then | 1238 | echo "$memory memory!" |
1243 | size="2" | 1239 | if [ -z "$memory" ]; then |
1244 | if [ -z "$update" ]; then | 1240 | |
1245 | echo "Enter size of your RAM (in MB): (defaults to 2)" | 1241 | case $target_id in |
1246 | size=`input`; | 1242 | 15) |
1247 | fi | 1243 | echo "Enter size of your RAM (in MB): (Defaults to 32)" |
1248 | 1244 | size=`input`; | |
1249 | case $size in | 1245 | case $size in |
1250 | 8) | 1246 | 60|64) |
1251 | memory="8" | 1247 | memory="64" |
1252 | ;; | 1248 | ;; |
1253 | *) | 1249 | *) |
1254 | memory="2" | 1250 | memory="32" |
1255 | ;; | 1251 | ;; |
1256 | 1252 | esac | |
1257 | esac | 1253 | ;; |
1258 | echo "Memory size selected: $memory MB" | 1254 | |
1255 | *) | ||
1256 | echo "Enter size of your RAM (in MB): (defaults to 2)" | ||
1257 | size=`input`; | ||
1258 | case $size in | ||
1259 | 8) | ||
1260 | memory="8" | ||
1261 | ;; | ||
1262 | *) | ||
1263 | memory="2" | ||
1264 | ;; | ||
1265 | esac | ||
1266 | ;; | ||
1267 | esac | ||
1268 | |||
1269 | echo "Memory size selected: $memory MB" | ||
1259 | fi | 1270 | fi |
1260 | #remove end | 1271 | #remove end |
1261 | 1272 | ||