From 7c003401f4f1e5463f20af1dc63b25ad8a15e3c1 Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 20 Oct 2021 14:46:17 +0000 Subject: Adds QuickNES core --- patches/quicknes/1000-trimui-build.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 patches/quicknes/1000-trimui-build.patch (limited to 'patches/quicknes') diff --git a/patches/quicknes/1000-trimui-build.patch b/patches/quicknes/1000-trimui-build.patch new file mode 100644 index 0000000..8cc40f9 --- /dev/null +++ b/patches/quicknes/1000-trimui-build.patch @@ -0,0 +1,25 @@ +diff --git a/Makefile b/Makefile +index 2405fd3..a075991 100644 +--- a/Makefile ++++ b/Makefile +@@ -383,6 +383,20 @@ else ifeq ($(platform), miyoo) + PLATFORM_DEFINES += -O3 -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math + CXXFLAGS += -fno-rtti -fno-exceptions + ++# TRIMUI ++else ifeq ($(platform), trimui) ++ TARGET := $(TARGET_NAME)_libretro.so ++ CC = $(CROSS_COMPILE)gcc ++ CXX = $(CROSS_COMPILE)g++ ++ AR = $(CROSS_COMPILE)ar ++ SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined ++ PLATFORM_DEFINES := -DNO_UNALIGNED_ACCESS ++ PLATFORM_DEFINES += -Ofast -fomit-frame-pointer -march=armv5te -mtune=arm926ej-s -ffast-math -fno-PIC -flto ++ CXXFLAGS += -fno-rtti -fno-exceptions ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ + # Windows MSVC 2017 all architectures + else ifneq (,$(findstring windows_msvc2017,$(platform))) + -- cgit v1.2.3