Skip to content

Commit ca53a51

Browse files
authored
PACKAGE: bumpup ver. & optimize libretro-mame2003 & mame2003-plus (#145)
* PACKAGE: bump libretro-mame2003 version commit b6c6d52d8d630d1a172b6b771443dcbbdb45b76d * PACKAGE-mame2003: add optimization patches * PACKAGE: bump libretro-mame2003-plus version commit 0fcccae96eb722d58be329977eb49173c5c97981 * PACKAGE-mame2003-plus: add optimization patches & fix cyclone
1 parent 28019c4 commit ca53a51

9 files changed

+1286
-6
lines changed

package/miyoo/retroarch/libretro-mame2003-plus/0001-cyclone.s-use-ARMv5-asm-instructions-to-fix-compile-.patch

Lines changed: 1108 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 7a95dce5273fafef97b28817e604f8541d25dd1a Mon Sep 17 00:00:00 2001
2+
From: Apaczer <[email protected]>
3+
Date: Sun, 19 Jan 2025 20:41:15 +0100
4+
Subject: [PATCH 2/3] (MIYOO) Makefile: USE_CYCLONE & USE_DRZ80
5+
6+
also `-fno-PIC`
7+
---
8+
Makefile | 5 ++++-
9+
1 file changed, 4 insertions(+), 1 deletion(-)
10+
11+
diff --git a/Makefile b/Makefile
12+
index 71a3bbcb..80d1c135 100644
13+
--- a/Makefile
14+
+++ b/Makefile
15+
@@ -522,11 +522,14 @@ else ifeq ($(platform), miyoo)
16+
CC = /opt/miyoo/usr/bin/arm-linux-gcc
17+
CXX = /opt/miyoo/usr/bin/arm-linux-g++
18+
AR = /opt/miyoo/usr/bin/arm-linux-ar
19+
- fpic := -fPIC
20+
+ fpic := -fno-PIC
21+
LDFLAGS += -shared -Wl,--version-script=link.T -Wl,-no-undefined
22+
PLATCFLAGS := -DNO_UNALIGNED_ACCESS
23+
PLATCFLAGS += -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math
24+
CXXFLAGS += -fno-rtti -fno-exceptions
25+
+ ARM = 1
26+
+ USE_CYCLONE := 1
27+
+ USE_DRZ80 := 1
28+
29+
# Emscripten
30+
else ifeq ($(platform), emscripten)
31+
--
32+
2.45.2.windows.1
33+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
From b59d9aaa7651d0ec82b4ea31abc641ed0704272b Mon Sep 17 00:00:00 2001
2+
From: Apaczer <[email protected]>
3+
Date: Sun, 19 Jan 2025 22:20:51 +0100
4+
Subject: [PATCH 3/3] core_options: default "Cyclone+DrZ80(snd)" and "auto"
5+
frameskip
6+
7+
---
8+
src/mame2003/core_options.c | 8 ++++----
9+
1 file changed, 4 insertions(+), 4 deletions(-)
10+
11+
diff --git a/src/mame2003/core_options.c b/src/mame2003/core_options.c
12+
index fdeb2466..38424ad1 100644
13+
--- a/src/mame2003/core_options.c
14+
+++ b/src/mame2003/core_options.c
15+
@@ -635,7 +635,7 @@ static struct retro_core_option_v2_definition option_def_frameskip = {
16+
{ "auto_max", "auto max" },
17+
{ NULL, NULL },
18+
},
19+
- "disabled"
20+
+ "auto"
21+
};
22+
23+
static struct retro_core_option_v2_definition option_def_core_sys_subfolder = {
24+
@@ -759,7 +759,7 @@ static struct retro_core_option_v2_definition option_def_cyclone_mode = {
25+
NULL,
26+
NULL,
27+
{
28+
- { "default", NULL },
29+
+ { "available", NULL },
30+
{ "disabled", NULL },
31+
{ "Cyclone", NULL },
32+
{ "DrZ80", NULL },
33+
@@ -768,7 +768,7 @@ static struct retro_core_option_v2_definition option_def_cyclone_mode = {
34+
{ "Cyclone+DrZ80(snd)", NULL },
35+
{ NULL, NULL },
36+
},
37+
- "default"
38+
+ "Cyclone+DrZ80(snd)"
39+
};
40+
41+
static struct retro_core_option_v2_definition option_def_override_ad_stick = {
42+
@@ -1270,7 +1270,7 @@ void update_variables(bool first_time)
43+
44+
#if (HAS_CYCLONE || HAS_DRZ80)
45+
case OPT_CYCLONE_MODE:
46+
- if(strcmp(var.value, "default") == 0)
47+
+ if(strcmp(var.value, "available") == 0)
48+
options.cyclone_mode = 6;
49+
else if(strcmp(var.value, "Cyclone") == 0)
50+
options.cyclone_mode = 1;
51+
--
52+
2.45.2.windows.1
53+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Locally calculated
2-
sha256 e4fc00c64bdb09aa1c1f4d6e30b0b1226ea4e942075e5fd8d7577604bc752ac0 libretro-mame2003-plus-6c413c298fcfb4dc7c8e8d6bec28c077d900e7dd.tar.gz
2+
sha256 aae9f3027f5f4eea18a78b7f424690cb5a56cfad9be70f7463229a2cdfc1da08 libretro-mame2003-plus-0fcccae96eb722d58be329977eb49173c5c97981.tar.gz

package/miyoo/retroarch/libretro-mame2003-plus/libretro-mame2003-plus.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#
55
################################################################################
66

7-
# Commit of 2023/09/12 - don't forget to regenerate arcade-dats flats file
8-
LIBRETRO_MAME2003_PLUS_VERSION = 6c413c298fcfb4dc7c8e8d6bec28c077d900e7dd
7+
# Commit of Jan 19, 2025 - don't forget to regenerate arcade-dats flats file
8+
LIBRETRO_MAME2003_PLUS_VERSION = 0fcccae96eb722d58be329977eb49173c5c97981
99
LIBRETRO_MAME2003_PLUS_SITE = $(call github,libretro,mame2003-plus-libretro,$(LIBRETRO_MAME2003_PLUS_VERSION))
1010
LIBRETRO_MAME2003_PLUS_LICENSE = MAME
1111
LIBRETRO_MAME2003_PLUS_LICENSE_FILES = LICENSE.md
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 1fb6c36d34ba49b56e80eaec7020abf165a79914 Mon Sep 17 00:00:00 2001
2+
From: Apaczer <[email protected]>
3+
Date: Mon, 20 Jan 2025 20:27:08 +0100
4+
Subject: [PATCH 1/2] (MIYOO) Makefile: USE_CYCLONE & USE_DRZ80
5+
6+
also `-fno-PIC`
7+
---
8+
Makefile | 5 ++++-
9+
1 file changed, 4 insertions(+), 1 deletion(-)
10+
11+
diff --git a/Makefile b/Makefile
12+
index 53680b6..c6bb102 100644
13+
--- a/Makefile
14+
+++ b/Makefile
15+
@@ -519,11 +519,14 @@ else ifeq ($(platform), miyoo)
16+
CC = /opt/miyoo/usr/bin/arm-linux-gcc
17+
CXX = /opt/miyoo/usr/bin/arm-linux-g++
18+
AR = /opt/miyoo/usr/bin/arm-linux-ar
19+
- fpic := -fPIC
20+
+ fpic := -fno-PIC
21+
LDFLAGS += -shared -Wl,--version-script=link.T -Wl,-no-undefined
22+
PLATCFLAGS := -DNO_UNALIGNED_ACCESS
23+
PLATCFLAGS += -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math
24+
CXXFLAGS += -fno-rtti -fno-exceptions
25+
+ ARM = 1
26+
+ USE_CYCLONE := 1
27+
+ USE_DRZ80 := 1
28+
29+
# Emscripten
30+
else ifeq ($(platform), emscripten)
31+
--
32+
2.45.2.windows.1
33+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
From 5901108cbe57c5117ecfd8e016d303964ea17015 Mon Sep 17 00:00:00 2001
2+
From: Apaczer <[email protected]>
3+
Date: Mon, 20 Jan 2025 20:29:39 +0100
4+
Subject: [PATCH 2/2] core_options: default "Cyclone+DrZ80(snd)" and "auto"
5+
frameskip
6+
7+
---
8+
src/mame2003/core_options.c | 8 ++++----
9+
1 file changed, 4 insertions(+), 4 deletions(-)
10+
11+
diff --git a/src/mame2003/core_options.c b/src/mame2003/core_options.c
12+
index b94a7a6..900d4ec 100644
13+
--- a/src/mame2003/core_options.c
14+
+++ b/src/mame2003/core_options.c
15+
@@ -597,7 +597,7 @@ static struct retro_core_option_v2_definition option_def_frameskip = {
16+
{ "auto_max", "auto max" },
17+
{ NULL, NULL },
18+
},
19+
- "disabled"
20+
+ "auto"
21+
};
22+
23+
static struct retro_core_option_v2_definition option_def_core_sys_subfolder = {
24+
@@ -721,7 +721,7 @@ static struct retro_core_option_v2_definition option_def_cyclone_mode = {
25+
NULL,
26+
NULL,
27+
{
28+
- { "default", NULL },
29+
+ { "available", NULL },
30+
{ "disabled", NULL },
31+
{ "Cyclone", NULL },
32+
{ "DrZ80", NULL },
33+
@@ -730,7 +730,7 @@ static struct retro_core_option_v2_definition option_def_cyclone_mode = {
34+
{ "Cyclone+DrZ80(snd)", NULL },
35+
{ NULL, NULL },
36+
},
37+
- "default"
38+
+ "Cyclone+DrZ80(snd)"
39+
};
40+
41+
static struct retro_core_option_v2_definition option_def_null = {
42+
@@ -1210,7 +1210,7 @@ void update_variables(bool first_time)
43+
44+
#if (HAS_CYCLONE || HAS_DRZ80)
45+
case OPT_CYCLONE_MODE:
46+
- if(strcmp(var.value, "default") == 0)
47+
+ if(strcmp(var.value, "available") == 0)
48+
options.cyclone_mode = 1;
49+
else if(strcmp(var.value, "Cyclone") == 0)
50+
options.cyclone_mode = 2;
51+
--
52+
2.45.2.windows.1
53+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Locally calculated
2-
sha256 5709d156513d5f04b41c1c88fa2371647eb337d13d9cf10285a3c801671e4ca1 libretro-mame2003-105ca02fb85e92b9dd5d6ee43f7152d1199eb149.tar.gz
2+
sha256 ff7f97b452fd2fb1716cd28a345aa01c9ddbcc72a9bc9670e2b697c8620e2871 libretro-mame2003-b6c6d52d8d630d1a172b6b771443dcbbdb45b76d.tar.gz

package/miyoo/retroarch/libretro-mame2003/libretro-mame2003.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#
55
################################################################################
66

7-
# Commit of 2023/06/22
8-
LIBRETRO_MAME2003_VERSION = 105ca02fb85e92b9dd5d6ee43f7152d1199eb149
7+
# Commit of Dec 10, 2024
8+
LIBRETRO_MAME2003_VERSION = b6c6d52d8d630d1a172b6b771443dcbbdb45b76d
99
LIBRETRO_MAME2003_SITE = $(call github,libretro,mame2003-libretro,$(LIBRETRO_MAME2003_VERSION))
1010
LIBRETRO_MAME2003_LICENSE = MAME
1111
LIBRETRO_MAME2003_LICENSE_FILES = LICENSE.md

0 commit comments

Comments
 (0)