From bcbbf63c049f5381271da4221009b461abe7a596 Mon Sep 17 00:00:00 2001 From: Poligraf Date: Tue, 3 Aug 2021 21:50:18 +1200 Subject: [PATCH] add retrofw target (#77) Co-authored-by: Poligraf <> --- .gitlab-ci.yml | 11 +++++++++++ Makefile | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e577e0..9fe3e6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,6 +86,10 @@ include: # tvOS (AppleTV) - project: 'libretro-infrastructure/ci-templates' file: '/tvos-arm64.yml' + + # OpenDingux + - project: 'libretro-infrastructure/ci-templates' + file: '/dingux-mips32.yml' #################################### MISC ################################## @@ -223,3 +227,10 @@ libretro-build-libnx-aarch64: extends: - .libretro-libnx-static-retroarch-master - .core-defs + +# RetroFW +libretro-build-retrofw-mips32: + extends: + - .libretro-retrofw-mips32-make-default + - .core-defs + diff --git a/Makefile b/Makefile index 1d701bb..8634989 100644 --- a/Makefile +++ b/Makefile @@ -346,6 +346,17 @@ else ifeq ($(platform), classic_armv8_a35) LDFLAGS += -static-libgcc -static-libstdc++ ####################################### +#RETROFW +else ifneq (,$(findstring retrofw,$(platform))) + TARGET := $(TARGET_NAME)_libretro.so + CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc + CXX = /opt/retrofw-toolchain/usr/bin/mipsel-linux-g++ + AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar + fpic := -fPIC + SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined + CFLAGS += -fomit-frame-pointer -march=mips32 -mtune=mips32 -mhard-float + PLATFORM_DEFINES += -DRETROFW + # emscripten else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_emscripten.bc