From bd9a2f1db9b51839b73d6c100bef8b5c3008681e Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 7 Sep 2015 14:17:14 +0100 Subject: [PATCH 1/2] (dist-scripts) fix $big_stack check -missing whitespace around the = operator made the statement always evaluate to true. -missing quotes made the conditional result in a syntax error when $big_stack is empty. --- dist-scripts/dist-cores.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dist-scripts/dist-cores.sh b/dist-scripts/dist-cores.sh index 3f2bbd2b6d..6cb1ff0dd5 100755 --- a/dist-scripts/dist-cores.sh +++ b/dist-scripts/dist-cores.sh @@ -72,17 +72,17 @@ platform=ps3 SALAMANDER=yes EXT=a -GENPS3ISO_PATH=/cygdrive/c/Cobra_ODE_GenPS3iso_v2.3/genps3iso.exe +GENPS3ISO_PATH=/cygdrive/c/Cobra_ODE_GenPS3iso_v2.3/genps3iso.exe SCETOOL_PATH=/cygdrive/c/Users/aaa801/ps3tools/ps3tools/tools/scetool/scetool.exe SCETOOL_FLAGS="--sce-type SELF --compress-data FALSE --self-type APP --key-revision 0004 --self-fw-version 0003004100000000 --self-app-version 0001000000000000 --self-auth-id 1010000001000003 --self-vendor-id 01000002 --self-cap-flags 00000000000000000000000000000000000000000000003b0000000100040000" fi -# Cleanup Salamander core if it exists +# Cleanup Salamander core if it exists if [ $SALAMANDER = "yes" ]; then make -C ../ -f Makefile.${platform}.salamander clean || exit 1 fi -# Cleanup existing core if it exists +# Cleanup existing core if it exists if [ $PLATFORM = "ode-ps3" ]; then make -C ../ -f Makefile.${platform}.cobra clean || exit 1 elif [ $MAKEFILE_GRIFFIN = "yes" ]; then @@ -113,7 +113,7 @@ for f in *_${platform}.${EXT} ; do cp -f "$f" ../libretro_${platform}.${EXT} # Do cleanup if this is a big stack core - if [ $big_stack="BIG_STACK=1" ] ; then + if [ "$big_stack" = "BIG_STACK=1" ] ; then if [ $MAKEFILE_GRIFFIN = "yes" ]; then make -C ../ -f Makefile.griffin platform=${platform} clean || exit 1 elif [ $PLATFORM = "emscripten" ]; then @@ -134,7 +134,7 @@ for f in *_${platform}.${EXT} ; do make -C ../ -f Makefile.${platform} $whole_archive $big_stack -j3 || exit 1 fi - # Do manual executable step + # Do manual executable step if [ $PLATFORM = "dex-ps3" ] ; then $MAKE_FSELF_NPDRM ../retroarch_${platform}.elf ../CORE.SELF elif [ $PLATFORM = "cex-ps3" ] ; then @@ -178,7 +178,7 @@ for f in *_${platform}.${EXT} ; do fi # Do cleanup if this is a big stack core - if [ $big_stack="BIG_STACK=1" ] ; then + if [ "$big_stack" = "BIG_STACK=1" ] ; then if [ $MAKEFILE_GRIFFIN = "yes" ]; then make -C ../ -f Makefile.griffin platform=${platform} clean || exit 1 elif [ $PLATFORM = "emscripten" ]; then From 0f28b0cd169fb0bba301d15caefa001f856bf891 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 7 Sep 2015 14:37:32 +0100 Subject: [PATCH 2/2] (dist-scripts) psp1 salamander EBOOT was being copied before compilation. --- dist-scripts/dist-cores.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist-scripts/dist-cores.sh b/dist-scripts/dist-cores.sh index 6cb1ff0dd5..96a9c180fc 100755 --- a/dist-scripts/dist-cores.sh +++ b/dist-scripts/dist-cores.sh @@ -16,7 +16,6 @@ mkdir -p ../pkg/${platform}/cores/ make -C ../${platform}/kernel_functions_prx/ clean || exit 1 make -C ../${platform}/kernel_functions_prx/ || exit 1 cp -f ../kernel_functions.prx ../pkg/${platform}/kernel_functions.prx -mv -f ../EBOOT.PBP ../pkg/${platform}/EBOOT.PBP # Vita elif [ $PLATFORM = "vita" ] ; then @@ -94,6 +93,9 @@ fi # Compile Salamander core if [ $SALAMANDER = "yes" ]; then make -C ../ -f Makefile.${platform}.salamander || exit 1 + if [ $PLATFORM = "psp1" ] ; then + mv -f ../EBOOT.PBP ../pkg/${platform}/EBOOT.PBP + fi fi for f in *_${platform}.${EXT} ; do