Skip to content

Commit 63c63bf

Browse files
authored
Merge pull request #3590 from joolswills/dosbox-staging_armv6_fix
dosbox-staging - fix building for armv6
2 parents 8386114 + f36e8f2 commit 63c63bf

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

scriptmodules/admin/image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function _init_chroot_image() {
174174
trap "_trap_chroot_image '$chroot'" INT
175175

176176
# mount special filesystems to chroot
177-
mkdir -p "$chroot"/dev/pts
177+
mkdir -p "$chroot"{/dev/pts,/proc}
178178
mount none -t devpts "$chroot/dev/pts"
179179
mount -t proc /proc "$chroot/proc"
180180

scriptmodules/emulators/dosbox-staging.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function depends_dosbox-staging() {
2727

2828
function sources_dosbox-staging() {
2929
gitPullOrClone
30+
# patch the dosbox-staging meson.build script to disable neon instructions for older arm
31+
if ! isPlatform "neon"; then
32+
applyPatch "$md_data/speexdsp_simd_disable.diff"
33+
fi
3034
}
3135

3236
function build_dosbox-staging() {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/meson.build b/meson.build
2+
index 8db4dd4..e5e7549 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -396,7 +396,7 @@ endif
6+
if not speexdsp_dep.found() or not is_system_speexdsp_reliable
7+
speexdsp_dep = subproject(
8+
'speexdsp',
9+
- default_options: default_wrap_options,
10+
+ default_options: default_wrap_options + ['simd=false']
11+
).get_variable('speexdsp_dep')
12+
speexdsp_summary_msg = 'built-in'
13+
endif

0 commit comments

Comments
 (0)