(PSP) dist script: force a clean when the BIG_STACK option is used.
This commit is contained in:
parent
4317c4f1cb
commit
6f1ed97faf
|
@ -16,16 +16,27 @@ for f in *_psp1.a ; do
|
||||||
name=`echo "$f" | sed 's/\(_libretro_psp1\|\).a$//'`
|
name=`echo "$f" | sed 's/\(_libretro_psp1\|\).a$//'`
|
||||||
whole_archive=
|
whole_archive=
|
||||||
big_stack=
|
big_stack=
|
||||||
|
|
||||||
if [ $name = "nxengine" ] ; then
|
if [ $name = "nxengine" ] ; then
|
||||||
echo "NXEngine found, applying whole archive linking..."
|
echo "NXEngine found, applying whole archive linking..."
|
||||||
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $name = "tyrquake" ] ; then
|
if [ $name = "tyrquake" ] ; then
|
||||||
echo "Tyrquake found, applying big stack..."
|
echo "Tyrquake found, applying big stack..."
|
||||||
big_stack="BIG_STACK=1"
|
big_stack="BIG_STACK=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $big_stack="BIG_STACK=1" ] ; then
|
||||||
|
make -C ../ -f Makefile.psp1 clean || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cp -f "$f" ../libretro_psp1.a
|
cp -f "$f" ../libretro_psp1.a
|
||||||
make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1
|
make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1
|
||||||
mv -f ../EBOOT.PBP ../psp1/pkg/cores/${name}_libretro.PBP
|
mv -f ../EBOOT.PBP ../psp1/pkg/cores/${name}_libretro.PBP
|
||||||
rm -f ../retroarchpsp.elf
|
rm -f ../retroarchpsp.elf
|
||||||
|
|
||||||
|
if [ $big_stack="BIG_STACK=1" ] ; then
|
||||||
|
make -C ../ -f Makefile.psp1 clean || exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue