RetroPie-Setup/scriptmodules/emulators/reicast/0001-enable-rpi4-sdl2-target.patch
Conn O'Griofa e659fc689d reicast: update for rpi4 & generic kms
* Add support for RPI4 and generic KMS targets
* Allow configuration of rpi3 platform in favour of rpi2 platform
* Move build configuration into separate function to avoid duplication between
  build and install functions.
* avoid duplication of addEmulator definitions due to audio backend options
* Set alsa as default audio backend for mesa (omx doesn't work, and oss backend via
  aoss causes emulator stuttering).

Patch details (may be removed after upstream is fixed):
* Add SDL/gles2 sub-platform for rpi4 to allow kmsdrm compatibility
* Ensure vsync is enforced for SDL, otherwise KMSDRM will run at unlocked framerate.
* Fix signal handler conflict by disabling SDL2's exit signal handler, and ensuring that
  reicast gracefully cleans up by stopping emulation and invoking SDL_Quit() during exit.
2019-11-01 04:11:33 +00:00

20 lines
643 B
Diff

diff --git a/shell/linux/Makefile b/shell/linux/Makefile
index 96c2e58..a975698 100644
--- a/shell/linux/Makefile
+++ b/shell/linux/Makefile
@@ -185,9 +185,13 @@ else ifneq (,$(findstring lincpp,$(platform)))
else ifneq (,$(findstring rpi4,$(platform)))
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
- CFLAGS += -DGLES3
+ ifneq (,$(findstring sdl,$(platform)))
+ USE_SDL := 1
+ else
+ CFLAGS += -DGLES3
+ USE_X11 := 1
+ endif
- USE_X11 := 1
USE_GLES := 1
MFLAGS += -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard