From a4a54ca255e49479bb440be90e5d81431c6f9be1 Mon Sep 17 00:00:00 2001 From: Logan McNaughton Date: Wed, 4 May 2016 20:33:40 -0600 Subject: [PATCH] Add rpi3 platform --- Makefile.libretro | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 509c531..08a1bf7 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -199,6 +199,18 @@ else ifeq ($(platform), rpi2) 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 3 +else ifeq ($(platform), rpi3) + 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-a53 -mfpu=neon-fp-armv8 -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)