summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwinaphex2016-03-02 02:18:40 +0100
committerTwinaphex2016-03-02 02:18:40 +0100
commit5c11ca16d62c72e6048e187fd66702bbf90196ee (patch)
tree7f35fd4f4d494ae4f035167acaa14ca00f85235c
parent4b00c74784ad607fb62220ef27c79b12bc6d7678 (diff)
parent31f9969be1fc693c8099dc95e790fa38e99381c1 (diff)
downloadpicogpsp-5c11ca16d62c72e6048e187fd66702bbf90196ee.tar.gz
picogpsp-5c11ca16d62c72e6048e187fd66702bbf90196ee.tar.bz2
picogpsp-5c11ca16d62c72e6048e187fd66702bbf90196ee.zip
Merge pull request #20 from vanfanel/master
Add rpi 2 and rpi 1 platform definitions
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 91f4a20..06509fd 100644
--- a/Makefile
+++ b/Makefile
@@ -215,6 +215,32 @@ else ifeq ($(platform), ctr)
HAVE_DYNAREC = 1
STATIC_LINKING = 1
+# Raspberry Pi 2
+else ifeq ($(platform), rpi2)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
+ CFLAGS += -DARM -DARM_ARCH
+ CFLAGS += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations
+ CFLAGS += -fomit-frame-pointer -ffast-math
+ CFLAGS += -DARM_MEMORY_DYNAREC
+ CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
+ CPU_ARCH := arm
+ HAVE_DYNAREC = 1
+
+# Raspberry Pi 1
+else ifeq ($(platform), rpi1)
+ TARGET := $(TARGET_NAME)_libretro.so
+ fpic := -fPIC
+ SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
+ CFLAGS += -DARM11 -DARM_ARCH
+ CFLAGS += -marm -mfpu=vfp -mfloat-abi=hard -march=armv6j -funsafe-math-optimizations
+ CFLAGS += -fomit-frame-pointer -ffast-math
+ CFLAGS += -DARM_MEMORY_DYNAREC
+ CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
+ CPU_ARCH := arm
+ HAVE_DYNAREC = 1
+
# Xbox 360
else ifeq ($(platform), xenon)
TARGET := $(TARGET_NAME)_libretro_xenon360.a