aboutsummaryrefslogtreecommitdiff
path: root/patches/fake-08
diff options
context:
space:
mode:
authorneonloop2023-07-24 22:07:02 +0000
committerneonloop2023-07-24 22:07:02 +0000
commit694af47e2b3dc8c24dac704f293f4bcf9ab67858 (patch)
tree381e226413736125f116696671bbc58d61cc2981 /patches/fake-08
parentecb3c7bf765a84413ac0a53ffca7c8bf470c821f (diff)
downloadpicoarch-694af47e2b3dc8c24dac704f293f4bcf9ab67858.tar.gz
picoarch-694af47e2b3dc8c24dac704f293f4bcf9ab67858.tar.bz2
picoarch-694af47e2b3dc8c24dac704f293f4bcf9ab67858.zip
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.
Diffstat (limited to 'patches/fake-08')
-rw-r--r--patches/fake-08/0002-arm-generic-target.patch42
-rw-r--r--patches/fake-08/1000-funkey-s-build.patch17
2 files changed, 42 insertions, 17 deletions
diff --git a/patches/fake-08/0002-arm-generic-target.patch b/patches/fake-08/0002-arm-generic-target.patch
new file mode 100644
index 0000000..2ca8831
--- /dev/null
+++ b/patches/fake-08/0002-arm-generic-target.patch
@@ -0,0 +1,42 @@
+diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile
+index 40805b8..d890e0c 100644
+--- a/platform/libretro/Makefile
++++ b/platform/libretro/Makefile
+@@ -123,7 +123,36 @@ else ifeq ($(platform), miyoomini)
+ CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve -D_NEED_FULL_PATH_
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=link.T
+-
++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
+ else ifeq ($(platform), gcw0)
+ TARGET := $(TARGET_NAME)_libretro_gcw0.so
+ CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
diff --git a/patches/fake-08/1000-funkey-s-build.patch b/patches/fake-08/1000-funkey-s-build.patch
deleted file mode 100644
index e5f5046..0000000
--- a/patches/fake-08/1000-funkey-s-build.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile
-index 420f9b7..b247ec0 100644
---- a/platform/libretro/Makefile
-+++ b/platform/libretro/Makefile
-@@ -123,7 +123,11 @@ else ifeq ($(platform), miyoomini)
- CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
- fpic := -fPIC
- SHARED := -shared -Wl,--version-script=link.T
--
-+else ifeq ($(platform), classic_armv7_a7)
-+ TARGET := $(TARGET_NAME)_libretro.so
-+ CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
-+ fpic := -fPIC
-+ SHARED := -shared -Wl,--version-script=link.T
- else ifeq ($(platform), gcw0)
- TARGET := $(TARGET_NAME)_libretro_gcw0.so
- CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc