From 6aa367c2dab715282a27cab219e8596c093710bd Mon Sep 17 00:00:00 2001 From: Wes Smith Date: Fri, 1 Mar 2019 10:24:39 -0500 Subject: [PATCH 1/2] added a8a35 --- Makefile.libretro | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index 140b874..044a6d7 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -344,6 +344,37 @@ 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 + SHARED := -shared -Wl,--version-script=src/drivers/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 -mtune=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 + ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1) + CFLAGS += -march=armv8-a + else + CFLAGS += -march=armv8-a + # If gcc is 5.0 or later + ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1) + LDFLAGS += -static-libgcc -static-libstdc++ + endif + endif ####################################### # ARM From c24f58b5a5842abd4818fea9a080507101f6063e Mon Sep 17 00:00:00 2001 From: Wes Smith Date: Tue, 3 Sep 2019 16:57:40 -0400 Subject: [PATCH 2/2] Clean up PSC make --- Makefile.libretro | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index b4c90c1..98ccfe6 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -366,15 +366,8 @@ else ifeq ($(platform), classic_armv8_a35) ARCH = arm BUILTIN_GPU = neon USE_DYNAREC = 1 - ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1) - CFLAGS += -march=armv8-a - else - CFLAGS += -march=armv8-a - # If gcc is 5.0 or later - ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1) - LDFLAGS += -static-libgcc -static-libstdc++ - endif - endif + CFLAGS += -march=armv8-a + LDFLAGS += -static-libgcc -static-libstdc++ ####################################### # ARM