diff --git a/.gitignore b/.gitignore index 00aaf0c0..e792e254 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -/libretro-* -/libretro64-* +/libretro-*/ +/libretro64-*/ /retroarch/ /build-summary.log /build-revisions/ diff --git a/libretro-build-ps2.sh b/libretro-build-ps2.sh new file mode 100755 index 00000000..bad61a80 --- /dev/null +++ b/libretro-build-ps2.sh @@ -0,0 +1,17 @@ +#! /usr/bin/env bash +# vim: set ts=3 sw=3 noet ft=sh : bash + +SCRIPT="${0#./}" +BASE_DIR="${SCRIPT%/*}" +WORKDIR="$PWD" + +if [ "$BASE_DIR" = "$SCRIPT" ]; then + BASE_DIR="$WORKDIR" +else + if [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" + fi +fi + +platform=ps2 ${BASE_DIR}/libretro-build.sh $@ diff --git a/libretro-config.sh b/libretro-config.sh index 588edcc0..9d7c0de0 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -473,6 +473,17 @@ case "$platform" in CXX="psp-g++${BINARY_EXT}" ;; + ps2) + DIST_DIR="ps2" + FORMAT_EXT=a + FORMAT=_ps2 + FORMAT_COMPILER_TARGET=ps2 + FORMAT_COMPILER_TARGET_ALT=ps2 + + CC="ee-gcc${BINARY_EXT}" + CXX="ee-g++${BINARY_EXT}" + ;; + ctr) DIST_DIR="ctr" FORMAT_EXT=a