Skip to content

Commit

Permalink
Add xemu sa support to aarch64 (SD865)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3claimer committed Oct 6, 2024
1 parent cafbcf2 commit 67b4a59
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ This document describes all available systems emulators and cores available for
|Microsoft|DOS (pc)|1981|`pc`|.com .bat .exe .dosz .zip|**retroarch:** dosbox_pure<br>**retroarch:** dosbox_svn<br>|
|Microsoft|MSX (msx)|1983|`msx`|.dsk .mx1 .mx2 .rom .zip .7z .m3u|**retroarch:** bluemsx (default)<br>**retroarch:** fmsx<br>|
|Microsoft|MSX 2 (msx2)|1988|`msx2`|.dsk .mx1 .mx2 .rom .zip .7z .m3u|**retroarch:** bluemsx (default)<br>**retroarch:** fmsx<br>|
|Microsoft|Xbox (xbox)|2001|`xbox`|.iso|**xemu:** xemu-sa (default)<br>|
|NEC|PC Engine (pcengine)|1987|`pcengine`|.pce .bin .zip .7z|**retroarch:** beetle_pce_fast (default)<br>**retroarch:** beetle_pce<br>**retroarch:** beetle_supergrafx<br>|
|NEC|PC Engine CD (pcenginecd)|1988|`pcenginecd`|.cue .ccd .chd .toc .m3u|**retroarch:** beetle_pce_fast (default)<br>**retroarch:** beetle_pce<br>**retroarch:** beetle_supergrafx<br>|
|NEC|PC-8800 (pc-8800)|1981|`pc88`|.d88 .u88 .m3u|**retroarch:** quasi88 (default)<br>|
Expand Down
6 changes: 6 additions & 0 deletions licenses/XEMU.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
https://xemu.app/

License:
xemu is free and open source software. Binaries and source of xemu are made available under the terms of the GNU General Public License, version 2.

xemu depends on several great open source libraries. Each distribution of xemu includes a LICENSE.txt file which includes specific license information for relevant libraries.
4 changes: 2 additions & 2 deletions packages/audio/libsamplerate/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="A Sample Rate Converter for audio."

# package specific configure options
PKG_CONFIGURE_OPTS_TARGET="--disable-shared \
--enable-static \
PKG_CONFIGURE_OPTS_TARGET="--enable-shared \
--disable-static \
--datadir=/usr/share \
--disable-fftw \
--disable-sndfile"
Expand Down
34 changes: 27 additions & 7 deletions packages/emulators/standalone/xemu-sa/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,45 @@

PKG_NAME="xemu-sa"
PKG_VERSION="v0.7.127"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/xemu-project/xemu"
PKG_URL="${PKG_SITE}/releases/download/${PKG_VERSION}/xemu-${PKG_VERSION}-x86_64.AppImage"
PKG_DEPENDS_TARGET="toolchain libthai"
PKG_DEPENDS_TARGET="toolchain libthai gtk3 libsamplerate libpcap atk"
PKG_LONGDESC="Xbox Emulator appimage"
PKG_TOOLCHAIN="manual"
PKG_HDD_IMAGE="https://github.com/xqemu/xqemu-hdd-image/releases/download/v1.0/xbox_hdd.qcow2.zip"

case ${TARGET_ARCH} in
x86_64)
PKG_URL="${PKG_SITE}/releases/download/${PKG_VERSION}/xemu-${PKG_VERSION}-x86_64.AppImage"
;;
aarch64)
PKG_URL="https://github.com/ROCKNIX/packages/raw/refs/heads/main/xemu-aarch64.tar.gz"
;;
esac

makeinstall_target() {
# Redefine strip or the AppImage will be stripped rendering it unusable.
export STRIP=true
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_BUILD}/${PKG_NAME}-${PKG_VERSION}.AppImage ${INSTALL}/usr/bin/${PKG_NAME}
cp -rf ${PKG_DIR}/scripts/start_xemu.sh ${INSTALL}/usr/bin
sed -e "s/@APPIMAGE@/${PKG_NAME}/g" -i ${INSTALL}/usr/bin/start_xemu.sh
mkdir -p ${INSTALL}/usr/share/xemu-sa
case ${TARGET_ARCH} in
x86_64)
cp ${PKG_BUILD}/${PKG_NAME}-${PKG_VERSION}.AppImage ${INSTALL}/usr/share/xemu-sa/${PKG_NAME}
APPIMAGE=${PKG_NAME}
;;
aarch64)
cp -r ${PKG_BUILD}/xemu ${INSTALL}/usr/share/xemu-sa/
cp -r ${PKG_BUILD}/license.txt ${INSTALL}/usr/share/xemu-sa/
APPIMAGE="xemu"
;;
esac
sed -e "s/@APPIMAGE@/${APPIMAGE}/g" -i ${INSTALL}/usr/bin/start_xemu.sh
chmod 755 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config
cp -rf ${PKG_DIR}/config/${DEVICE}/xemu.toml ${INSTALL}/usr/config
chmod 755 ${INSTALL}/usr/share/xemu-sa/*

mkdir -p ${INSTALL}/usr/config/xemu
cp -rf ${PKG_DIR}/config/${DEVICE}/xemu.toml ${INSTALL}/usr/config/xemu

#Download HDD IMAGE
curl -Lo ${INSTALL}/usr/config/xemu/hdd.zip ${PKG_HDD_IMAGE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi

CONFIG=/storage/.config/xemu/xemu.toml

@APPIMAGE@ -full-screen -config_path $CONFIG -dvd_path "${1}"
/usr/share/xemu-sa/@APPIMAGE@ -full-screen -config_path $CONFIG -dvd_path "${1}"

#Workaround until we can learn why it doesn't exit cleanly when asked.
killall -9 xemu-sa
3 changes: 2 additions & 1 deletion packages/network/libpcap/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PKG_TOOLCHAIN="configure"

PKG_CONFIGURE_OPTS_TARGET="LIBS=-lpthread \
ac_cv_header_libusb_1_0_libusb_h=no \
--disable-shared \
--disable-static \
--with-pcap=linux \
--disable-bluetooth \
--disable-can \
Expand All @@ -28,5 +28,6 @@ pre_configure_target() {
}

post_makeinstall_target() {
ln -sfv /usr/lib/libpcap.so.1 ${INSTALL}/usr/lib/libpcap.so.0.8
rm -rf ${INSTALL}/usr/bin
}
6 changes: 3 additions & 3 deletions packages/virtual/emulators/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ case "${DEVICE}" in
PKG_RETROARCH+=" retropie-shaders"
;;
SD865)
PKG_EMUS+=" aethersx2-sa box64 dolphin-sa drastic-sa lime3ds-sa mednafen melonds-sa portmaster scummvmsa supermodel-sa yabasanshiro-sa"
PKG_EMUS+=" aethersx2-sa box64 dolphin-sa drastic-sa lime3ds-sa mednafen melonds-sa portmaster scummvmsa supermodel-sa xemu-sa yabasanshiro-sa"
LIBRETRO_CORES+=" beetle-psx-lr beetle-saturn-lr bsnes-lr bsnes-hd-lr dolphin-lr flycast-lr geolith-lr pcsx_rearmed-lr uae4arm"
PKG_RETROARCH+=" retropie-shaders"
;;
Expand Down Expand Up @@ -1014,8 +1014,8 @@ makeinstall_target() {
add_es_system x1

### Microsoft XBox
case ${TARGET_ARCH} in
x86_64)
case ${DEVICE} in
AMD64|SD865)
add_emu_core xbox xemu xemu-sa true
add_es_system xbox
install_script "Start Xemu.sh"
Expand Down

0 comments on commit 67b4a59

Please sign in to comment.