From: Autechre Date: Sat, 19 Mar 2022 18:53:38 +0000 (+0100) Subject: Merge pull request #629 from jSTE0/miyoo-platform X-Git-Tag: r24l~490 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e09212db7aff5064a7eaaa9008f8c69d465c54f7;hp=75d5614bce62f7c2b3ca196574cf28bc9d050cdb;p=pcsx_rearmed.git Merge pull request #629 from jSTE0/miyoo-platform platforms: Add Miyoo target --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf05cac3..b777f1b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,10 @@ include: # tvOS (AppleTV) - project: 'libretro-infrastructure/ci-templates' file: '/tvos-arm64.yml' + + # OpenDingux (ARM) + - project: 'libretro-infrastructure/ci-templates' + file: '/dingux-arm32.yml' #################################### MISC ################################## @@ -182,3 +186,9 @@ libretro-build-libnx-aarch64: extends: - .libretro-libnx-static-retroarch-master - .core-defs + +# Miyoo +libretro-build-miyoo-arm32: + extends: + - .libretro-miyoo-arm32-make-default + - .core-defs diff --git a/Makefile.libretro b/Makefile.libretro index c2fc9d0f..4c60462c 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -447,6 +447,18 @@ else ifneq (,$(findstring armv,$(platform))) ARCH = arm DYNAREC = ari64 +else ifeq ($(platform), miyoo) + TARGET := $(TARGET_NAME)_libretro.so + CC = /opt/miyoo/usr/bin/arm-linux-gcc + CXX = /opt/miyoo/usr/bin/arm-linux-g++ + fpic := -fPIC + CFLAGS += -mcpu=arm926ej-s -fsingle-precision-constant + CFLAGS += -DGPULIB_USE_MMAP -DGPU_UNAI_USE_INT_DIV_MULTINV -D_MIYOO + ARCH = arm + BUILTIN_GPU = unai + DYNAREC = ari64 + HAVE_NEON = 0 + # Emscripten else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_$(platform).bc diff --git a/frontend/libretro_core_options.h b/frontend/libretro_core_options.h index 3e1daf2b..7c850aa4 100644 --- a/frontend/libretro_core_options.h +++ b/frontend/libretro_core_options.h @@ -834,7 +834,11 @@ struct retro_core_option_definition option_defs_us[] = { { "enabled", NULL }, { NULL, NULL}, }, +#ifdef _MIYOO + "enabled", +#else "disabled", +#endif }, #endif /* GPU UNAI Advanced Settings */ #ifdef THREAD_RENDERING