add blocks for targeting rpi0 and rpi1

This commit is contained in:
markwkidd 2020-11-10 10:08:49 -05:00 committed by GitHub
parent a8a29c7518
commit eab67b510d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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