RetroArch/dist-scripts/psp1-cores.sh

32 lines
978 B
Bash
Raw Normal View History

2014-02-22 16:14:09 +00:00
#!/bin/sh
2014-06-06 03:14:02 +00:00
mkdir -p ../psp1/pkg/cores/
make -C ../psp1/kernelFunctionsPrx/ clean || exit 1
make -C ../psp1/kernelFunctionsPrx/ || exit 1
cp -f ../kernel_functions.prx ../psp1/pkg/kernel_functions.prx
2014-02-22 16:14:09 +00:00
2014-06-06 03:14:02 +00:00
make -C ../ -f Makefile.psp1.salamander clean || exit 1
make -C ../ -f Makefile.psp1.salamander || exit 1
mv -f ../EBOOT.PBP ../psp1/pkg/EBOOT.PBP
make -C ../ -f Makefile.psp1 clean || exit 1
2014-02-22 16:14:09 +00:00
for f in *_psp1.a ; do
name=`echo "$f" | sed 's/\(_libretro_psp1\|\).a$//'`
2014-02-22 16:14:09 +00:00
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
echo "NXEngine found, applying whole archive linking..."
2014-02-22 16:14:09 +00:00
whole_archive="WHOLE_ARCHIVE_LINK=1"
fi
if [ $name = "tyrquake" ] ; then
echo "Tyrquake found, applying big stack..."
2014-02-22 16:14:09 +00:00
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_psp1.a
make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1
2014-06-06 03:14:02 +00:00
mv -f ../EBOOT.PBP ../psp1/pkg/cores/${name}_libretro.PBP
rm -f ../retroarchpsp.elf
2014-02-22 16:14:09 +00:00
done