Start creating global 'pkg' dir and create vita-cores.sh

This commit is contained in:
twinaphex 2015-08-31 21:04:00 +02:00
parent c9a0a79b15
commit a1e80026c0
9 changed files with 54 additions and 23 deletions

View file

@ -79,7 +79,7 @@ $(APP_BOOTER_DIR)/app_booter.bin:
$(MAKE) -C $(APP_BOOTER_DIR)
pkg: all
cp -r $(DOL_TARGET) wii/pkg/boot.dol
cp -r $(DOL_TARGET) pkg/wii/boot.dol
clean:
rm -f $(DOL_TARGET)

View file

@ -1,9 +1,11 @@
#!/bin/sh
make -C ../ -f Makefile.griffin platform=ngc clean || exit 1
PLATFORM=ngc
for f in *_ngc.a ; do
name=`echo "$f" | sed 's/\(_libretro_ngc\|\).a$//'`
make -C ../ -f Makefile.griffin platform=${PLATFORM} clean || exit 1
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
@ -14,8 +16,8 @@ for f in *_ngc.a ; do
echo "Tyrquake found, applying big stack..."
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_ngc.a
make -C ../ -f Makefile.griffin platform=ngc $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_ngc.dol ../ngc/pkg/${name}_libretro_ngc.dol
rm -f ../retroarch_ngc.dol ../retroarch_ngc.elf ../retroarch_ngc.elf.map
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.griffin platform=${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${PLATFORM}.dol ../pkg/${PLATFORM}/${name}_libretro_${PLATFORM}.dol
rm -f ../retroarch_${PLATFORM}.dol ../retroarch_${PLATFORM}.elf ../retroarch_${PLATFORM}.elf.map
done

View file

@ -1,19 +1,21 @@
#!/bin/sh
mkdir -p ../psp1/pkg/cores/
PLATFORM=psp1
make -C ../psp1/kernelFunctionsPrx/ clean || exit 1
make -C ../psp1/kernelFunctionsPrx/ || exit 1
cp -f ../kernel_functions.prx ../psp1/pkg/kernel_functions.prx
mkdir -p ../${PLATFORM}/pkg/cores/
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 ../${PLATFORM}/kernelFunctionsPrx/ clean || exit 1
make -C ../${PLATFORM}/kernelFunctionsPrx/ || exit 1
cp -f ../kernel_functions.prx ../pkg/${PLATFORM}/kernel_functions.prx
make -C ../ -f Makefile.psp1 clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
mv -f ../EBOOT.PBP ../pkg/${PLATFORM}/EBOOT.PBP
for f in *_psp1.a ; do
name=`echo "$f" | sed 's/\(_libretro_psp1\|\).a$//'`
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
for f in *_${PLATFORM}.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
whole_archive=
big_stack=
@ -28,15 +30,15 @@ for f in *_psp1.a ; do
fi
if [ $big_stack="BIG_STACK=1" ] ; then
make -C ../ -f Makefile.psp1 clean || exit 1
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
fi
cp -f "$f" ../libretro_psp1.a
make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1
mv -f ../EBOOT.PBP ../psp1/pkg/cores/${name}_libretro.PBP
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../EBOOT.PBP ../pkg/${PLATFORM}/cores/${name}_libretro.PBP
rm -f ../retroarchpsp.elf
if [ $big_stack="BIG_STACK=1" ] ; then
make -C ../ -f Makefile.psp1 clean || exit 1
make -C ../ -f Makefile.${PLATFORM} clean || exit 1
fi
done

27
dist-scripts/vita-cores.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/sh
PLATFORM=vita
#make -C ../ -f Makefile.${PLATFORM}.salamander clean || exit 1
make -C ../ -f Makefile.griffin platform=${PLATFORM} clean || exit 1
#make -C ../ -f Makefile.${PLATFORM}.salamander || exit 1
#make -C ../ -f Makefile.${PLATFORM}.salamander pkg || exit 1
for f in *_vita.a ; do
name=`echo "$f" | sed "s/\(_libretro_${PLATFORM}\|\).a$//"`
whole_archive=
big_stack=
if [ $name = "nxengine" ] ; then
echo "NXEngine found, applying whole archive linking..."
whole_archive="WHOLE_ARCHIVE_LINK=1"
fi
if [ $name = "tyrquake" ] ; then
echo "Tyrquake found, applying big stack..."
big_stack="BIG_STACK=1"
fi
cp -f "$f" ../libretro_${PLATFORM}.a
make -C ../ -f Makefile.griffin platform=${PLATFORM} $whole_archive $big_stack -j3 || exit 1
mv -f ../retroarch_${PLATFORM}.velf ../pkg/${PLATFORM}/${name}_libretro_${PLATFORM}.velf
rm -f ../retroarch_${PLATFORM}.velf ../retroarch_${PLATFORM}.elf
done

0
pkg/vita/.empty Normal file
View file

0
pkg/wii/.empty Normal file
View file

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB