mirror of
https://github.com/libretro/beetle-wswan-libretro.git
synced 2024-11-23 07:59:40 +00:00
Merge pull request #67 from liberodark/patch-1
add armv8 support & rpi4 aarch64
This commit is contained in:
commit
948b5c0bd9
29
Makefile
29
Makefile
@ -65,15 +65,36 @@ ifneq (,$(findstring unix,$(platform)))
|
||||
|
||||
# Raspberry Pi
|
||||
ifneq (,$(findstring rpi,$(platform)))
|
||||
FLAGS += -fomit-frame-pointer -ffast-math -marm
|
||||
FLAGS += -fomit-frame-pointer -ffast-math
|
||||
ifneq (,$(findstring rpi1,$(platform)))
|
||||
FLAGS += -march=armv6j -mfpu=vfp -mfloat-abi=hard
|
||||
FLAGS += -march=armv6j -mfpu=vfp -mfloat-abi=hard -marm
|
||||
else ifneq (,$(findstring rpi2,$(platform)))
|
||||
FLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
|
||||
FLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -marm
|
||||
else ifneq (,$(findstring rpi3,$(platform)))
|
||||
FLAGS += -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
|
||||
FLAGS += -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -marm
|
||||
else ifneq (,$(findstring rpi4,$(platform)))
|
||||
FLAGS += -mcpu=cortex-a72 -mtune=cortex-a72
|
||||
endif
|
||||
endif
|
||||
|
||||
# (armv8 a35, hard point, neon based) ###
|
||||
# PlayStation Classic
|
||||
else ifeq ($(platform), classic_armv8_a35)
|
||||
TARGET := $(TARGET_NAME)_libretro.so
|
||||
fpic := -fPIC
|
||||
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
|
||||
CFLAGS += -DARM -Ofast \
|
||||
-fuse-linker-plugin \
|
||||
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||
-fmerge-all-constants -ffast-math -funroll-all-loops \
|
||||
-marm -mcpu=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard
|
||||
CXXFLAGS += $(CFLAGS)
|
||||
CPPFLAGS += $(CFLAGS)
|
||||
HAVE_NEON = 1
|
||||
ARCH = arm
|
||||
LDFLAGS += -lrt
|
||||
LDFLAGS += -marm -mcpu=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard -Ofast -flto -fuse-linker-plugin
|
||||
#######################################
|
||||
|
||||
# OS X
|
||||
else ifeq ($(platform), osx)
|
||||
|
Loading…
Reference in New Issue
Block a user