X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=c40f64b76e94f08579f832fffec2c14c238a84ab;hb=80209d1715398a16b6ace1c2e4cd0aab5c00248d;hp=5a59aeaff5a311cbd3ba0f65a6204cb7dbc4f9a7;hpb=99a5a3364ebe6722805802f1861b6a5f6c6d4624;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 5a59aeaf..c40f64b7 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -47,6 +47,12 @@ ifeq ($(platform), unix) ifneq ($(findstring SunOS,$(shell uname -s)),) CC = gcc endif +ifeq ($(ARCH), arm) +ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),) + # must disable thumb as recompiler can't handle it + CFLAGS += -marm +endif +endif else ifeq ($(platform), linux-portable) TARGET := $(TARGET_NAME)_libretro.so @@ -279,6 +285,20 @@ else ifeq ($(platform), classic_armv7_a7) LDFLAGS += -static-libgcc -static-libstdc++ endif endif + +# (armv8 a35, hard point, neon based) ### +# PlayStation Classic +else ifeq ($(platform), classic_armv8_a35) + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + CFLAGS += -marm -mtune=cortex-a35 -mfpu=neon-fp-armv8 -mfloat-abi=hard + HAVE_NEON = 1 + ARCH = arm + BUILTIN_GPU = neon + USE_DYNAREC = 1 + CFLAGS += -march=armv8-a + LDFLAGS += -static-libgcc -static-libstdc++ -fPIC + ####################################### # ARM