distribution/packages/games/libretro/gpsp/patches/RG552/gpsp-add_platform.patch

22 lines
814 B
Diff
Raw Normal View History

2022-04-07 21:51:55 +00:00
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