From: Hauke Wintjen Date: Wed, 30 Jan 2013 20:38:18 +0000 (+0100) Subject: Added Armv6l as new target platform X-Git-Tag: archive/raspbian/2.2.0.33+dfsg-9+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=210125a6370418435be63ab7e9f16862e8529069;p=openni2.git 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 --- 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