distribution/packages/emulators/libretro/parallel-n64-lr/patches/002-rk3588-make.patch

30 lines
859 B
Diff
Raw Normal View History

2023-01-17 16:36:11 +00:00
diff --git a/Makefile b/Makefile
index 8a719d55..0872e619 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,8 @@ else ifneq (,$(findstring rpi,$(platform)))
override platform += unix
else ifneq (,$(findstring odroid,$(platform)))
override platform += unix
+else ifneq (,$(findstring @DEVICE@,$(platform)))
2023-01-17 16:36:11 +00:00
+ override platform += unix
endif
# system platform
@@ -171,6 +173,15 @@ ifneq (,$(findstring unix,$(platform)))
endif
+ #@DEVICE@
+ ifneq (,$(findstring @DEVICE@,$(platform)))
2023-01-17 16:36:11 +00:00
+ TARGET := $(TARGET_NAME)_libretro.so
+ CPUFLAGS += -march=armv8-a+crc+simd -mtune=@TARGET_CPU@ -DARM_FIX -DCLASSIC -DARM64
2023-01-17 16:36:11 +00:00
+ WITH_DYNAREC = aarch64
+ GLES = 1
+ GL_LIB := -lGLESv2
+ endif
+
# ODROIDs
ifneq (,$(findstring odroid,$(platform)))
BOARD ?= $(shell cat /proc/cpuinfo | grep -i odroid | awk '{print $$3}')