From c276fb219ddb53f3368e056b43a6971b82e051c7 Mon Sep 17 00:00:00 2001 From: vanfanel Date: Sat, 27 Feb 2016 11:21:07 +0100 Subject: [PATCH 1/2] Add rpi1 platform definitions with notable speed up on 8bit sega systems! corrected rpi2 platform definitions identation. --- Makefile.libretro | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index e1a745b..9d16e7d 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -176,17 +176,29 @@ else ifeq ($(platform), ctr) CFLAGS += -fomit-frame-pointer -ffast-math STATIC_LINKING = 1 +# Raspberry Pi 1 +else ifeq ($(platform), rpi1) + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined + PLATFORM_DEFINES := -DHAVE_ZLIB + PLATFORM_DEFINES += -DARM + PLATFORM_DEFINES += -marm -march=armv6j -mfloat-abi=hard -mfpu=vfp -funsafe-math-optimizations + ENDIANNESS_DEFINES := -DLSB_FIRST -DALIGN_LONG -DBYTE_ORDER=LITTLE_ENDIAN + CFLAGS += -fomit-frame-pointer -ffast-math + CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 + # Raspberry Pi 2 else ifeq ($(platform), rpi2) - TARGET := $(TARGET_NAME)_libretro.so - fpic := -fPIC - SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined - PLATFORM_DEFINES := -DHAVE_ZLIB - PLATFORM_DEFINES += -DARM - PLATFORM_DEFINES += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations - ENDIANNESS_DEFINES := -DLSB_FIRST -DALIGN_LONG -DBYTE_ORDER=LITTLE_ENDIAN - CFLAGS += -fomit-frame-pointer -ffast-math - CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined + PLATFORM_DEFINES := -DHAVE_ZLIB + PLATFORM_DEFINES += -DARM + PLATFORM_DEFINES += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations + ENDIANNESS_DEFINES := -DLSB_FIRST -DALIGN_LONG -DBYTE_ORDER=LITTLE_ENDIAN + CFLAGS += -fomit-frame-pointer -ffast-math + CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 # Xbox 360 else ifeq ($(platform), xenon) From 085ef7c41babd463238081a8cf8ecf1bb874bf6c Mon Sep 17 00:00:00 2001 From: vanfanel Date: Sat, 27 Feb 2016 12:01:09 +0100 Subject: [PATCH 2/2] Small correction in rpi1 platform definitions --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 9d16e7d..56e391f 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -182,7 +182,7 @@ else ifeq ($(platform), rpi1) fpic := -fPIC SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined PLATFORM_DEFINES := -DHAVE_ZLIB - PLATFORM_DEFINES += -DARM + PLATFORM_DEFINES += -DARM11 PLATFORM_DEFINES += -marm -march=armv6j -mfloat-abi=hard -mfpu=vfp -funsafe-math-optimizations ENDIANNESS_DEFINES := -DLSB_FIRST -DALIGN_LONG -DBYTE_ORDER=LITTLE_ENDIAN CFLAGS += -fomit-frame-pointer -ffast-math