Skip to content

Commit 888cabb

Browse files
authored
Merge pull request #3826 from joolswills/mame_armv7_crc_fix
mame - fix building 7zip/lzma on armv7 due to missing hardware crc
2 parents 1616109 + 508f3d1 commit 888cabb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

scriptmodules/emulators/mame.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ function depends_mame() {
3434

3535
function sources_mame() {
3636
gitPullOrClone
37+
# lzma assumes hardware crc support on arm which breaks when building on armv7
38+
isPlatform "armv7" && applyPatch "$md_data/lzma_armv7_crc.diff"
3739
}
3840

3941
function build_mame() {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/3rdparty/lzma/C/7zCrc.c b/3rdparty/lzma/C/7zCrc.c
2+
index f186324d..f39fe1c9 100644
3+
--- a/3rdparty/lzma/C/7zCrc.c
4+
+++ b/3rdparty/lzma/C/7zCrc.c
5+
@@ -71,7 +71,7 @@ UInt32 MY_FAST_CALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const U
6+
7+
#ifdef MY_CPU_LE
8+
9+
-#if defined(MY_CPU_ARM_OR_ARM64)
10+
+#if defined(MY_CPU_ARM_OR_ARM64) && 0
11+
12+
// #pragma message("ARM*")

0 commit comments

Comments
 (0)