From 050599bb0c3ceb6ba65915d5fbb20d8eb370b359 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 22 Feb 2014 17:14:09 +0100 Subject: [PATCH] Add psp1-cores.sh --- dist-scripts/psp1-cores.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 dist-scripts/psp1-cores.sh diff --git a/dist-scripts/psp1-cores.sh b/dist-scripts/psp1-cores.sh new file mode 100755 index 0000000000..cb713ced8d --- /dev/null +++ b/dist-scripts/psp1-cores.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +#make -C ../ -f Makefile.wii.salamander clean || exit 1 +make -C ../ -f Makefile.psp1 clean || exit 1 + +#make -C ../ -f Makefile.wii.salamander || exit 1 +make -C ../ -f Makefile.psp1 || exit 1 + +for f in *_psp1.a ; do + name=`echo "$f" | sed 's/\(_libretro\|\)_psp1.a$//'` + whole_archive= + big_stack= + if [ $name = "nxengine" ] ; then + whole_archive="WHOLE_ARCHIVE_LINK=1" + fi + if [ $name = "tyrquake" ] ; then + big_stack="BIG_STACK=1" + fi + cp -f "$f" ../libretro_psp1.a + make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1 + mv -f ../retroarchpsp.prx ../psp1/pkg/${name}_libretro_psp1.prx + rm -f ../retroarchpsp.prx +done