From 3c16671e39a8a153bbd6f9dc94bd21c84b9a199f Mon Sep 17 00:00:00 2001 From: saulfabreg Wii VC Project Date: Fri, 18 Aug 2023 15:51:12 -0500 Subject: [PATCH 1/3] Fix GameCube builds of VBA-M Libretro too GameCube is a big-endian system too, so let's fix it too and include it on the nightly buildbot for GCN. --- .gitlab-ci.yml | 10 ++++++++++ src/libretro/Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8370ccd2..9445354a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,6 +57,10 @@ include: - project: 'libretro-infrastructure/ci-templates' file: '/vita-static.yml' + # Nintendo GameCube + - project: 'libretro-infrastructure/ci-templates' + file: '/ngc-static.yml' + # Nintendo Wii - project: 'libretro-infrastructure/ci-templates' file: '/wii-static.yml' @@ -172,6 +176,12 @@ libretro-build-vita: - .libretro-vita-static-retroarch-master - .core-defs +# Nintendo GameCube +libretro-build-ngc: + extends: + - .libretro-ngc-static-retroarch-master + - .core-defs + # Nintendo Wii libretro-build-wii: extends: diff --git a/src/libretro/Makefile b/src/libretro/Makefile index 9dc70b52..03a8db20 100644 --- a/src/libretro/Makefile +++ b/src/libretro/Makefile @@ -286,7 +286,7 @@ else ifeq ($(platform), ngc) CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) - ENDIANNESS_DEFINES += -DMSB_FIRST + ENDIANNESS_DEFINES += -DMSB_FIRST -DWORDS_BIGENDIAN=1 PLATFORM_DEFINES += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int STATIC_LINKING=1 From 02f3bd6765969914b5cc617167dcc922aa591f37 Mon Sep 17 00:00:00 2001 From: Ploggy Date: Tue, 18 Jun 2024 13:43:25 +0100 Subject: [PATCH 2/3] Update WiiU Makefile --- src/libretro/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libretro/Makefile b/src/libretro/Makefile index 9dc70b52..4ef12f24 100644 --- a/src/libretro/Makefile +++ b/src/libretro/Makefile @@ -312,7 +312,7 @@ else ifeq ($(platform), wiiu) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) ENDIANNESS_DEFINES += -DMSB_FIRST -DWORDS_BIGENDIAN=1 PLATFORM_DEFINES += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__ppc__ - PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int + PLATFORM_DEFINES += -ffunction-sections -fdata-sections -D__wiiu__ -D__wut__ STATIC_LINKING=1 TILED_RENDERING=1 From 1c7db7719216d42d4cf23d00cd6400451ec54880 Mon Sep 17 00:00:00 2001 From: Ploggy Date: Tue, 18 Jun 2024 13:46:09 +0100 Subject: [PATCH 3/3] Update WiiU Makefile More --- src/libretro/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libretro/Makefile b/src/libretro/Makefile index 4ef12f24..c9d1855c 100644 --- a/src/libretro/Makefile +++ b/src/libretro/Makefile @@ -311,7 +311,7 @@ else ifeq ($(platform), wiiu) CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) ENDIANNESS_DEFINES += -DMSB_FIRST -DWORDS_BIGENDIAN=1 - PLATFORM_DEFINES += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__ppc__ + PLATFORM_DEFINES += -DGEKKO -DWIIU -DHW_RVL -mcpu=750 -meabi -mhard-float -D__ppc__ PLATFORM_DEFINES += -ffunction-sections -fdata-sections -D__wiiu__ -D__wut__ STATIC_LINKING=1 TILED_RENDERING=1