From eab67b510de75b68c8f79358db4700d039a64f16 Mon Sep 17 00:00:00 2001 From: markwkidd Date: Tue, 10 Nov 2020 10:08:49 -0500 Subject: [PATCH] add blocks for targeting rpi0 and rpi1 --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Makefile b/Makefile index 7998e0cd..e2615950 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,29 @@ else ifeq ($(platform), ctr) CPU_ARCH := arm STATIC_LINKING = 1 +else ifeq ($(platform), rpi0) + TARGET = $(TARGET_NAME)_libretro.so + fpic = -fPIC + CFLAGS += $(fpic) + LDFLAGS += $(fpic) -shared -Wl,--version-script=link.T + PLATCFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard + PLATCFLAGS += -fomit-frame-pointer -ffast-math + CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions + CPU_ARCH := arm + ARM = 1 + USE_CYCLONE := 1 + +else ifeq ($(platform), rpi1) + TARGET = $(TARGET_NAME)_libretro.so + fpic = -fPIC + CFLAGS += $(fpic) + LDFLAGS += $(fpic) -shared -Wl,--version-script=link.T + PLATCFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard + PLATCFLAGS += -fomit-frame-pointer -ffast-math + CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions + CPU_ARCH := arm + ARM = 1 + else ifeq ($(platform), rpi2) TARGET = $(TARGET_NAME)_libretro.so fpic = -fPIC