BOARD: separate miyoo packages + concentrate RetroArch/libretro (#129)

MENU->Target packages ---> Miyoo Packages ---> ...
This commit is contained in:
Apaczer
2024-10-15 20:07:21 +02:00
committed by GitHub
parent 81270d9968
commit 59d7586ca6
217 changed files with 328 additions and 298 deletions

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_LIBRETRO_POTATOR
bool "libretro-potator"
depends on BR2_PACKAGE_RETROARCH
help
A libretro Watara Supervision emulator core.
http://www.libretro.com

View File

@@ -0,0 +1,26 @@
################################################################################
#
# Watara Supervision
#
################################################################################
# Commit of 2023/05/28
LIBRETRO_POTATOR_VERSION = aed31f9254cada9826c65ff4528cc8bdda338275
LIBRETRO_POTATOR_SITE = $(call github,libretro,potator,$(LIBRETRO_POTATOR_VERSION))
LIBRETRO_POTATOR_LICENSE = Unlicense
define LIBRETRO_POTATOR_BUILD_CMDS
CFLAGS="$(TARGET_CFLAGS) $(COMPILER_COMMONS_CFLAGS_SO)" \
CPPFLAGS="$(TARGET_CXXFLAGS) $(COMPILER_COMMONS_CXXFLAGS_SO)" \
LDFLAGS="$(TARGET_LDFLAGS) $(COMPILER_COMMONS_LDFLAGS_SO)" \
$(MAKE) CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" -C $(@D)/platform/libretro -f Makefile platform="$(RETROARCH_LIBRETRO_PLATFORM)"
$(TARGET_STRIP) --strip-unneeded $(@D)/platform/libretro/*_libretro.so
endef
define LIBRETRO_POTATOR_INSTALL_TARGET_CMDS
mkdir -p "${BINARIES_DIR}/retroarch/cores"
$(INSTALL) -D $(@D)/platform/libretro/potator_libretro.so \
${BINARIES_DIR}/retroarch/cores/potator_libretro.so
endef
$(eval $(generic-package))