aboutsummaryrefslogtreecommitdiff
path: root/patches/mame2003_plus/0001-trimui-build.patch
diff options
context:
space:
mode:
authorneonloop2021-08-10 17:31:51 +0000
committerneonloop2021-08-10 17:31:51 +0000
commit5d165e6ef6b5cd79c1b8b20fbdf716d73fbebd1b (patch)
tree8eeb6e60e41fd8fb48197964fe4041ea6dd55a55 /patches/mame2003_plus/0001-trimui-build.patch
parent9131d8b6f46e62fa3cf286b6306797576630872b (diff)
downloadpicoarch-5d165e6ef6b5cd79c1b8b20fbdf716d73fbebd1b.tar.gz
picoarch-5d165e6ef6b5cd79c1b8b20fbdf716d73fbebd1b.tar.bz2
picoarch-5d165e6ef6b5cd79c1b8b20fbdf716d73fbebd1b.zip
Renames core patch files
First numbers for upstreamable patches. Later numbers for picoarch-specific patches.
Diffstat (limited to 'patches/mame2003_plus/0001-trimui-build.patch')
-rw-r--r--patches/mame2003_plus/0001-trimui-build.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/patches/mame2003_plus/0001-trimui-build.patch b/patches/mame2003_plus/0001-trimui-build.patch
deleted file mode 100644
index 8b2bbac..0000000
--- a/patches/mame2003_plus/0001-trimui-build.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 14082f8..364a327 100644
---- a/Makefile
-+++ b/Makefile
-@@ -489,6 +489,23 @@ else ifeq ($(platform), gcw0)
- fpic := -fPIC -nostdlib
- CFLAGS += -lm -march=mips32 -mtune=mips32r2 -mhard-float
-
-+# Trimui
-+else ifeq ($(platform), trimui)
-+ TARGET = $(TARGET_NAME)_libretro.so
-+ CC = $(CROSS_COMPILE)gcc
-+ CXX = $(CROSS_COMPILE)g++
-+ AR = $(CROSS_COMPILE)ar
-+ LDFLAGS += -shared -Wl,--version-script=link.T -Wl,-no-undefined -fno-PIC -flto
-+ CFLAGS += -std=c99 -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto
-+ CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
-+ LIBS := -lc -lgcc -lm
-+ CPU_ARCH := arm
-+ ARM = 1
-+ OPTIMIZE := -Ofast -DNDEBUG
-+ ifeq (,$(DEBUG))
-+ LDFLAGS += -s
-+ endif
-+
- # RetroFW
- else ifeq ($(platform), retrofw)
- TARGET := $(TARGET_NAME)_libretro.so
-@@ -795,10 +812,19 @@ CFLAGS += -DRETRO_PROFILE=$(RETRO_PROFILE)
- # Disable optimization when debugging #####################
- ifeq ($(DEBUG), 1)
- CFLAGS += -O0 -g3
-+else ifneq (,$(OPTIMIZE))
-+ CFLAGS += $(OPTIMIZE)
- else
- CFLAGS += -O2 -DNDEBUG
- endif
-
-+ifeq ($(PROFILE), GENERATE)
-+ CFLAGS += -fprofile-generate=./profile/mame2003_plus
-+ LDFLAGS += -lgcov
-+else ifeq ($(PROFILE), APPLY)
-+ CFLAGS += -fprofile-use -fprofile-dir=../profile/mame2003_plus -fbranch-probabilities
-+endif
-+
- ifneq (,$(findstring msvc,$(platform)))
- ifeq ($(DEBUG),1)
- CFLAGS += -MTd