summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutechre2021-03-26 17:32:51 +0100
committerGitHub2021-03-26 17:32:51 +0100
commit53cc4a2475ebc8cc510dc97fe8db95939230cee9 (patch)
tree80325433bceb9016fe38dce6c9d67fe0639ea0f9
parent6f2d0bbee840b9fb1e48958d3fdf140a650d512c (diff)
parent3db35eab70be425c679169fbda3a08bedc023107 (diff)
downloadpicogpsp-53cc4a2475ebc8cc510dc97fe8db95939230cee9.tar.gz
picogpsp-53cc4a2475ebc8cc510dc97fe8db95939230cee9.tar.bz2
picogpsp-53cc4a2475ebc8cc510dc97fe8db95939230cee9.zip
Merge pull request #119 from jdgleaver/dingux-beta-fix
Fix OpenDingux Beta build
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--Makefile16
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdbedc4..e3550f2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -185,3 +185,5 @@ libretro-build-dingux-odbeta-mips32:
extends:
- .libretro-dingux-odbeta-mips32-make-default
- .core-defs
+ variables:
+ platform: gcw0-odbeta
diff --git a/Makefile b/Makefile
index eddfe36..a5f2649 100644
--- a/Makefile
+++ b/Makefile
@@ -379,6 +379,22 @@ else ifeq ($(platform), gcw0)
HAVE_DYNAREC := 1
CPU_ARCH := mips
+# GCW0 (OpenDingux Beta)
+else ifeq ($(platform), gcw0-odbeta)
+ TARGET := $(TARGET_NAME)_libretro.so
+ CC = /opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc
+ CXX = /opt/gcw0-toolchain/usr/bin/mipsel-linux-g++
+ AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar
+ SHARED := -shared -nostdlib -Wl,--version-script=link.T
+ fpic := -fPIC -DPIC
+ CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ # The ASM code and/or MIPS dynarec of GPSP does not respect
+ # MIPS calling conventions, so we must use '-fno-caller-saves'
+ # for the OpenDingux Beta build
+ CFLAGS += -fno-caller-saves
+ HAVE_DYNAREC := 1
+ CPU_ARCH := mips
+
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll