add retrofw target (#77)

Co-authored-by: Poligraf <>
This commit is contained in:
Poligraf
2021-08-03 21:50:18 +12:00
committed by GitHub
parent b59fb7e925
commit bcbbf63c04
2 changed files with 22 additions and 0 deletions
+11
View File
@@ -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
+11
View File
@@ -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