diff options
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/nss/nss/0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-support/nss/nss_3.121.bb (renamed from meta-oe/recipes-support/nss/nss_3.119.bb) | 2 |
2 files changed, 5 insertions, 26 deletions
diff --git a/meta-oe/recipes-support/nss/nss/0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch b/meta-oe/recipes-support/nss/nss/0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch index 63f822be25..2a14dffbea 100644 --- a/meta-oe/recipes-support/nss/nss/0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch +++ b/meta-oe/recipes-support/nss/nss/0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch | |||
| @@ -11,14 +11,13 @@ Upstream-Status: Pending | |||
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 12 | --- | 12 | --- |
| 13 | nss/lib/freebl/Makefile | 3 +++ | 13 | nss/lib/freebl/Makefile | 3 +++ |
| 14 | nss/lib/freebl/gcm.c | 2 ++ | 14 | 1 file changed, 3 insertions(+) |
| 15 | 2 files changed, 5 insertions(+) | ||
| 16 | 15 | ||
| 17 | diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile | 16 | diff --git a/nss/lib/freebl/Makefile b/nss/lib/freebl/Makefile |
| 18 | index 0ebfc92..3ee7623 100644 | 17 | index 0ebfc92..3ee7623 100644 |
| 19 | --- a/nss/lib/freebl/Makefile | 18 | --- a/nss/lib/freebl/Makefile |
| 20 | +++ b/nss/lib/freebl/Makefile | 19 | +++ b/nss/lib/freebl/Makefile |
| 21 | @@ -142,6 +142,8 @@ endif | 20 | @@ -136,6 +136,8 @@ endif |
| 22 | endif | 21 | endif |
| 23 | endif | 22 | endif |
| 24 | endif | 23 | endif |
| @@ -26,8 +25,8 @@ index 0ebfc92..3ee7623 100644 | |||
| 26 | + DEFINES += -DNSS_USE_ARM_HW_CRYPTO | 25 | + DEFINES += -DNSS_USE_ARM_HW_CRYPTO |
| 27 | ifeq ($(CPU_ARCH),aarch64) | 26 | ifeq ($(CPU_ARCH),aarch64) |
| 28 | ifdef CC_IS_CLANG | 27 | ifdef CC_IS_CLANG |
| 29 | DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 | 28 | DEFINES += -DUSE_HW_AES -DUSE_HW_SHA1 -DUSE_HW_SHA2 -DHAVE_PLATFORM_GHASH |
| 30 | @@ -183,6 +185,7 @@ endif | 29 | @@ -178,6 +180,7 @@ endif |
| 31 | endif | 30 | endif |
| 32 | endif | 31 | endif |
| 33 | endif | 32 | endif |
| @@ -35,23 +34,3 @@ index 0ebfc92..3ee7623 100644 | |||
| 35 | 34 | ||
| 36 | ifeq (,$(filter-out WINNT,$(OS_TARGET))) | 35 | ifeq (,$(filter-out WINNT,$(OS_TARGET))) |
| 37 | ifndef USE_64 | 36 | ifndef USE_64 |
| 38 | diff --git a/nss/lib/freebl/gcm.c b/nss/lib/freebl/gcm.c | ||
| 39 | index a2f63a6..743158e 100644 | ||
| 40 | --- a/nss/lib/freebl/gcm.c | ||
| 41 | +++ b/nss/lib/freebl/gcm.c | ||
| 42 | @@ -18,6 +18,7 @@ | ||
| 43 | |||
| 44 | #include <limits.h> | ||
| 45 | |||
| 46 | +#ifdef NSS_USE_ARM_HW_CRYPTO | ||
| 47 | /* old gcc doesn't support some poly64x2_t intrinsic */ | ||
| 48 | #if defined(__aarch64__) && defined(IS_LITTLE_ENDIAN) && \ | ||
| 49 | (defined(__clang__) || defined(__GNUC__) && __GNUC__ > 6) | ||
| 50 | @@ -27,6 +28,7 @@ | ||
| 51 | /* We don't test on big endian platform, so disable this on big endian. */ | ||
| 52 | #define USE_ARM_GCM | ||
| 53 | #endif | ||
| 54 | +#endif | ||
| 55 | |||
| 56 | #if defined(__ARM_NEON) || defined(__ARM_NEON__) | ||
| 57 | #include <arm_neon.h> | ||
diff --git a/meta-oe/recipes-support/nss/nss_3.119.bb b/meta-oe/recipes-support/nss/nss_3.121.bb index a0345eb8aa..99f54c948a 100644 --- a/meta-oe/recipes-support/nss/nss_3.119.bb +++ b/meta-oe/recipes-support/nss/nss_3.121.bb | |||
| @@ -33,7 +33,7 @@ SRC_URI = "https://ftp.mozilla.org/pub/security/nss/releases/${VERSION_DIR}/src/ | |||
| 33 | file://0006-Fix-nss-multilib-build-on-openSUSE-11.x-32bit.patch \ | 33 | file://0006-Fix-nss-multilib-build-on-openSUSE-11.x-32bit.patch \ |
| 34 | file://0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ | 34 | file://0007-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \ |
| 35 | " | 35 | " |
| 36 | SRC_URI[sha256sum] = "e8412db6c9d6f531e8adfe8a122ec33a8fae920681ff47231a1349bdd399f0e9" | 36 | SRC_URI[sha256sum] = "cb3a8f8781bea78b7b8edd3afb7a2cb58e4881bb0160d189a39b98216ba7632e" |
| 37 | 37 | ||
| 38 | UPSTREAM_CHECK_URI = "https://ftp.mozilla.org/pub/security/nss/releases/" | 38 | UPSTREAM_CHECK_URI = "https://ftp.mozilla.org/pub/security/nss/releases/" |
| 39 | UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>\d+(\_\d+)+)" | 39 | UPSTREAM_CHECK_REGEX = "NSS_(?P<pver>\d+(\_\d+)+)" |
