From c5fac5697bfbe367def1b1957c3efb44a788c125 Mon Sep 17 00:00:00 2001 From: Jon Bell Date: Wed, 27 Dec 2023 15:27:40 -0700 Subject: [PATCH] add rg35xx to libretro build building and running, but stuttering. hopefully just needs diff flags? --- .github/workflows/build.yml | 21 +++++++++++++++++++++ .github/workflows/buildRg35xx-libretro.sh | 5 +++++ .gitignore | 1 + platform/libretro/Makefile | 11 ++++++++++- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/buildRg35xx-libretro.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cbeb99e..f917d3f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -215,6 +215,27 @@ jobs: platform/libretro/libs/libfake08-arm32.so platform/libretro/fake08_libretro.info + rg35xx-libretro: + name: RG35xx-libretro + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules : recursive + + - name: Build + run: | + docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir aveferrum/rg35xx-toolchain /bin/sh -ex /build_dir/.github/workflows/buildRg35xx-libretro.sh + + - uses: actions/upload-artifact@v3 + with: + name: RG35xx-libretro + path: | + platform/libretro/fake08_libretro_rg35xx.so + platform/libretro/fake08_libretro.info + miyoomini-libretro: name: MiyooMini-libretro runs-on: ubuntu-latest diff --git a/.github/workflows/buildRg35xx-libretro.sh b/.github/workflows/buildRg35xx-libretro.sh new file mode 100644 index 00000000..14e0dcb7 --- /dev/null +++ b/.github/workflows/buildRg35xx-libretro.sh @@ -0,0 +1,5 @@ + +cd /build_dir + +cd platform/libretro +make platform=rg35xx diff --git a/.gitignore b/.gitignore index 7aab984b..ce93c77a 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ platform/libretro/fake08_libretro.dylib platform/libretro/libs/ platform/libretro/obj/ .DS_Store +platform/libretro/fake08_libretro_rg35xx.so diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile index be0f1b46..1e6d793c 100644 --- a/platform/libretro/Makefile +++ b/platform/libretro/Makefile @@ -123,7 +123,16 @@ else ifeq ($(platform), miyoomini) CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve -D_NEED_FULL_PATH_ fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T - +else ifeq ($(platform), rg35xx) + TARGET := $(TARGET_NAME)_libretro_rg35xx.so + CC = /opt/miyoo/usr/bin/arm-miyoo-linux-uclibcgnueabi-gcc + CXX = /opt/miyoo/usr/bin/arm-miyoo-linux-uclibcgnueabi-g++ + AR = /opt/miyoo/usr/bin/arm-miyoo-linux-uclibcgnueabi-ar + STRIP = /opt/miyoo/usr/bin/arm-miyoo-linux-uclibcgnueabi-strip + CXXFLAGS += -marm -mtune=cortex-a9 -mfpu=neon-vfpv3 -mfloat-abi=softfp -march=armv7-a + CFLAGS += -marm -mtune=cortex-a9 -mfpu=neon-vfpv3 -mfloat-abi=softfp -march=armv7-a -DLUA_USE_MKSTEMP + 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