summaryrefslogtreecommitdiff
path: root/openni2-aarch64-support.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-22 03:29:55 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-22 03:29:55 +0000
commit1f25708c4ff011c19722714009dd92f84c733323 (patch)
tree145de304ce94df3055f158c4a990c7d0a071f095 /openni2-aarch64-support.patch
parentff2a82e40e6435ddc458a0df70f81fd2b7ac41e9 (diff)
automatic import of ros-humble-openni2-camera
Diffstat (limited to 'openni2-aarch64-support.patch')
-rw-r--r--openni2-aarch64-support.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/openni2-aarch64-support.patch b/openni2-aarch64-support.patch
new file mode 100644
index 0000000..8718ce9
--- /dev/null
+++ b/openni2-aarch64-support.patch
@@ -0,0 +1,44 @@
+diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/BuildSystem/CommonDefs.mak ../OpenNI2-patched/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
+--- a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak 2026-10-22 03:13:34.628894060 +0000
++++ b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak 2026-10-22 03:24:42.065885094 +0000
+@@ -18,6 +18,8 @@
+ HOST_PLATFORM = x86
+ else ifneq (,$(findstring arm,$(MACHINE)))
+ HOST_PLATFORM = Arm
++else ifneq (,$(findstring aarch64,$(MACHINE)))
++ HOST_PLATFORM = Aarch64
+ else
+ DUMMY:=$(error Can't determine host platform)
+ endif
+diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/BuildSystem/Platform.Aarch64 ../OpenNI2-patched/ThirdParty/PSCommon/BuildSystem/Platform.Aarch64
+--- a/ThirdParty/PSCommon/BuildSystem/Platform.Aarch64 1970-01-01 00:00:00.000000000 +0000
++++ b/ThirdParty/PSCommon/BuildSystem/Platform.Aarch64 2026-10-22 03:24:42.068885103 +0000
+@@ -0,0 +1,4 @@
++ifeq "$(CFG)" "Release"
++ CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing
++ CFLAGS += -ftree-vectorize -ffast-math -funsafe-math-optimizations
++endif
+diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/XnLib/Include/Linux-Aarch64/XnPlatformLinux-Aarch64.h ../OpenNI2-patched/ThirdParty/PSCommon/XnLib/Include/Linux-Aarch64/XnPlatformLinux-Aarch64.h
+--- a/ThirdParty/PSCommon/XnLib/Include/Linux-Aarch64/XnPlatformLinux-Aarch64.h 1970-01-01 00:00:00.000000000 +0000
++++ b/ThirdParty/PSCommon/XnLib/Include/Linux-Aarch64/XnPlatformLinux-Aarch64.h 2026-10-22 03:24:42.069885106 +0000
+@@ -0,0 +1,8 @@
++#ifndef _XN_PLATFORM_LINUX_AARCH64_H_
++#define _XN_PLATFORM_LINUX_AARCH64_H_
++#include "../Linux-x86/XnPlatformLinux-x86.h"
++#undef XN_PLATFORM
++#undef XN_PLATFORM_STRING
++#define XN_PLATFORM XN_PLATFORM_LINUX_ARM
++#define XN_PLATFORM_STRING "Linux-Aarch64"
++#endif
+diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/XnLib/Include/XnPlatform.h ../OpenNI2-patched/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
+--- a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h 2026-10-22 03:13:34.655894141 +0000
++++ b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h 2026-10-22 03:24:42.077885129 +0000
+@@ -51,6 +51,8 @@
+ #include "Android-Arm/XnPlatformAndroid-Arm.h"
+ #elif (__linux__ && (i386 || __x86_64__))
+ #include "Linux-x86/XnPlatformLinux-x86.h"
++#elif (__linux__ && __aarch64__)
++#include "Linux-Aarch64/XnPlatformLinux-Aarch64.h"
+ #elif (__linux__ && __arm__)
+ #include "Linux-Arm/XnPlatformLinux-Arm.h"
+ #elif _ARC