diff options
Diffstat (limited to 'meta/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch')
-rw-r--r-- | meta/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch b/meta/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch new file mode 100644 index 0000000000..fe29d19882 --- /dev/null +++ b/meta/recipes-support/nss/nss/0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 5595e9651aca39af945931c73eb524a0f8bd130d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 18 Dec 2019 12:29:50 +0100 | ||
4 | Subject: [PATCH] freebl: add a configure option to disable ARM HW crypto | ||
5 | |||
6 | Not all current hardware supports it, particularly anything | ||
7 | prior to armv8 does not. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | nss/lib/freebl/Makefile | 3 +++ | ||
13 | 1 file changed, 3 insertions(+) | ||
14 | |||
15 | diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile | ||
16 | index 06506f0..a8b015d 100644 | ||
17 | --- a/nss/lib/freebl/Makefile | ||
18 | +++ b/nss/lib/freebl/Makefile | ||
19 | @@ -125,6 +125,8 @@ else | ||
20 | DEFINES += -DNSS_X86 | ||
21 | endif | ||
22 | endif | ||
23 | + | ||
24 | +ifdef NSS_USE_ARM_HW_CRYPTO | ||
25 | ifeq ($(CPU_ARCH),aarch64) | ||
26 | DEFINES += -DUSE_HW_AES | ||
27 | EXTRA_SRCS += aes-armv8.c gcm-aarch64.c | ||
28 | @@ -145,6 +147,7 @@ ifeq ($(CPU_ARCH),arm) | ||
29 | endif | ||
30 | endif | ||
31 | endif | ||
32 | +endif | ||
33 | |||
34 | ifeq ($(OS_TARGET),OSF1) | ||
35 | DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_NO_MP_WORD | ||