commit 60d9a74194ee6f133616653863e8d6913a0eb3c5
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Sep 20 20:01:27 2022 -0600
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Sep 20 20:01:27 2022 -0600
yolo gcw0 libretro build
---
.github/workflows/build.yml | 22 +++++++++++++++++++++-
.github/workflows/buildGcw0-libretro.sh | 6 ++++++
platform/libretro/Makefile | 10 ++++++++++
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7c803fd..89d2684 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -55,4 +55,24 @@ jobs:
with:
name: MiyooMini-libretro
path: |
- platform/libretro/fake08_libretro_miyoomini.so
\ No newline at end of file
+ platform/libretro/fake08_libretro_miyoomini.so
+
+ third:
+ name: GCW0-libretro
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules : recursive
+
+ - name: Build
+ run: |
+ docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/gcw0 /bin/sh -ex /build_dir/.github/workflows/buildGcw0-libretro.sh
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: GCW0-libretro
+ path: |
+ platform/libretro/fake08_libretro_gcw0.so
\ No newline at end of file
diff --git a/.github/workflows/buildGcw0-libretro.sh b/.github/workflows/buildGcw0-libretro.sh
new file mode 100644
index 0000000..aa3bd5e
--- /dev/null
+++ b/.github/workflows/buildGcw0-libretro.sh
@@ -0,0 +1,6 @@
+
+cd /build_dir
+
+#Build miyoomini core
+cd platform/libretro
+make platform=gcw0
diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile
index cb8bcdb..420f9b7 100644
--- a/platform/libretro/Makefile
+++ b/platform/libretro/Makefile
@@ -123,6 +123,16 @@ else ifeq ($(platform), miyoomini)
CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
fpic := -fPIC
SHARED := -shared -Wl,--version-script=link.T
+
+else ifeq ($(platform), gcw0)
+ TARGET := $(TARGET_NAME)_libretro_gcw0.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
+ CXXFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
+ CXXFLAGS += -fno-common -ftree-vectorize -funswitch-loops
+ fpic := -fPIC
+ SHARED := -shared -Wl,-version-script=link.T
else
CC = gcc
TARGET := $(TARGET_NAME)_libretro.dll