FS#5472 add a memory size prompt to configure to allow ipod video builds for
64 MB ram git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13408 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ea228d39d
commit
cca0e3d8f8
2 changed files with 39 additions and 23 deletions
|
@ -88,7 +88,12 @@ pad_skip:
|
||||||
ldr r3, =0x3f84 /* r3 and r1 values here are magic, don't touch */
|
ldr r3, =0x3f84 /* r3 and r1 values here are magic, don't touch */
|
||||||
orr r3, r3, r5 /* adjust for execute address */
|
orr r3, r3, r5 /* adjust for execute address */
|
||||||
ldr r2, =0xf000f014
|
ldr r2, =0xf000f014
|
||||||
|
#if MEM > 32
|
||||||
|
mov r1, #0x7400 /* r1 appears to indicate how much memory (not in
|
||||||
|
bytes) is remapped */
|
||||||
|
#else
|
||||||
mov r1, #0x3a00
|
mov r1, #0x3a00
|
||||||
|
#endif
|
||||||
ldr r0, =0xf000f010
|
ldr r0, =0xf000f010
|
||||||
mov pc, #0x40000000
|
mov pc, #0x40000000
|
||||||
|
|
||||||
|
|
57
tools/configure
vendored
57
tools/configure
vendored
|
@ -550,6 +550,8 @@ EOF
|
||||||
# have to be the menu number. Just use the currently highest
|
# have to be the menu number. Just use the currently highest
|
||||||
# number+1 when you add a new target.
|
# number+1 when you add a new target.
|
||||||
# archos: short model name used all over to identify this target
|
# archos: short model name used all over to identify this target
|
||||||
|
# memory: number of megabytes of RAM this target has. If the amount can
|
||||||
|
# be selected by the size prompt, let memory be unset here
|
||||||
# target: -Ddefine passed to the build commands to make the correct
|
# target: -Ddefine passed to the build commands to make the correct
|
||||||
# config-*.h file get included etc
|
# config-*.h file get included etc
|
||||||
# tool: the tool that takes a plain binary and converts that into a
|
# tool: the tool that takes a plain binary and converts that into a
|
||||||
|
@ -582,7 +584,6 @@ EOF
|
||||||
target_id=1
|
target_id=1
|
||||||
archos="player"
|
archos="player"
|
||||||
target="-DARCHOS_PLAYER"
|
target="-DARCHOS_PLAYER"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble"
|
tool="$rootdir/tools/scramble"
|
||||||
output="archos.mod"
|
output="archos.mod"
|
||||||
|
@ -609,7 +610,6 @@ EOF
|
||||||
target_id=2
|
target_id=2
|
||||||
archos="recorder"
|
archos="recorder"
|
||||||
target="-DARCHOS_RECORDER"
|
target="-DARCHOS_RECORDER"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble"
|
tool="$rootdir/tools/scramble"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -632,7 +632,6 @@ EOF
|
||||||
target_id=3
|
target_id=3
|
||||||
archos="fmrecorder"
|
archos="fmrecorder"
|
||||||
target="-DARCHOS_FMRECORDER"
|
target="-DARCHOS_FMRECORDER"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble -fm"
|
tool="$rootdir/tools/scramble -fm"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -655,7 +654,6 @@ EOF
|
||||||
target_id=4
|
target_id=4
|
||||||
archos="recorderv2"
|
archos="recorderv2"
|
||||||
target="-DARCHOS_RECORDERV2"
|
target="-DARCHOS_RECORDERV2"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble -v2"
|
tool="$rootdir/tools/scramble -v2"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -678,7 +676,6 @@ EOF
|
||||||
target_id=7
|
target_id=7
|
||||||
archos="ondiosp"
|
archos="ondiosp"
|
||||||
target="-DARCHOS_ONDIOSP"
|
target="-DARCHOS_ONDIOSP"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble -osp"
|
tool="$rootdir/tools/scramble -osp"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -701,7 +698,6 @@ EOF
|
||||||
target_id=8
|
target_id=8
|
||||||
archos="ondiofm"
|
archos="ondiofm"
|
||||||
target="-DARCHOS_ONDIOFM"
|
target="-DARCHOS_ONDIOFM"
|
||||||
memory="2"
|
|
||||||
shcc
|
shcc
|
||||||
tool="$rootdir/tools/scramble -ofm"
|
tool="$rootdir/tools/scramble -ofm"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -923,7 +919,6 @@ EOF
|
||||||
target_id=15
|
target_id=15
|
||||||
archos="ipodvideo"
|
archos="ipodvideo"
|
||||||
target="-DIPOD_VIDEO"
|
target="-DIPOD_VIDEO"
|
||||||
memory=32 # 30GB models have 32MB, 60GB have 64MB
|
|
||||||
arm7tdmicc
|
arm7tdmicc
|
||||||
tool="$rootdir/tools/scramble -add=ipvd"
|
tool="$rootdir/tools/scramble -add=ipvd"
|
||||||
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
|
||||||
|
@ -1236,26 +1231,42 @@ EOF
|
||||||
|
|
||||||
#remove start
|
#remove start
|
||||||
############################################################################
|
############################################################################
|
||||||
# Amount of memory, for those that can differ.
|
# Amount of memory, for those that can differ. They have $memory unset at
|
||||||
|
# this point.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$memory" = "2" ]; then
|
echo "$memory memory!"
|
||||||
size="2"
|
if [ -z "$memory" ]; then
|
||||||
if [ -z "$update" ]; then
|
|
||||||
echo "Enter size of your RAM (in MB): (defaults to 2)"
|
|
||||||
size=`input`;
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $size in
|
case $target_id in
|
||||||
8)
|
15)
|
||||||
memory="8"
|
echo "Enter size of your RAM (in MB): (Defaults to 32)"
|
||||||
;;
|
size=`input`;
|
||||||
*)
|
case $size in
|
||||||
memory="2"
|
60|64)
|
||||||
;;
|
memory="64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
memory="32"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Enter size of your RAM (in MB): (defaults to 2)"
|
||||||
|
size=`input`;
|
||||||
|
case $size in
|
||||||
|
8)
|
||||||
|
memory="8"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
memory="2"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
esac
|
echo "Memory size selected: $memory MB"
|
||||||
echo "Memory size selected: $memory MB"
|
|
||||||
fi
|
fi
|
||||||
#remove end
|
#remove end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue