mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-15 14:26:07 -05:00
62 lines
2.1 KiB
Bash
62 lines
2.1 KiB
Bash
#!/bin/sh
|
|
|
|
export DEVKITPRO=$TOOLPATH
|
|
export DEVKITARM=$DEVKITPRO/devkitARM
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# copy base rulesets
|
|
#---------------------------------------------------------------------------------
|
|
cp -v $BUILDSCRIPTDIR/dkarm-eabi/rules/* $prefix
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# Install and build the gba crt
|
|
#---------------------------------------------------------------------------------
|
|
|
|
cp -v $BUILDSCRIPTDIR/dkarm-eabi/crtls/* $prefix/$target/lib/
|
|
cd $prefix/$target/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
|
|
$target-gcc -march=armv6k -mfloat-abi=hard -c 3dsx_crt0.s -o armv6k/fpu/3dsx_crt0.o
|
|
|
|
cd $BUILDDIR/libgba-$LIBGBA_VER
|
|
$MAKE || { echo "error building libgba"; exit 1; }
|
|
$MAKE install || { echo "error installing libgba"; exit 1; }
|
|
|
|
cd $BUILDDIR/libnds-$LIBNDS_VER
|
|
$MAKE || { echo "error building libnds"; exit 1; }
|
|
$MAKE install || { echo "error installing libnds"; exit 1; }
|
|
|
|
cd $BUILDDIR/dswifi-$DSWIFI_VER
|
|
$MAKE || { echo "error building dswifi"; exit 1; }
|
|
$MAKE install || { echo "error installing dswifi"; exit 1; }
|
|
|
|
cd $BUILDDIR/maxmod-$MAXMOD_VER
|
|
$MAKE || { echo "error building maxmod"; exit 1; }
|
|
$MAKE install || { echo "error installing maxmod"; exit 1; }
|
|
|
|
cd $BUILDDIR/default_arm7-$DEFAULT_ARM7_VER
|
|
$MAKE || { echo "error building default arm7"; exit 1; }
|
|
$MAKE install || { echo "error installing default arm7"; exit 1; }
|
|
|
|
cd $BUILDDIR/libfat-$LIBFAT_VER
|
|
$MAKE nds-install || { echo "error building nds libfat"; exit 1; }
|
|
$MAKE gba-install || { echo "error installing gba libfat"; exit 1; }
|
|
|
|
cd $BUILDDIR/libmirko-$LIBMIRKO_VER
|
|
$MAKE || { echo "error building libmirko"; exit 1; }
|
|
$MAKE install || { echo "error installing libmirko"; exit 1; }
|
|
|
|
cd $BUILDDIR/libfilesystem-$FILESYSTEM_VER
|
|
$MAKE || { echo "error building libfilesystem"; exit 1; }
|
|
$MAKE install || { echo "error installing libfilesystem"; exit 1; }
|
|
|
|
cd $BUILDDIR/libctru-$LIBCTRU_VER
|
|
$MAKE || { echo "error building libctru"; exit 1; }
|
|
$MAKE install || { echo "error installing libctru"; exit 1; }
|
|
|