Added Armv6l as new target platform
authorHauke Wintjen <hwintjen@rimpl-consulting.de>
Wed, 30 Jan 2013 20:38:18 +0000 (21:38 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Sat, 5 May 2018 15:40:24 +0000 (16:40 +0100)
Gbp-Pq: Name 0006-rpi-Added-Armv6l-as-new-target-platform-and-created-missing-OniPlatformLinux-Arm.h-header.patch

ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
ThirdParty/PSCommon/BuildSystem/Platform.Armv6l [new file with mode: 0644]

index dd88b04c7c6028f6253c06889e2321ead682f5da..de4a17def09a3eaf38d8eeb11b86a8a863aabe2c 100644 (file)
@@ -16,6 +16,8 @@ else ifneq (,$(findstring i686,$(MACHINE)))
        HOST_PLATFORM = x86
 else ifneq (,$(findstring i386,$(MACHINE)))
        HOST_PLATFORM = x86
+else ifneq (,$(findstring armv6l,$(MACHINE)))
+       HOST_PLATFORM = Armv6l
 else ifneq (,$(findstring arm,$(MACHINE)))
        HOST_PLATFORM = Arm
 else
diff --git a/ThirdParty/PSCommon/BuildSystem/Platform.Armv6l b/ThirdParty/PSCommon/BuildSystem/Platform.Armv6l
new file mode 100644 (file)
index 0000000..e84e02d
--- /dev/null
@@ -0,0 +1,16 @@
+# Platform defs for Raspberry PI Hard floats
+export GLUT_SUPPORTED=1
+
+ifeq "$(CFG)" "Release"
+
+    # Hardware specifying flags
+    # hardfp is now default, so no extra flags needed
+    # CFLAGS += -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard
+
+    # Optimization level, minus currently buggy optimizing methods (which break bit-exact)
+    CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing
+
+    # More optimization flags
+    CFLAGS += -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant
+
+endif