[oe-commits] Denis 'GNUtoo' Carikli : xmame: fix runtime endianess issue and bump PR
git version control
git at git.openembedded.org
Tue Nov 30 16:19:39 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: d420ff258af140ef35fb64af4ac542cf3a1797ed
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d420ff258af140ef35fb64af4ac542cf3a1797ed
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date: Fri Nov 26 11:39:52 2010 +0100
xmame: fix runtime endianess issue and bump PR
Without that fix we have(at runtime):
xmame.SDL
error: compiled byte ordering doesn't match machine byte ordering.
compiled for MSB first, are you sure you chose the right cpu in makefile.unix?
on arm little endian
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
recipes/xmame/xmame_0.100.bb | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/recipes/xmame/xmame_0.100.bb b/recipes/xmame/xmame_0.100.bb
index ce95744..cd326a2 100644
--- a/recipes/xmame/xmame_0.100.bb
+++ b/recipes/xmame/xmame_0.100.bb
@@ -1,4 +1,4 @@
-DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL"
+DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL "
LICENSE = "xmame"
SECTION = "games"
PRIORITY = "optional"
@@ -7,14 +7,18 @@ DEPENDS = "expat virtual/libsdl libsdl-mixer"
SRC_URI = "http://x.mame.net/download/historic/xmame-${PV}.tar.bz2 file://tiny.mak"
S = "${WORKDIR}/xmame-${PV}"
-inherit flow-lossage
+PR = "r1"
+
+inherit flow-lossage siteinfo
+
+ENDIANESS = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DLSB_FIRST', '-DMSB_FIRST', d)}"
do_compile() {
test -z "${TINY}" && oe_runmake TARGET="mame" CC="${BUILD_CC}" maketree xmame.obj/cpu/m68000/m68kmake
- oe_runmake TARGET="mame" JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \
- CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS}" \
- CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \
- RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \
+ oe_runmake TARGET="mame" JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \
+ CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS} ${ENDIANESS}" \
+ CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \
+ RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \
GLLIBS="" STRIP="${STRIP}" AR="${AR}"
}
More information about the Openembedded-commits
mailing list