diff options
author | neonloop | 2021-11-28 17:58:58 +0000 |
---|---|---|
committer | neonloop | 2021-11-28 17:58:58 +0000 |
commit | 08cd83e4b09e18b1107d5f216c97eb9beb09e40e (patch) | |
tree | 2058a611b3801554a7a7626d303a4a5a18fdd31e /patches | |
parent | c0c7ccbc14a81fc2bc0c3a14c403e0ab54087290 (diff) | |
download | picoarch-08cd83e4b09e18b1107d5f216c97eb9beb09e40e.tar.gz picoarch-08cd83e4b09e18b1107d5f216c97eb9beb09e40e.tar.bz2 picoarch-08cd83e4b09e18b1107d5f216c97eb9beb09e40e.zip |
Adds blueMSX core
Diffstat (limited to 'patches')
-rw-r--r-- | patches/bluemsx/1000-trimui-build.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/patches/bluemsx/1000-trimui-build.patch b/patches/bluemsx/1000-trimui-build.patch new file mode 100644 index 0000000..d4026df --- /dev/null +++ b/patches/bluemsx/1000-trimui-build.patch @@ -0,0 +1,49 @@ +diff --git a/Makefile.libretro b/Makefile.libretro +index 0e8b073..040e734 100644 +--- a/Makefile.libretro ++++ b/Makefile.libretro +@@ -428,6 +428,20 @@ else ifneq (,$(findstring armv,$(platform))) + endif + PLATFORM_DEFINES += -DARM + ++# 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 ++ LDFLAGS += -fno-PIC -flto ++ CFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto ++ OPTIMIZE := -Ofast -DNDEBUG ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ + # emscripten + else ifeq ($(platform), emscripten) + TARGET := $(TARGET_NAME)_libretro_$(platform).bc +@@ -678,6 +692,9 @@ endif + ifeq ($(DEBUG), 1) + CFLAGS += -O0 -g + CXXFLAGS += -O0 -g ++else ifneq (,$(OPTIMIZE)) ++ CFLAGS += $(OPTIMIZE) ++ CXXFLAGS += $(OPTIMIZE) -fno-exceptions -fno-rtti -DHAVE_STDINT_H -DNDEBUG + else + CFLAGS += -O2 + CXXFLAGS += -O2 -fno-exceptions -fno-rtti -DHAVE_STDINT_H -DNDEBUG +@@ -698,6 +715,13 @@ ifeq ($(LOG_PERFORMANCE), 1) + CXXFLAGS += -DLOG_PERFORMANCE + endif + ++ifeq ($(PROFILE), GENERATE) ++ CFLAGS += -fprofile-generate=./profile/fceumm ++ LDFLAGS += -lgcov ++else ifeq ($(PROFILE), APPLY) ++ CFLAGS += -fprofile-use -fprofile-dir=../profile/fceumm -fbranch-probabilities ++endif ++ + include Makefile.common + + DEFINES := $(PLATFORM_DEFINES) $(COREDEFINES) |