From 30c408cb3659a2e804e868cd592044f251d7ffa9 Mon Sep 17 00:00:00 2001 From: Salvador Date: Sat, 16 Oct 2021 03:37:50 +0200 Subject: [PATCH] Miyoo (#243) * add miyoo target --- .gitlab-ci.yml | 10 ++++++++++ Makefile.libretro | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 79312cb38..722232f43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -89,6 +89,10 @@ include: - project: 'libretro-infrastructure/ci-templates' file: '/dingux-mips32.yml' + # OpenDingux (ARM) + - project: 'libretro-infrastructure/ci-templates' + file: '/dingux-arm32.yml' + # tvOS (AppleTV) - project: 'libretro-infrastructure/ci-templates' file: '/tvos-arm64.yml' @@ -249,6 +253,12 @@ libretro-build-dingux-odbeta-mips32: - .libretro-dingux-odbeta-mips32-make-default - .core-defs +# Miyoo +libretro-build-miyoo-arm32: + extends: + - .libretro-miyoo-arm32-make-default + - .core-defs + #################################### MISC ################################## # Emscripten libretro-build-emscripten: diff --git a/Makefile.libretro b/Makefile.libretro index 201a8f77e..8c790dcbd 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -418,6 +418,18 @@ else ifeq ($(platform), gcw0) CFLAGS += -fno-common -ftree-vectorize -funswitch-loops DEFINES += -std=c99 +# MIYOO +else ifeq ($(platform), miyoo) + TARGET := $(TARGET_NAME)_libretro.so + fpic := -fPIC + SHARED := -shared -Wl,-version-script=link.T + CC = /opt/miyoo/usr/bin/arm-linux-gcc + AR = /opt/miyoo/usr/bin/arm-linux-ar + PLATFORM_DEFINES += -D_GNU_SOURCE + CFLAGS += -fomit-frame-pointer -ffast-math -march=armv5te -mtune=arm926ej-s + CFLAGS += -fno-common -ftree-vectorize -funswitch-loops + DEFINES += -std=c99 + # Windows else TARGET := $(TARGET_NAME)_libretro.dll