From 410119d5a0faf8bd57da332b5c06f2ab0ad2b548 Mon Sep 17 00:00:00 2001 From: vanfanel Date: Wed, 24 Feb 2016 23:27:04 +0100 Subject: [PATCH 1/2] Add Raspberry Pi 2 platform definition with optimized flags and defines. --- Makefile.libretro | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 52b45c2..79ded97 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -176,6 +176,17 @@ else ifeq ($(platform), ctr) CFLAGS += -fomit-frame-pointer -ffast-math STATIC_LINKING = 1 +# 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 -DUSE_DYNAMIC_ALLOC + CFLAGS += -fomit-frame-pointer -ffast-math + CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 # Xbox 360 else ifeq ($(platform), xenon) From 87c8781a39b753b6ac3dc033d217f454a6f372ee Mon Sep 17 00:00:00 2001 From: vanfanel Date: Wed, 24 Feb 2016 23:40:14 +0100 Subject: [PATCH 2/2] Made a small correction in Raspberry Pi 2 platform definitions as we were using an un-needed define. --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 79ded97..e1a745b 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -184,7 +184,7 @@ else ifeq ($(platform), rpi2) 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 -DUSE_DYNAMIC_ALLOC + 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