Skip to content

Commit

Permalink
add rg35xx to libretro build
Browse files Browse the repository at this point in the history
building and running, but stuttering. hopefully just needs diff flags?
  • Loading branch information
jtothebell committed Dec 27, 2023
1 parent d52e9ba commit c5fac56
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/buildRg35xx-libretro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

cd /build_dir

cd platform/libretro
make platform=rg35xx
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ platform/libretro/fake08_libretro.dylib
platform/libretro/libs/
platform/libretro/obj/
.DS_Store
platform/libretro/fake08_libretro_rg35xx.so
11 changes: 10 additions & 1 deletion platform/libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5fac56

Please sign in to comment.