Fix up Dreamcast.

This commit is contained in:
fewtarius 2022-09-03 10:12:46 -04:00
parent 642ea54a10
commit 97e7096ae5
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 24 additions and 21 deletions

View file

@ -36,11 +36,15 @@ pre_configure_target() {
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
if [ "${TARGET_ARCH}" = "aarch64" ]
then
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/flycast-*/.install_pkg/usr/lib/libretro/flycast32_libretro.so ${INSTALL}/usr/lib/libretro
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
else
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast32_libretro.so
fi
case ${TARGET_ARCH} in
aarch64)
cp -vP ${ROOT}/build.${DISTRO}-${DEVICE}.arm/flycast-*/.install_pkg/usr/lib/libretro/flycast32_libretro.so ${INSTALL}/usr/lib/libretro
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
;;
arm)
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast32_libretro.so
;;
*)
cp flycast_libretro.so ${INSTALL}/usr/lib/libretro/flycast_libretro.so
;;
}

View file

@ -23,7 +23,6 @@ PKG_NAME="flycast_libretro"
PKG_VERSION="4c293f306bc16a265c2d768af5d0cea138426054"
PKG_SHA256="7ce0bd97b095907fd4960c771364c549a54547877b5128af42c73a9257fbec6b"
PKG_LICENSE="GPLv2"
PKG_ARCH="aarch64"
PKG_SITE="https://github.com/libretro/flycast"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
@ -49,16 +48,17 @@ pre_configure_target() {
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
case ${DEVICE} in
RG351P|RG351V|RG351MP)
PKG_MAKE_OPTS_TARGET+=" platform=RG351x"
;;
RG351P|RG503)
PKG_MAKE_OPTS_TARGET+=" platform=RK3566"
;;
RG552)
PKG_MAKE_OPTS_TARGET+=" platform=${DEVICE}"
;;
esac
}
makeinstall_target() {

View file

@ -512,14 +512,13 @@
<emulators>
<emulator name="retroarch">
<cores>
<core default="true">flycast_libretro</core>
<core>flycast32</core>
<core>flycast_libretro</core>
<core>flycast</core>
</cores>
</emulator>
<emulator name="flycastsa">
<cores>
<core>flycastsa</core>
<core default="true">flycastsa</core>
</cores>
</emulator>
</emulators>