2013-02-01 23:58:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
make -C ../ -f Makefile.ps3.salamander clean || exit 1
|
|
|
|
make -C ../ -f Makefile.ps3.rgl clean || exit 1
|
|
|
|
make -C ../ -f Makefile.ps3 clean || exit 1
|
|
|
|
|
|
|
|
make -C ../ -f Makefile.ps3.salamander || exit 1
|
|
|
|
make -C ../ -f Makefile.ps3.rgl || exit 1
|
|
|
|
|
|
|
|
EXE_PATH=/usr/local/cell/host-win32/bin
|
|
|
|
MAKE_FSELF_NPDRM=$EXE_PATH/make_fself_npdrm.exe
|
|
|
|
MAKE_PACKAGE_NPDRM=$EXE_PATH/make_package_npdrm.exe
|
|
|
|
|
|
|
|
for f in *_ps3.a ; do
|
2014-04-17 16:10:04 +00:00
|
|
|
name=`echo "$f" | sed 's/\(_libretro_ps3\|\).a$//'`
|
2013-02-06 02:38:32 +00:00
|
|
|
whole_archive=
|
|
|
|
if [ $name = "nxengine" ] ; then
|
2014-04-17 16:10:04 +00:00
|
|
|
echo "NXEngine found, applying whole archive linking..."
|
2013-02-06 02:38:32 +00:00
|
|
|
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
|
|
|
echo $name yes
|
|
|
|
fi
|
2013-02-01 23:58:57 +00:00
|
|
|
cp -f "$f" ../libretro_ps3.a
|
2013-02-06 02:38:32 +00:00
|
|
|
make -C ../ -f Makefile.ps3 $whole_archive -j3 || exit 1
|
2013-02-01 23:58:57 +00:00
|
|
|
$MAKE_FSELF_NPDRM ../retroarch_ps3.elf ../CORE.SELF
|
2013-11-02 03:36:30 +00:00
|
|
|
mv -f ../CORE.SELF ../ps3/pkg/USRDIR/cores/"${name}_libretro_ps3.SELF"
|
2013-02-01 23:58:57 +00:00
|
|
|
rm -f ../retroarch_ps3.elf ../retroarch_ps3.self ../CORE.SELF
|
|
|
|
done
|
|
|
|
|
|
|
|
cp -r ../media/rmenu/*.png ../ps3/pkg/USRDIR/cores/borders/Menu/
|
|
|
|
|
2014-02-21 21:15:19 +00:00
|
|
|
make -C ../ -f Makefile.griffin platform=ps3 shaders-deploy
|
2013-02-01 23:58:57 +00:00
|
|
|
|
|
|
|
$MAKE_FSELF_NPDRM ../retroarch-salamander_ps3.elf ../ps3/pkg/USRDIR/EBOOT.BIN
|
|
|
|
rm -rf ../retroarch-salamander_ps3.elf
|
|
|
|
$MAKE_PACKAGE_NPDRM ../ps3/pkg/package.conf ../ps3/pkg
|