From bde861c9e9fd839e6682a423550c68fd95873bed Mon Sep 17 00:00:00 2001 From: Hauke Wintjen Date: Wed, 30 Jan 2013 21:38:18 +0100 Subject: [PATCH] Added Armv6l as new target platform Gbp-Pq: Name 0006-rpi-Added-Armv6l-as-new-target-platform-and-created-missing-OniPlatformLinux-Arm.h-header.patch --- ThirdParty/PSCommon/BuildSystem/CommonDefs.mak | 2 ++ ThirdParty/PSCommon/BuildSystem/Platform.Armv6l | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ThirdParty/PSCommon/BuildSystem/Platform.Armv6l diff --git a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak index dd88b04..de4a17d 100644 --- a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak +++ b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak @@ -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 index 0000000..e84e02d --- /dev/null +++ b/ThirdParty/PSCommon/BuildSystem/Platform.Armv6l @@ -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 -- 2.30.2