enable neon and fp16 cpu features for arm64, fixes some child ports
OK rsadowski@ (MAINTAINER)
This commit is contained in:
parent
9237601765
commit
532310a419
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.76 2021/10/13 19:11:02 rsadowski Exp $
|
||||
# $OpenBSD: Makefile,v 1.77 2021/11/01 08:12:09 phessler Exp $
|
||||
|
||||
ONLY_FOR_ARCHS-java = aarch64 amd64 i386
|
||||
|
||||
@ -10,6 +10,7 @@ V = 4.5.4
|
||||
GH_ACCOUNT = opencv
|
||||
GH_PROJECT = opencv
|
||||
GH_TAGNAME = ${V}
|
||||
REVISION = 0
|
||||
|
||||
PKGNAME-main = opencv-${V}
|
||||
PKGNAME-java = opencv-java-${V}
|
||||
|
@ -1,5 +1,5 @@
|
||||
$OpenBSD: patch-modules_core_src_system_cpp,v 1.10 2021/10/13 19:11:02 rsadowski Exp $
|
||||
Fix build on i386.
|
||||
$OpenBSD: patch-modules_core_src_system_cpp,v 1.11 2021/11/01 08:12:09 phessler Exp $
|
||||
Fix build on i386 and arm64.
|
||||
Index: modules/core/src/system.cpp
|
||||
--- modules/core/src/system.cpp.orig
|
||||
+++ modules/core/src/system.cpp
|
||||
@ -14,3 +14,12 @@ Index: modules/core/src/system.cpp
|
||||
|
||||
#if defined __MACH__ && defined __APPLE__
|
||||
#include <mach/mach.h>
|
||||
@@ -551,7 +553,7 @@ struct HWFeatures
|
||||
}
|
||||
#endif // CV_CPUID_X86
|
||||
|
||||
- #if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
|
||||
+ #if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__ || defined __OpenBSD__
|
||||
#ifdef __aarch64__
|
||||
have[CV_CPU_NEON] = true;
|
||||
have[CV_CPU_FP16] = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user