Rix retorarch on the 552, add VitaQuake2 libretor core, clean up unused files

This commit is contained in:
brooksytech 2022-07-19 12:09:33 -07:00
parent 4c85c1d897
commit 5048b1ce71
No known key found for this signature in database
GPG key ID: 45B78D3C7B40B188
6 changed files with 77 additions and 53 deletions

View file

@ -1,51 +0,0 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="duckstationsa"
PKG_VERSION="5ab5070d73f1acc51e064bd96be4ba6ce3c06f5c"
PKG_ARCH="aarch64"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/stenzek/duckstation"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain SDL2 nasm:host ${OPENGLES} libevdev"
PKG_SECTION="libretro"
PKG_SHORTDESC="Fast PlayStation 1 emulator for x86-64/AArch32/AArch64 "
PKG_TOOLCHAIN="cmake"
EXTRA_OPTS+=" -DUSE_DRMKMS=ON -DUSE_FBDEV=OFF -DUSE_MALI=OFF"
#EXTRA_OPTS+=" -DUSE_DRMKMS=OFF -DUSE_FBDEV=ON -DUSE_MALI=ON"
pre_configure_target() {
PKG_CMAKE_OPTS_TARGET+=" -DANDROID=OFF \
-DBUILD_LIBRETRO_CORE=OFF \
-DENABLE_DISCORD_PRESENCE=OFF \
-DUSE_X11=OFF \
-DBUILD_GO2_FRONTEND=OFF \
-DBUILD_QT_FRONTEND=OFF \
-DBUILD_NOGUI_FRONTEND=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DUSE_SDL2=ON \
-DENABLE_CHEEVOS=ON \
-DHAVE_EGL=ON \
${EXTRA_OPTS}"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/bin/duckstation-nogui ${INSTALL}/usr/bin
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/usr/config/duckstation
cp -rf ${PKG_BUILD}/.${TARGET_NAME}/bin/* ${INSTALL}/usr/config/duckstation
cp -rf ${PKG_DIR}/config/* ${INSTALL}/usr/config/duckstation
rm -rf ${INSTALL}/usr/config/duckstation-nogui
rm -rf ${INSTALL}/usr/config/duckstation/common-tests
chmod +x ${INSTALL}/usr/bin/duckstation.sh
}

View file

@ -44,7 +44,7 @@ pre_configure_target() {
esac
case ${DEVICE} in
RG351P)
RG351P|RG552)
PKG_DEPENDS_TARGET+=" libgo2"
PKG_CONFIGURE_OPTS_TARGET+=" --enable-odroidgo2"
;;

View file

@ -0,0 +1,33 @@
PKG_NAME="vitaquake2"
PKG_VERSION="aed906ef107eb684e18d8889c9bf383cc7b77b84"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/vitaquake2"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="libretro"
PKG_SHORTDESC="Libretro port of VitaQuakeII (Quake 2 engine)"
PKG_IS_ADDON="no"
PKG_TOOLCHAIN="make"
PKG_AUTORECONF="no"
pre_make_target() {
export BUILD_SYSROOT=${SYSROOT_PREFIX}
if [[ "${DEVICE}" =~ RG351 ]]
then
PKG_MAKE_OPTS_TARGET+=" platform=RG351x"
elif [[ "${DEVICE}" =~ RG503 ]] || [[ "${DEVICE}" =~ RG353P ]]
then
PKG_MAKE_OPTS_TARGET+=" platform=RK3566"
else
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
fi
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libretro
cp vitaquake2_libretro.so $INSTALL/usr/lib/libretro/
}

View file

@ -0,0 +1,41 @@
diff --git a/Makefile b/Makefile
index 700146a..f853845 100644
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,36 @@ else ifneq (,$(findstring rockchip,$(platform)))
GLES31 := 1
endif
+# Anbernic RG552
+else ifeq ($(platform), RG552)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+ CFLAGS += -mcpu=cortex-a72 -mtune=cortex-a72 -ffast-math -DARM
+ CFLAGS += -D_POSIX_C_SOURCE=199309L
+ GLES := 1
+ GLES31 := 1
+
+# Anbernic RG503, RG353p
+else ifeq ($(platform), RG503)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+ CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 -ffast-math -DARM
+ CFLAGS += -D_POSIX_C_SOURCE=199309L
+ GLES := 1
+ GLES31 := 1
+
+# Anbernic RG351P/M, RG351MP, RG351V
+else ifeq ($(platform), RG351x)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=$(CORE_DIR)/link.T -Wl,--no-undefined
+ CFLAGS += -mcpu=cortex-a35 -mtune=cortex-a35 -ffast-math -DARM
+ CFLAGS += -D_POSIX_C_SOURCE=199309L
+ GLES := 1
+ GLES31 := 1
+
else ifneq (,$(findstring osx,$(platform)))
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC

View file

@ -47,7 +47,7 @@ LIBRETRO_CORES="2048 81 a5200 atari800 beetle-gba beetle-lynx beetle-ngp beetle-
ppsspp prboom prosystem puae px68k quasi88 quicknes race reminiscence sameboy \
sameduck scummvm smsplus-gx snes9x snes9x2002 snes9x2005_plus snes9x2010 stella \
stella-2014 swanstation TIC-80 tgbdual tyrquake xrick uae4arm uzem vba-next vbam \
vecx vice yabasanshiro xmil mesen virtualjaguar ecwolf_libretro"
vecx vice yabasanshiro xmil mesen virtualjaguar ecwolf_libretro vitaquake2"
PKG_COMPAT=""

1
vitaquake2 Submodule

@ -0,0 +1 @@
Subproject commit aed906ef107eb684e18d8889c9bf383cc7b77b84