mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-09-07 18:15:57 -05:00
added devkitPSP and rearranged scripts in directories by toolchain
This commit is contained in:
37
dkarm/scripts/build-crtls.sh
Normal file
37
dkarm/scripts/build-crtls.sh
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
export DEVKITARM=$TOOLPATH/devkitARM
|
||||
export DEVKITPRO=$TOOLPATH
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# Install and build the gba crt
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
cp $(pwd)/dkarm/crtls/* $DEVKITARM/arm-elf/lib/
|
||||
cd $DEVKITARM/arm-elf/lib/
|
||||
$MAKE CRT=gba
|
||||
$MAKE CRT=gp32
|
||||
$MAKE CRT=er
|
||||
$MAKE CRT=gp32_gpsdk
|
||||
$MAKE CRT=ds_arm7
|
||||
$MAKE CRT=ds_arm9
|
||||
$MAKE CRT=ds_cart
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
$MAKE -C tools/general
|
||||
$MAKE -C tools/general install PREFIX=$DEVKITARM/bin
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# copy base rulesets
|
||||
#---------------------------------------------------------------------------------
|
||||
cp dkarm/rules/* $DEVKITARM
|
||||
|
||||
cd $LIBNDS_SRCDIR
|
||||
echo "building libnds ..."
|
||||
$MAKE install INSTALLDIR=$TOOLPATH
|
||||
|
||||
echo "building libgba ..."
|
||||
cd $BUILDSCRIPTDIR
|
||||
cd $LIBGBA_SRCDIR
|
||||
$MAKE install INSTALLDIR=$TOOLPATH
|
||||
95
dkarm/scripts/build-gcc.sh
Normal file
95
dkarm/scripts/build-gcc.sh
Normal file
@@ -0,0 +1,95 @@
|
||||
#!/bin/sh
|
||||
#---------------------------------------------------------------------------------
|
||||
# Check Parameters
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
prefix=$INSTALLDIR/devkitARM
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install binutils
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
mkdir -p $target/binutils
|
||||
cd $target/binutils
|
||||
|
||||
../../$BINUTILS_SRCDIR/configure \
|
||||
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
|
||||
--disable-threads --with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
|
||||
2>&1 | tee $BUILDSCRIPTDIR/binutils_configure.log
|
||||
|
||||
|
||||
$MAKE 2>&1 | tee binutils_make.log
|
||||
$MAKE install 2>&1 | tee $BUILDSCRIPTDIR/binutils_install.log
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/binutils
|
||||
rm -fr $BINUTILS_SRCDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install just the c compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
mkdir -p $target/gcc
|
||||
cd $target/gcc
|
||||
|
||||
|
||||
../../$GCC_SRCDIR/configure \
|
||||
--enable-languages=c,c++ \
|
||||
--with-cpu=arm7tdmi\
|
||||
--enable-interwork --enable-multilib\
|
||||
--with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
|
||||
--disable-shared --disable-threads --disable-win32-registry --disable-nls\
|
||||
--target=$target \
|
||||
--with-newlib \
|
||||
--prefix=$prefix -v\
|
||||
2>&1 | tee $BUILDSCRIPTDIR/gcc_configure.log
|
||||
|
||||
$MAKE all-gcc 2>&1| tee $BUILDSCRIPTDIR/gcc_make.log
|
||||
$MAKE install-gcc 2>&1 | tee $BUILDSCRIPTDIR/gcc_install.log
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install newlib
|
||||
#---------------------------------------------------------------------------------
|
||||
mkdir -p $target/newlib
|
||||
cd $target/newlib
|
||||
|
||||
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \
|
||||
--enable-serial-configure \
|
||||
--target=$target \
|
||||
--prefix=$prefix \
|
||||
--enable-newlib-mb \
|
||||
| tee $BUILDSCRIPTDIR/newlib_configure.log
|
||||
|
||||
mkdir -p etc
|
||||
|
||||
$MAKE | tee $BUILDSCRIPTDIR/newlib_make.log
|
||||
$MAKE install | tee $BUILDSCRIPTDIR/newlib_install.log
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/newlib
|
||||
rm -fr $NEWLIB_SRCDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install the final compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
cd $target/gcc
|
||||
|
||||
$MAKE | tee $BUILDSCRIPTDIR/gcc_final_make.log 2>&1
|
||||
$MAKE install | tee $BUILDSCRIPTDIR/gcc_final_install.log 2>&1
|
||||
|
||||
cd $BUILDSCRIPTDIR
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# remove temp stuff to conserve disc space
|
||||
#---------------------------------------------------------------------------------
|
||||
rm -fr $target/gcc
|
||||
rm -fr $GCC_SRCDIR
|
||||
16
dkarm/scripts/build-tools.sh
Normal file
16
dkarm/scripts/build-tools.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
export DEVKITARM=$TOOLPATH/devkitARM
|
||||
export DEVKITPRO=$TOOLPATH
|
||||
|
||||
$MAKE -C tools/gba
|
||||
$MAKE -C tools/gba install PREFIX=$DEVKITARM/bin
|
||||
|
||||
$MAKE -C tools/gp32
|
||||
$MAKE -C tools/gp32 install PREFIX=$DEVKITARM/bin
|
||||
|
||||
$MAKE -C tools/nds/
|
||||
$MAKE -C tools/nds/ install PREFIX=$DEVKITARM/bin
|
||||
|
||||
$MAKE -C tools clean
|
||||
Reference in New Issue
Block a user