foxygit / fake-08-xbox360 Log in
commit 9ecfdd67f792ed5163a33c269af17c2511bc7b6f
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Mon Aug 29 20:05:52 2022 -0600
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Mon Aug 29 20:05:52 2022 -0600

    Quick try at MM lr core build
---
 .github/workflows/build.yml                  | 20 ++++++++++++++++++++
 .github/workflows/buildMiyooMini-libretro.sh |  6 ++++++
 platform/libretro/Makefile                   |  8 ++++++++
 3 files changed, 34 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2e73216..3c76f72 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -36,3 +36,23 @@ jobs:
           path: |
             platform/libretro/libs/libfake08-arm64.so
             platform/libretro/libs/libfake08-arm32.so
+
+  second:
+    name: MiyooMini-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/union-miyoomini-toolchain /bin/sh -ex /build_dir/.github/workflows/buildMiyooMini-libretro.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: MiyooMini-libretro
+          path: |
+            platform/libretro/fake08_libretro.so
\ No newline at end of file
diff --git a/.github/workflows/buildMiyooMini-libretro.sh b/.github/workflows/buildMiyooMini-libretro.sh
new file mode 100644
index 0000000..7f6c0ef
--- /dev/null
+++ b/.github/workflows/buildMiyooMini-libretro.sh
@@ -0,0 +1,6 @@
+
+cd /build_dir
+
+#Build miyoomini core
+cd platform/libretro
+make platform=miyoomini
diff --git a/platform/libretro/Makefile b/platform/libretro/Makefile
index 8e9668f..6dfdf32 100644
--- a/platform/libretro/Makefile
+++ b/platform/libretro/Makefile
@@ -114,6 +114,13 @@ else ifeq ($(platform), vita)
    AR = arm-vita-eabi-ar
    CXXFLAGS += -Wl,-q -Wall -O3
 	STATIC_LINKING = 1
+else ifeq ($(platform), miyoomini)
+   TARGET := $(TARGET_NAME)_libretro_miyoomini.so
+   CC = arm-linux-gnueabihf-gcc
+   CXX = arm-linux-gnueabihf-g++
+   STRIP = arm-linux-gnueabihf-strip
+   CXXFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
+	STATIC_LINKING = 1
 else
    CC = gcc
    TARGET := $(TARGET_NAME)_libretro.dll
@@ -160,6 +167,7 @@ echo:
 	@echo echo ...
 #	@echo $(SOURCES_C)
 #	@echo $(SOURCES_CXX)
+	@echo $(platform)
 	@echo $(OBJECTS)

 .PHONY: clean echo