Unverified Commit ed2db26b authored by liberodark's avatar liberodark Committed by GitHub
Browse files

Add RPI4 64 + N2 + OGA Support

parent bea042df
......@@ -289,6 +289,26 @@ else ifeq ($(platform), rpi4)
CFLAGS += -fomit-frame-pointer -ffast-math
HAVE_NEON = 1
# Raspberry Pi 4 (64-bit)
else ifeq ($(platform), rpi4_64)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
CFLAGS += -DARM
CFLAGS += -mcpu=cortex-a72 -mtune=cortex-a72 -funsafe-math-optimizations
CFLAGS += -fomit-frame-pointer -ffast-math
HAVE_NEON = 1
# ODROIDN2
else ifneq (,$(findstring CortexA73_G12B,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
ARCH = arm64
HAVE_NEON = 1
CFLAGS += -fomit-frame-pointer -ffast-math -DARM -funsafe-math-optimizations
CFLAGS += -march=armv8-a+crc -mcpu=cortex-a73 -mtune=cortex-a73.cortex-a53
# Classic Platforms ####################
# Platform affix = classic_<ISA>_<µARCH>
# Help at https://modmyclassic.com/comp
......@@ -325,6 +345,29 @@ else ifeq ($(platform), classic_armv7_a7)
endif
#######################################
# (armv8 a35, hard point, neon based) ###
# Odroid Go Advance
else ifeq ($(platform), classic_armv8_a35)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
CFLAGS += -Ofast \
-flto=4 -fwhole-program -fuse-linker-plugin \
-fdata-sections -ffunction-sections -Wl,--gc-sections \
-fno-stack-protector -fno-ident -fomit-frame-pointer \
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
-fmerge-all-constants -fno-math-errno \
-marm -mcpu=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard
CXXFLAGS += $(CFLAGS)
CPPFLAGS += $(CFLAGS)
ASFLAGS += $(CFLAGS)
HAVE_NEON = 1
ARCH = arm
BUILTIN_GPU = neon
USE_DYNAREC = 1
#########################################
# Xbox 360
else ifeq ($(platform), xenon)
EXT=a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment