mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Merge wii-cores.sh and ngc-cores.sh into dist-cores.sh
This commit is contained in:
parent
e19dfa956e
commit
2c9092d244
@ -22,6 +22,17 @@ elif [ $PLATFORM = "vita" ] ; then
|
|||||||
platform=vita
|
platform=vita
|
||||||
MAKEFILE_GRIFFIN=yes
|
MAKEFILE_GRIFFIN=yes
|
||||||
|
|
||||||
|
# Wii
|
||||||
|
elif [ $PLATFORM = "wii" ] ; then
|
||||||
|
platform=wii
|
||||||
|
MAKEFILE_GRIFFIN=yes
|
||||||
|
SALAMANDER=yes
|
||||||
|
|
||||||
|
# NGC
|
||||||
|
elif [ $PLATFORM = "ngc" ] ; then
|
||||||
|
platform=ngc
|
||||||
|
MAKEFILE_GRIFFIN=yes
|
||||||
|
|
||||||
# DEX PS3
|
# DEX PS3
|
||||||
elif [ $PLATFORM = "dex-ps3" ] ; then
|
elif [ $PLATFORM = "dex-ps3" ] ; then
|
||||||
platform=ps3
|
platform=ps3
|
||||||
@ -119,6 +130,10 @@ for f in *_${platform}.a ; do
|
|||||||
mv -f ../EBOOT.PBP ../pkg/${platform}/cores/${name}_libretro.PBP
|
mv -f ../EBOOT.PBP ../pkg/${platform}/cores/${name}_libretro.PBP
|
||||||
elif [ $PLATFORM = "vita" ] ; then
|
elif [ $PLATFORM = "vita" ] ; then
|
||||||
mv -f ../retroarch_${platform}.velf ../pkg/${platform}/${name}_libretro_${platform}.velf
|
mv -f ../retroarch_${platform}.velf ../pkg/${platform}/${name}_libretro_${platform}.velf
|
||||||
|
elif [ $PLATFORM = "ngc" ] ; then
|
||||||
|
mv -f ../retroarch_${platform}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
|
||||||
|
elif [ $PLATFORM = "wii" ] ; then
|
||||||
|
mv -f ../retroarch_${platform}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove executable files
|
# Remove executable files
|
||||||
@ -128,6 +143,10 @@ for f in *_${platform}.a ; do
|
|||||||
rm -f ../retroarchpsp.elf
|
rm -f ../retroarchpsp.elf
|
||||||
elif [ $PLATFORM = "vita" ] ; then
|
elif [ $PLATFORM = "vita" ] ; then
|
||||||
rm -f ../retroarch_${platform}.velf ../retroarch_${platform}.elf
|
rm -f ../retroarch_${platform}.velf ../retroarch_${platform}.elf
|
||||||
|
elif [ $PLATFORM = "ngc" ] ; then
|
||||||
|
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
|
||||||
|
elif [ $PLATFORM = "wii" ] ; then
|
||||||
|
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do cleanup if this is a big stack core
|
# Do cleanup if this is a big stack core
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
platform=ngc
|
|
||||||
|
|
||||||
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
|
|
||||||
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}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
|
|
||||||
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
|
|
||||||
done
|
|
@ -1,27 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
platform=wii
|
|
||||||
|
|
||||||
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 *_${platform}.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}.dol ../pkg/${platform}/${name}_libretro_${platform}.dol
|
|
||||||
rm -f ../retroarch_${platform}.dol ../retroarch_${platform}.elf ../retroarch_${platform}.elf.map
|
|
||||||
done
|
|
Loading…
x
Reference in New Issue
Block a user