dosbox-x: Set enable_unaligned_memory by recipe

That's what configure would do if it would detect cpu properly

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2020-10-19 23:13:40 +02:00
parent 4b5edad658
commit 2be950e1c8
2 changed files with 40 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl"
SRC_URI = " \
git://github.com/joncampbell123/dosbox-x.git \
file://0001-use-pkgconfig-to-find-sdl2.patch \
file://0002-Enable-unaligned-memory-based-on-recipe-s-suggestion.patch \
file://dosbox-x.desktop \
"
SRCREV = "0f1435e18d06ac955f26211541a9556bac759ae2"
@@ -35,6 +36,11 @@ EXTRA_OECONF = " \
--disable-alsatest \
"
# configure's cpu detection does not match here so set what was intended
EXTRA_OECONF_append_armv4 = " --disable-unaligned-memory"
EXTRA_OECONF_append_armv5 = " --disable-unaligned-memory"
EXTRA_OECONF_append_armv6 = " --disable-unaligned-memory"
do_install_append() {
install -d ${D}/${datadir}/applications
install -m 0644 ${WORKDIR}/*.desktop ${D}/${datadir}/applications

View File

@@ -0,0 +1,34 @@
From 7513e63ca7621f730adb41df556af470f9fba372 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Mon, 19 Oct 2020 23:02:41 +0200
Subject: [PATCH] Enable unaligned memory based on recipe's suggestion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
CPU detection as dosbox-x handles it does not work here. So set in recipe
what configure would do.
Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d832bcc9a..8841e6c4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -850,7 +850,7 @@ dnl FEATURE: Whether to enable unaligned memory access
AH_TEMPLATE(C_UNALIGNED_MEMORY,[Define to 1 to use a unaligned memory access])
AC_ARG_ENABLE(unaligned_memory,AC_HELP_STRING([--disable-unaligned-memory],[Disable unaligned memory access]),,enable_unaligned_memory=yes)
AC_MSG_CHECKING(whether to enable unaligned memory access)
-if test x$enable_unaligned_memory = xyes -a x$c_unalignedmemory = xyes; then
+if test x$enable_unaligned_memory = xyes; then
AC_DEFINE(C_UNALIGNED_MEMORY,1)
AC_MSG_RESULT(yes)
else
--
2.26.2