Skip to contentSkip to conversation

wolfssl: upgrade 4.4.0 -> 4.5.0

PATCH New Alexander Vickberg 1 participant 1 message Oct 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wolfssl: upgrade 4.4.0 -> 4.5.0

Add patch from upstream which fixes building on big endian.

---
 ...Words-available-for-big-and-little-e.patch | 32 +++++++++++++++++++
 .../{wolfssl_4.4.0.bb => wolfssl_4.5.0.bb}    |  6 ++--
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/wolfssl/wolfssl/0001-Make-ByteReverseWords-available-for-big-and-little-e.patch
 rename meta-networking/recipes-connectivity/wolfssl/{wolfssl_4.4.0.bb => wolfssl_4.5.0.bb} (77%)
meta-networking/recipes-connectivity/wolfssl/wolfssl/0001-Make-ByteReverseWords-available-for-big-and-little-e.patch new file +32 -0
new file mode 100644
index 000000000..4676769a4
@@ -0,0 +1,32 @@
+From b90acc91d0cd276befe7f08f87ba2dc5ee7122ff Mon Sep 17 00:00:00 2001
+From: Tesfa Mael <[email protected]>
+Date: Wed, 26 Aug 2020 10:13:06 -0700
+Subject: [PATCH] Make ByteReverseWords available for big and little endian
+
+---
+ wolfcrypt/src/misc.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c
+index fe66ee0a1..23bfa1adc 100644
+--- a/wolfcrypt/src/misc.c
++++ b/wolfcrypt/src/misc.c
+@@ -120,7 +120,6 @@ WC_STATIC WC_INLINE word32 ByteReverseWord32(word32 value)
+     return rotlFixed(value, 16U);
+ #endif
+ }
+-#if defined(LITTLE_ENDIAN_ORDER)
+ /* This routine performs a byte swap of words array of a given count. */
+ WC_STATIC WC_INLINE void ByteReverseWords(word32* out, const word32* in,
+                                     word32 byteCount)
+@@ -131,7 +130,6 @@ WC_STATIC WC_INLINE void ByteReverseWords(word32* out, const word32* in,
+         out[i] = ByteReverseWord32(in[i]);
+ 
+ }
+-#endif /* LITTLE_ENDIAN_ORDER */
+ 
+ #if defined(WORD64_AVAILABLE) && !defined(WOLFSSL_NO_WORD64_OPS)
+ 
+-- 
+2.25.1
+
meta-networking/recipes-connectivity/wolfssl/wolfssl_4.5.0.bb renamed from meta-networking/recipes-connectivity/wolfssl/wolfssl_4.4.0.bb +4 -2
similarity index 77%
rename from meta-networking/recipes-connectivity/wolfssl/wolfssl_4.4.0.bb
rename to meta-networking/recipes-connectivity/wolfssl/wolfssl_4.5.0.bb
index db7b0d486..61cf1cc62 100644
@@ -12,8 +12,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 PROVIDES += "cyassl"
 RPROVIDES_${PN} = "cyassl"
 
-SRC_URI = "git://github.com/wolfSSL/wolfssl.git;protocol=https"
-SRCREV = "e116c89a58af750421d82ece13f80516d2bde02e"
+SRC_URI = "git://github.com/wolfSSL/wolfssl.git;protocol=https \
+           file://0001-Make-ByteReverseWords-available-for-big-and-little-e.patch \
+"
+SRCREV = "0fa5af9929ce2ee99e8789996a3048f41a99830e"
 S = "${WORKDIR}/git"
 
 inherit autotools
Signature · 1 line
2.25.1