On Sun, Apr 03, 2022 at 02:01:47AM +0200, Christian Weisgerber wrote:
> The diff below should enable aarch64 hardware crypto support in
> security/gnutls.
>
> The regression test results are the same before and after on my
> OverDrive 1000 (cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16).
> (3 failures, 2 of which are due to unportable diff(1) options...)
>
> ok?
OK.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/gnutls/Makefile,v
> retrieving revision 1.173
> diff -u -p -r1.173 Makefile
> --- Makefile 18 Mar 2022 23:22:23 -0000 1.173
> +++ Makefile 2 Apr 2022 23:56:35 -0000
> @@ -2,6 +2,7 @@ COMMENT= GNU Transport Layer Security l
>
> V= 3.7.4
> DISTNAME= gnutls-${V}
> +REVISION= 0
> EXTRACT_SUFX= .tar.xz
>
> CATEGORIES= security
> Index: patches/patch-lib_accelerated_aarch64_aarch64-common_c
> ===================================================================
> RCS file: patches/patch-lib_accelerated_aarch64_aarch64-common_c
> diff -N patches/patch-lib_accelerated_aarch64_aarch64-common_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-lib_accelerated_aarch64_aarch64-common_c 2 Apr 2022 23:56:35 -0000
> @@ -0,0 +1,42 @@
> +Index: lib/accelerated/aarch64/aarch64-common.c
> +
> +Enable aarch64 hardware crypto support.
> +
> +--- lib/accelerated/aarch64/aarch64-common.c.orig
> ++++ lib/accelerated/aarch64/aarch64-common.c
> +@@ -41,6 +41,10 @@
> + # ifdef AT_HWCAP
> + # define USE_AUXVAL
> + # endif
> ++#elif defined(__OpenBSD__)
> ++# include <sys/sysctl.h>
> ++# include <machine/cpu.h>
> ++# include <machine/armreg.h>
> +
No comments:
Post a Comment