aboutsummaryrefslogtreecommitdiff
path: root/patches/dosbox-pure/1000-funkey-s-support.patch
blob: 59f788835dab502ee419d97dd0fd0ce78633f713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/Makefile b/Makefile
index f0acd51..7b42e9b 100644
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,16 @@ else ifeq ($(platform),ctr)
   COMMONFLAGS += -fomit-frame-pointer -fstrict-aliasing -ffast-math -fpermissive
   COMMONFLAGS += -I$(DEVKITPRO)/libctru/include
   STATIC_LINKING = 1
+else ifeq ($(platform),classic_armv7_a7)
+  OUTNAME := dosbox_pure_libretro.so
+  CXX     := $(CROSS_COMPILE)g++
+  LDFLAGS := -Wl,--gc-sections -fno-ident
+  COMMONFLAGS += -pthread -DCYCLE_LIMIT=8200
+  CPUFLAGS += -marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -march=armv7ve
+  STRIPCMD := $(CROSS_COMPILE)strip --strip-all
+  ifeq ($(DEBUG), 1)
+    BUILD = DEBUG
+  endif
 else ifeq ($(platform),ngc)
   OUTNAME := dosbox_pure_libretro_ngc.a
   CXX     := $(DEVKITPPC)/bin/powerpc-eabi-g++
@@ -200,6 +210,8 @@ else
   BUILDDIR := release
   ifeq ($(platform),vita)
     CFLAGS   := -DNDEBUG -O3 -fno-ident -fno-partial-inlining
+  else ifeq ($(platform),classic_armv7_a7)
+    CFLAGS   := -DNDEBUG -Ofast -fno-ident
   else
     CFLAGS   := -DNDEBUG -O2 -fno-ident
   endif