Merge pull request #1596 from fewtarius/dev

Dev
This commit is contained in:
fewtarius 2023-06-17 13:03:17 -04:00 committed by GitHub
commit bbe8b22178
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 29 additions and 16 deletions

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone Audio SDL"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -25,6 +25,7 @@ make_target() {
export HOST_CPU=aarch64
BINUTILS="$(get_build_dir binutils)/.aarch64-libreelec-linux-gnueabi"
export USE_GLES=1
export NEON=1
;;
x86_64)
export HOST_CPU=x86_64

View file

@ -119,7 +119,7 @@ fi
fi
# SIMPLECORE, decide which executable to use for simple64
if [ "{$SIMPLECORE}" = "simple" ]; then
if [ "${SIMPLECORE}" = "simple" ]; then
SIMPLESUFFIX="-simple"
SET_PARAMS="$SET_PARAMS --set Core[R4300Emulator]=1"
else

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone Input SDL"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -9,7 +9,7 @@ PKG_LONGDESC="Mupen64Plus Standalone RSP CXD4"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone RSP HLE"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -25,25 +25,23 @@ make_target() {
arm|aarch64)
export HOST_CPU=aarch64
BINUTILS="$(get_build_dir binutils)/.aarch64-libreelec-linux-gnueabi"
export USE_GLES=1
sed -i 's/x86-64-v3/armv8-a/g' ${PKG_BUILD}/CMakeLists.txt
ARM="-DARM=1"
;;
x86_64)
export HOST_CPU=x86_64
export USE_GLES=0
ARM=""
;;
esac
export NEW_DYNAREC=1
export SDL_CFLAGS="-I${SYSROOT_PREFIX}/usr/include/SDL2 -pthread"
export SDL_LDLIBS="-lSDL2_net -lSDL2"
export CROSS_COMPILE="${TARGET_PREFIX}"
export V=1
export VC=0
export OSD=0
cd ${PKG_BUILD}
rm -rf build
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE="${RELEASE_TYPE}" ..
cmake -G Ninja ${ARM} -DCMAKE_BUILD_TYPE="Release" ..
VERBOSE=1 cmake --build .
}

View file

@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fad5e481..51b275d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,9 @@ include_directories(
)
add_definitions(-DM64P_PARALLEL -DM64P_NETPLAY -DNO_ASM)
+if(ARM)
+ add_definitions(-DUSE_GLES -DV -DNEON)
+endif(ARM)
add_library(mupen64plus SHARED
src/api/callbacks.c

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone Console"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone Glide64 Video Driver"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone GLide64 Video Driver"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -12,7 +12,7 @@ PKG_LONGDESC="Mupen64Plus Standalone Rice Video Driver"
PKG_TOOLCHAIN="manual"
case ${DEVICE} in
AMD64|RK3588)
AMD64|RK3588|S922X)
PKG_DEPENDS_TARGET="mupen64plus-sa-simplecore"
;;
esac

View file

@ -4,7 +4,7 @@
# The TARGET_CPU variable controls which processor should be targeted for
# generated code.
case $TARGET_ARCH in
case ${TARGET_ARCH} in
aarch64)
TARGET_KERNEL_ARCH="arm64"
TARGET_PATCH_ARCH="aarch64"