From 694af47e2b3dc8c24dac704f293f4bcf9ab67858 Mon Sep 17 00:00:00 2001 From: neonloop Date: Mon, 24 Jul 2023 22:07:02 +0000 Subject: Changes funkey-s platform to unix-armv7-hardfloat-neon More generic platform is supported by more cores, fewer patches needed to get cores to build. Adding new cores is easier. unix-armv7-cortexa7-hardfloat-neon causes warnings, maybe SDK bug? Generic platform may not be as optimized, but speed difference can be fixed with patches if discovered. --- patches/mame2000/0002-arm-generic-target.patch | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 patches/mame2000/0002-arm-generic-target.patch (limited to 'patches/mame2000/0002-arm-generic-target.patch') diff --git a/patches/mame2000/0002-arm-generic-target.patch b/patches/mame2000/0002-arm-generic-target.patch new file mode 100644 index 0000000..c1a76a3 --- /dev/null +++ b/patches/mame2000/0002-arm-generic-target.patch @@ -0,0 +1,43 @@ +diff --git a/Makefile b/Makefile +index 57163e4..647eaaf 100644 +--- a/Makefile ++++ b/Makefile +@@ -269,6 +269,38 @@ else ifeq ($(platform), classic_armv7_a7) + endif + ####################################### + ++# ARM ++else ifneq (,$(findstring armv,$(platform))) ++ TARGET := $(TARGET_NAME)_libretro.so ++ SHARED := -shared -Wl,--no-undefined,-Bsymbolic ++ fpic := -fPIC ++ ifneq (,$(findstring cortexa5,$(platform))) ++ CFLAGS += -marm -mcpu=cortex-a5 ++ ASFLAGS += -mcpu=cortex-a5 ++ else ifneq (,$(findstring cortexa8,$(platform))) ++ CFLAGS += -marm -mcpu=cortex-a8 ++ ASFLAGS += -mcpu=cortex-a8 ++ else ifneq (,$(findstring cortexa9,$(platform))) ++ CFLAGS += -marm -mcpu=cortex-a9 ++ ASFLAGS += -mcpu=cortex-a9 ++ else ifneq (,$(findstring cortexa15a7,$(platform))) ++ CFLAGS += -marm -mcpu=cortex-a15.cortex-a7 ++ ASFLAGS += -mcpu=cortex-a15.cortex-a7 ++ else ++ CFLAGS += -marm ++ endif ++ ifneq (,$(findstring neon,$(platform))) ++ CFLAGS += -mfpu=neon ++ ASFLAGS += -mfpu=neon ++ endif ++ ifneq (,$(findstring softfloat,$(platform))) ++ CFLAGS += -mfloat-abi=softfp ++ ASFLAGS += -mfloat-abi=softfp ++ else ifneq (,$(findstring hardfloat,$(platform))) ++ CFLAGS += -mfloat-abi=hard ++ ASFLAGS += -mfloat-abi=hard ++ endif ++ ARM = 1 + + # CTR(3DS) + else ifeq ($(platform), ctr) -- cgit v1.2.3