Adding optimizations to pcsx_rearmed

This commit is contained in:
CometHunter92 2022-03-23 17:05:56 +01:00
parent 61bf24c41b
commit 6b8d9b0e2e
2 changed files with 33 additions and 7 deletions

View file

@ -11,16 +11,18 @@ PKG_SITE="https://github.com/libretro/pcsx_rearmed"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_SHORTDESC="ARM optimized PCSX fork"
PKG_TOOLCHAIN="manual"
PKG_TOOLCHAIN="make"
PKG_BUILD_FLAGS="+speed -gold"
PKG_PATCH_DIRS+="${DEVICE}"
make_target() {
cd ${PKG_BUILD}
if [ ! "${ARCH}" = "aarch64" ]; then
make -f Makefile.libretro GIT_VERSION=${PKG_VERSION} platform=rpi3
fi
}
if [ "${ARCH}" = "arm" ]
then
PKG_MAKE_OPTS_TARGET=" platform=rg552"
else
make_target() {
:
}
fi
makeinstall_target() {
INSTALLTO="/usr/lib/libretro/"

View file

@ -0,0 +1,24 @@
diff -rupN pcsx_rearmed.orig/Makefile.libretro pcsx_rearmed/Makefile.libretro
--- pcsx_rearmed.orig/Makefile.libretro 2022-03-22 22:45:18.406511156 +0000
+++ pcsx_rearmed/Makefile.libretro 2022-03-23 00:58:28.073644000 +0000
@@ -362,6 +362,19 @@ else ifeq ($(platform), rpi4_64)
DYNAREC = ari64
fpic := -fPIC
CFLAGS += -march=armv8-a+crc+simd -mtune=cortex-a72 -ftree-vectorize
+
+#######################################
+# Anbernic RG552
+else ifeq ($(platform), rg552)
+ TARGET := $(TARGET_NAME)_libretro.so
+ CFLAGS += -marm -mtune=cortex-a72.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard
+ ASFLAGS += -mtune=cortex-a72.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard
+ fpic = -fPIC
+ HAVE_NEON = 1
+ ARCH = arm
+ BUILTIN_GPU = neon
+ DYNAREC = ari64
+
# Classic Platforms ####################
# Platform affix = classic_<ISA>_<µARCH>