Add back in Flycast-LR, portmaster tweak
This commit is contained in:
parent
bdb54c1976
commit
fa8fbc3f73
13 changed files with 247 additions and 16 deletions
|
@ -41,7 +41,7 @@ dialog --clear
|
|||
hotkey="Select"
|
||||
height="15"
|
||||
width="55"
|
||||
power="None"
|
||||
power='(?<=Title_P=\").*?(?=\")'
|
||||
opengl="None"
|
||||
|
||||
if [[ "${UI_SERVICE}" =~ weston.service ]]; then
|
||||
|
|
|
@ -33,6 +33,6 @@ makeinstall_target() {
|
|||
${TOOLCHAIN}/bin/rename -v mednafen beetle ${PKG_BUILD}/*.info
|
||||
cp ${PKG_BUILD}/*.info ${INSTALL}/usr/lib/libretro/
|
||||
cp ${PKG_BUILD}/pcsx_rearmed_libretro.info ${INSTALL}/usr/lib/libretro/pcsx_rearmed32_libretro.info
|
||||
cp ${PKG_BUILD}/flycast_libretro.info ${INSTALL}/usr/lib/libretro/flycast_libretro_libretro.info
|
||||
cp ${PKG_BUILD}/flycast_libretro.info ${INSTALL}/usr/lib/libretro/flycast2021_libretro.info
|
||||
cp ${PKG_BUILD}/flycast_libretro.info ${INSTALL}/usr/lib/libretro/flycast32_libretro.info
|
||||
}
|
||||
|
|
59
packages/emulators/libretro/flycast2021-lr/package.mk
Normal file
59
packages/emulators/libretro/flycast2021-lr/package.mk
Normal file
|
@ -0,0 +1,59 @@
|
|||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2022-present Fewtarius
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="flycast2021-lr"
|
||||
PKG_VERSION="4c293f306bc16a265c2d768af5d0cea138426054"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="https://github.com/libretro/flycast"
|
||||
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="Flycast is a multiplatform Sega Dreamcast emulator "
|
||||
PKG_TOOLCHAIN="make"
|
||||
PKG_BUILD_FLAGS="-gold"
|
||||
PKG_PATCH_DIRS+="${DEVICE}"
|
||||
|
||||
if [ ! "${OPENGL}" = "no" ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
||||
fi
|
||||
|
||||
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
||||
PKG_MAKE_OPTS_TARGET+=" FORCE_GLES=1"
|
||||
fi
|
||||
|
||||
pre_configure_target() {
|
||||
sed -i 's/define CORE_OPTION_NAME "reicast"/define CORE_OPTION_NAME "flycast2021"/g' core/libretro/libretro_core_option_defines.h
|
||||
PKG_MAKE_OPTS_TARGET="${PKG_MAKE_OPTS_TARGET} ARCH=${TARGET_ARCH} HAVE_OPENMP=1 GIT_VERSION=${PKG_VERSION:0:7} HAVE_LTCG=0"
|
||||
}
|
||||
|
||||
pre_make_target() {
|
||||
export BUILD_SYSROOT=${SYSROOT_PREFIX}
|
||||
case ${DEVICE} in
|
||||
RK3*|S922X*)
|
||||
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p ${INSTALL}/usr/lib/libretro
|
||||
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast2021_libretro.so
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
diff -rupN flycast.orig/Makefile flycast/Makefile
|
||||
--- flycast.orig/Makefile 2022-06-18 13:29:52.675787687 -0400
|
||||
+++ flycast/Makefile 2022-06-18 13:53:23.564624927 -0400
|
||||
@@ -403,26 +403,30 @@ else ifeq ($(platform), arm64_cortex_a53
|
||||
|
||||
#######################################
|
||||
|
||||
-# ARM64 SM1 Odroid C4
|
||||
-else ifeq ($(platform), odroidc4)
|
||||
+# ARM64 RK3326
|
||||
+else ifeq ($(platform), RK3326)
|
||||
EXT ?= so
|
||||
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||
SHARED += -shared -Wl,--version-script=link.T
|
||||
- LDFLAGS += -Wl,--no-undefined
|
||||
fpic = -fPIC
|
||||
LIBS += -lrt
|
||||
ARM_FLOAT_ABI_HARD = 0
|
||||
FORCE_GLES = 1
|
||||
SINGLE_PREC_FLAGS = 1
|
||||
- CPUFLAGS += -DHOST_CPU=0x20000006 -DTARGET_LINUX_ARMv8 -frename-registers
|
||||
- CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- CXXFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- ASFLAGS += $(CFLAGS) -c -frename-registers -fno-strict-aliasing -ffast-math -ftree-vectorize
|
||||
+ HAVE_LTCG = 0
|
||||
+ HAVE_OPENMP = 0
|
||||
+ CFLAGS += -Ofast \
|
||||
+ -fuse-linker-plugin \
|
||||
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||
+ -fmerge-all-constants -ffast-math -funroll-all-loops \
|
||||
+ -mcpu=cortex-a35 -mtune=cortex-a35
|
||||
+ CXXFLAGS += $(CFLAGS)
|
||||
+ LDFLAGS += -mcpu=cortex-a35 -mtune=cortex-a35 -Ofast -flto -fuse-linker-plugin
|
||||
PLATFORM_EXT := unix
|
||||
+ CORE_DEFINES += -DLOW_END -DLOW_RES
|
||||
WITH_DYNAREC=arm64
|
||||
+ PLATFORM_EXT := unix
|
||||
HAVE_GENERIC_JIT = 0
|
||||
- HAVE_VULKAN = 0
|
||||
- HAVE_LTCG = 0
|
||||
|
||||
#######################################
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
diff -rupN flycast.orig/Makefile flycast/Makefile
|
||||
--- flycast.orig/Makefile 2022-06-18 13:29:52.675787687 -0400
|
||||
+++ flycast/Makefile 2022-06-18 13:53:23.564624927 -0400
|
||||
@@ -403,26 +403,30 @@ else ifeq ($(platform), arm64_cortex_a53
|
||||
|
||||
#######################################
|
||||
|
||||
-# ARM64 SM1 Odroid C4
|
||||
-else ifeq ($(platform), odroidc4)
|
||||
+# ARM64 RG503, RG353x, x55, rk2023
|
||||
+else ifeq ($(platform), RK3566)
|
||||
EXT ?= so
|
||||
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||
SHARED += -shared -Wl,--version-script=link.T
|
||||
- LDFLAGS += -Wl,--no-undefined
|
||||
fpic = -fPIC
|
||||
LIBS += -lrt
|
||||
ARM_FLOAT_ABI_HARD = 0
|
||||
FORCE_GLES = 1
|
||||
SINGLE_PREC_FLAGS = 1
|
||||
- CPUFLAGS += -DHOST_CPU=0x20000006 -DTARGET_LINUX_ARMv8 -frename-registers
|
||||
- CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- CXXFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- ASFLAGS += $(CFLAGS) -c -frename-registers -fno-strict-aliasing -ffast-math -ftree-vectorize
|
||||
+ HAVE_LTCG = 0
|
||||
+ HAVE_OPENMP = 0
|
||||
+ CFLAGS += -Ofast \
|
||||
+ -fuse-linker-plugin \
|
||||
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||
+ -fmerge-all-constants -ffast-math -funroll-all-loops \
|
||||
+ -mcpu=cortex-a55 -mtune=cortex-a55
|
||||
+ CXXFLAGS += $(CFLAGS)
|
||||
+ LDFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 -Ofast -flto -fuse-linker-plugin
|
||||
PLATFORM_EXT := unix
|
||||
+ CORE_DEFINES += -DLOW_END -DLOW_RES
|
||||
WITH_DYNAREC=arm64
|
||||
+ PLATFORM_EXT := unix
|
||||
HAVE_GENERIC_JIT = 0
|
||||
- HAVE_VULKAN = 0
|
||||
- HAVE_LTCG = 0
|
||||
|
||||
#######################################
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
diff -rupN flycast.orig/Makefile flycast/Makefile
|
||||
--- flycast.orig/Makefile 2022-06-18 13:29:52.675787687 -0400
|
||||
+++ flycast/Makefile 2022-06-18 13:53:23.564624927 -0400
|
||||
@@ -403,26 +403,30 @@ else ifeq ($(platform), arm64_cortex_a53
|
||||
|
||||
#######################################
|
||||
|
||||
-# ARM64 SM1 Odroid C4
|
||||
-else ifeq ($(platform), odroidc4)
|
||||
+# ARM64 RK3588
|
||||
+else ifeq ($(platform), RK3588)
|
||||
EXT ?= so
|
||||
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||
SHARED += -shared -Wl,--version-script=link.T
|
||||
- LDFLAGS += -Wl,--no-undefined
|
||||
fpic = -fPIC
|
||||
LIBS += -lrt
|
||||
ARM_FLOAT_ABI_HARD = 0
|
||||
FORCE_GLES = 1
|
||||
SINGLE_PREC_FLAGS = 1
|
||||
- CPUFLAGS += -DHOST_CPU=0x20000006 -DTARGET_LINUX_ARMv8 -frename-registers
|
||||
- CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- CXXFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55 $(CPUFLAGS)
|
||||
- ASFLAGS += $(CFLAGS) -c -frename-registers -fno-strict-aliasing -ffast-math -ftree-vectorize
|
||||
+ HAVE_LTCG = 0
|
||||
+ HAVE_OPENMP = 0
|
||||
+ CFLAGS += -Ofast \
|
||||
+ -fuse-linker-plugin \
|
||||
+ -fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||
+ -fmerge-all-constants -ffast-math -funroll-all-loops \
|
||||
+ -mcpu=cortex-a76 -mtune=cortex-a76
|
||||
+ CXXFLAGS += $(CFLAGS)
|
||||
+ LDFLAGS += -mcpu=cortex-a76 -mtune=cortex-a76 -Ofast -flto -fuse-linker-plugin
|
||||
PLATFORM_EXT := unix
|
||||
+ CORE_DEFINES += -DLOW_END -DLOW_RES
|
||||
WITH_DYNAREC=arm64
|
||||
+ PLATFORM_EXT := unix
|
||||
HAVE_GENERIC_JIT = 0
|
||||
- HAVE_VULKAN = 0
|
||||
- HAVE_LTCG = 0
|
||||
|
||||
#######################################
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
diff -rupN flycast.orig/Makefile flycast/Makefile
|
||||
--- flycast.orig/Makefile 2022-04-08 18:10:23.156125702 -0400
|
||||
+++ flycast/Makefile 2022-04-08 18:48:44.236265589 -0400
|
||||
@@ -610,6 +610,24 @@ else ifneq (,$(findstring RK,$(platform)
|
||||
WITH_DYNAREC=arm
|
||||
HAVE_GENERIC_JIT = 0
|
||||
|
||||
+else ifeq ($(platform), S922X)
|
||||
+ EXT ?= so
|
||||
+ TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||
+ SHARED += -shared -Wl,--version-script=link.T
|
||||
+ fpic = -fPIC
|
||||
+ LIBS += -lrt
|
||||
+ ARM_FLOAT_ABI_HARD = 0
|
||||
+ FORCE_GLES = 1
|
||||
+ SINGLE_PREC_FLAGS = 1
|
||||
+ FORCE_GLES = 1
|
||||
+ CPUFLAGS += -DTARGET_LINUX_ARMv8 -frename-registers
|
||||
+ CFLAGS += -mno-outline-atomics -march=armv8-a+crc -mcpu=cortex-a73 -mtune=cortex-a73 $(CPUFLAGS)
|
||||
+ CXXFLAGS += -march=armv8-a+crc -mcpu=cortex-a73 -mtune=cortex-a73 $(CPUFLAGS)
|
||||
+ ASFLAGS += -march=armv8-a+crc -mcpu=cortex-a73 -c
|
||||
+ WITH_DYNAREC=arm64
|
||||
+ PLATFORM_EXT := unix
|
||||
+ HAVE_GENERIC_JIT = 0
|
||||
+
|
||||
# RockPro64
|
||||
else ifeq ($(platform), rockpro64)
|
||||
EXT ?= so
|
|
@ -249,6 +249,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
@ -535,6 +536,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
@ -1159,6 +1161,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
|
|
@ -224,8 +224,9 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core default="true">flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
@ -511,8 +512,9 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core default="true">flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
@ -1083,8 +1085,9 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core default="true">flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
|
|
|
@ -224,7 +224,8 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast32</core>
|
||||
<core default="true">flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
@ -511,7 +512,8 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast32</core>
|
||||
<core default="true">flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
@ -1073,7 +1075,8 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast32</core>
|
||||
<core>flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
<core>flycast</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
|
|
@ -225,6 +225,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
@ -512,6 +513,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
@ -1074,6 +1076,7 @@
|
|||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast2021</core>
|
||||
<core>flycast32</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
|
|
|
@ -224,12 +224,13 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
<cores>
|
||||
<core>flycast-sa</core>
|
||||
<core default="true">flycast-sa</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
</emulators>
|
||||
|
@ -510,12 +511,13 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
<cores>
|
||||
<core>flycast-sa</core>
|
||||
<core default="true">flycast-sa</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
</emulators>
|
||||
|
@ -1081,12 +1083,13 @@
|
|||
<emulators>
|
||||
<emulator name="retroarch">
|
||||
<cores>
|
||||
<core default="true">flycast</core>
|
||||
<core>flycast</core>
|
||||
<core>flycast2021</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
<emulator name="flycast">
|
||||
<cores>
|
||||
<core>flycast-sa</core>
|
||||
<core default="true">flycast-sa</core>
|
||||
</cores>
|
||||
</emulator>
|
||||
</emulators>
|
||||
|
|
|
@ -17,7 +17,7 @@ LIBRETRO_CORES="2048-lr 81-lr a5200-lr atari800-lr beetle-gba-lr beetle-lynx-lr
|
|||
beetle-pce-fast-lr beetle-pcfx-lr bsnes-lr bsnes-mercury-performance-lr beetle-supafaust-lr \
|
||||
beetle-supergrafx-lr beetle-vb-lr beetle-wswan-lr beetle-saturn-lr bluemsx-lr cannonball-lr \
|
||||
cap32-lr crocods-lr daphne-lr dinothawr-lr dosbox-svn-lr dosbox-pure-lr duckstation-lr \
|
||||
easyrpg-lr fake08-lr fbalpha2012-lr fbalpha2019-lr fbneo-lr fceumm-lr fmsx-lr \
|
||||
easyrpg-lr fake08-lr fbalpha2012-lr fbalpha2019-lr fbneo-lr fceumm-lr flycast2021-lr fmsx-lr \
|
||||
freechaf-lr freeintv-lr freej2me-lr fuse-lr gambatte-lr gearboy-lr gearcoleco-lr gearsystem-lr \
|
||||
genesis-plus-gx-lr genesis-plus-gx-wide-lr gme-lr gw-lr handy-lr hatari-lr mame2000-lr \
|
||||
mame2003-plus-lr mame2010-lr mame2015-lr melonds-lr meowpc98-lr mesen-lr mgba-lr mrboom-lr \
|
||||
|
|
Loading…
Reference in a new issue