forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: modules: fix 5.18 vxlan support Revert "wolfssl: bump to 5.4.0 (coolsnowwolf#9795)"
- Loading branch information
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
package/libs/wolfssl/patches/300-AESNI-fix-configure-to-use-minimal-compiler-flags.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From 9ba77300f9f5dea9f53aed00bf6c33d10b7b2fce Mon Sep 17 00:00:00 2001 | ||
From: Sean Parkinson <sean@wolfssl.com> | ||
Date: Thu, 7 Jul 2022 09:30:48 +1000 | ||
Subject: [PATCH] AESNI: fix configure to use minimal compiler flags | ||
|
||
|
||
diff --git a/configure.ac b/configure.ac | ||
index df97ac75c..6abb0c744 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -2142,21 +2142,19 @@ then | ||
if test "$ENABLED_AESNI" = "yes" || test "$ENABLED_INTELASM" = "yes" | ||
then | ||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI" | ||
- if test "$GCC" = "yes" | ||
+ if test "$CC" != "icc" | ||
then | ||
- # clang needs these flags | ||
- if test "$CC" = "clang" | ||
- then | ||
- AM_CFLAGS="$AM_CFLAGS -maes -mpclmul" | ||
- else | ||
- # GCC needs these flags, icc doesn't | ||
- # opt levels greater than 2 may cause problems on systems w/o | ||
- # aesni | ||
- if test "$CC" != "icc" | ||
- then | ||
- AM_CFLAGS="$AM_CFLAGS -maes -msse4 -mpclmul" | ||
- fi | ||
- fi | ||
+ case $host_os in | ||
+ mingw*) | ||
+ # Windows uses intrinsics for GCM which uses SSE4 instructions. | ||
+ # MSVC has own build files. | ||
+ AM_CFLAGS="$AM_CFLAGS -maes -msse4 -mpclmul" | ||
+ ;; | ||
+ *) | ||
+ # Intrinsics used in AES_set_decrypt_key (TODO: rework) | ||
+ AM_CFLAGS="$AM_CFLAGS -maes" | ||
+ ;; | ||
+ esac | ||
fi | ||
AS_IF([test "x$ENABLED_AESGCM" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_AESGCM"]) | ||
fi |