From d0ef1061ebd08c87df8d2f9da301ae813ab90720 Mon Sep 17 00:00:00 2001 From: vanfanel Date: Thu, 25 Feb 2016 14:57:22 +0100 Subject: [PATCH 1/3] Add Rpi2 platform defines. --- Makefile.libretro | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index bfb3f5e..44aca26 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -158,6 +158,15 @@ else ifeq ($(platform), ctr) STATIC_LINKING = 1 EXTERNAL_ZLIB = 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 + CFLAGS += -DARM + CFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations + CFLAGS += -fomit-frame-pointer -ffast-math + # Lightweight PS3 Homebrew SDK else ifeq ($(platform), psl1ght) TARGET := $(TARGET_NAME)_libretro_psl1ght.a From d4cae7e7d9319372add3fca9bad906236285565a Mon Sep 17 00:00:00 2001 From: vanfanel Date: Thu, 25 Feb 2016 15:22:24 +0100 Subject: [PATCH 2/3] Small correction on the rpi2 platform defines --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 44aca26..5546c79 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -165,7 +165,7 @@ else ifeq ($(platform), rpi2) SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined CFLAGS += -DARM CFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations - CFLAGS += -fomit-frame-pointer -ffast-math + CFLAGS += -fomit-frame-pointer -fstrict-aliasing -ffast-math # Lightweight PS3 Homebrew SDK else ifeq ($(platform), psl1ght) From 74d7baed80bf15aa9415632ba10604f367929200 Mon Sep 17 00:00:00 2001 From: vanfanel Date: Thu, 25 Feb 2016 15:26:43 +0100 Subject: [PATCH 3/3] Another small correction on the rpi2 platform defines --- Makefile.libretro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 5546c79..f9395fc 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -162,7 +162,7 @@ else ifeq ($(platform), ctr) else ifeq ($(platform), rpi2) TARGET := $(TARGET_NAME)_libretro.so fpic := -fPIC - SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined + SHARED := -shared -Wl,--version-script=src/drivers/libretro/link.T -Wl,-no-undefined CFLAGS += -DARM CFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations CFLAGS += -fomit-frame-pointer -fstrict-aliasing -ffast-math