distribution/packages/games/libretro/gpsp/patches/RG552/gpsp-add_platform.patch
CometHunter92 e30d64ec3a doh
2022-04-08 00:12:08 +02:00

21 lines
814 B
Diff

diff -rupN gpsp.orig/Makefile gpsp/Makefile
--- gpsp.orig/Makefile 2022-04-07 22:37:30.432792500 +0200
+++ gpsp/Makefile 2022-04-07 23:33:44.082780000 +0200
@@ -287,6 +287,17 @@ else ifeq ($(platform), rpi1)
MMAP_JIT_CACHE = 1
HAVE_DYNAREC = 1
+# Anbernic RG552 (32 bit)
+else ifeq ($(platform), RG552)
+ CPUFLAGS := -marm -march=armv8-a -mfpu=neon-fp-armv8 -mfloat-abi=hard -flto
+ CFLAGS := $(CPUFLAGS) -fpic -ffast-math -fno-rtti -fno-exceptions
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
+ CPU_ARCH := arm
+ MMAP_JIT_CACHE = 1
+ HAVE_DYNAREC = 1
+
# Classic Platforms ####################
# Platform affix = classic_<ISA>_<µARCH>
# Help at https://modmyclassic.com/comp