From 9a1c251785edcde6107f3cb89ef2dab2a463b1fc Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Fri, 10 Feb 2006 07:42:14 +0000 Subject: [PATCH] *** empty log message *** --- build-devkit.sh | 17 +++++++++++++---- dkarm/crtls/ds_arm9_crt0.s | 7 +++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/build-devkit.sh b/build-devkit.sh index f241564..3c63098 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -8,10 +8,10 @@ #--------------------------------------------------------------------------------- BINUTILS_VER=2.16.1 GCC_VER=4.0.2 -NEWLIB_VER=1.13.0 +NEWLIB_VER=1.14.0 LIBOGC_VER=20050812 -LIBGBA_VER=20051018 -LIBNDS_VER=20051018 +LIBGBA_VER=20060209 +LIBNDS_VER=20060201 BINUTILS="binutils-$BINUTILS_VER.tar.bz2" GCC_CORE="gcc-core-$GCC_VER.tar.bz2" @@ -122,7 +122,7 @@ fi echo echo "Please enter the directory where you would like '$package' to be installed:" echo "for mingw/msys you must use :/ or you will have include path problems" -echo "this is the top level directory for devkitpro" +echo "this is the top level directory for devkitpro, i.e. e:/devkitPro" read INSTALLDIR echo @@ -333,11 +333,20 @@ if [ -f $scriptdir/build-gcc.sh ]; then . $scriptdir/build-gcc.sh || { echo "Err if [ -f $scriptdir/build-crtls.sh ]; then . $scriptdir/build-crtls.sh || { echo "Error building crtls"; exit; }; cd $BUILDSCRIPTDIR; fi if [ -f $scriptdir/build-tools.sh ]; then . $scriptdir/build-tools.sh || { echo "Error building tools"; exit; }; cd $BUILDSCRIPTDIR; fi +#--------------------------------------------------------------------------------- +# strip binaries +#--------------------------------------------------------------------------------- strip $INSTALLDIR/$package/bin/* strip $INSTALLDIR/$package/$target/bin/* strip $INSTALLDIR/$package/libexec/gcc/$target/$GCC_VER/* rm -fr $INSTALLDIR/$package/include/c++/$GCC_VER/$target/bits/stdc++.h.gch +#--------------------------------------------------------------------------------- +# strip debug info from libraries +#--------------------------------------------------------------------------------- +find $INSTALLDIR/$package/lib/gcc -name *.a $target-strip -d {} \; +find $INSTALLDIR/$package/$target -name *.a $target-strip -d {} \; + #--------------------------------------------------------------------------------- # Clean up temporary files and source directories #--------------------------------------------------------------------------------- diff --git a/dkarm/crtls/ds_arm9_crt0.s b/dkarm/crtls/ds_arm9_crt0.s index a4879ec..599606a 100644 --- a/dkarm/crtls/ds_arm9_crt0.s +++ b/dkarm/crtls/ds_arm9_crt0.s @@ -44,6 +44,13 @@ _start: mov r0, #0x04000000 @ IME = 0; str r0, [r0, #0x208] +@--------------------------------------------------------------------------------- +@ turn the power on for M3 +@--------------------------------------------------------------------------------- + ldr r1, =0x8203 + add r0,r0,#0x304 + strh r1, [r0] + ldr r1, =0x00002078 @ disable DTCM and protection unit mcr p15, 0, r1, c1, c0