summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl/afalg.patch
blob: 7c4b084f3df9c5be2721bd3646133f2c47408c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Don't refuse to build afalgeng if cross-compiling or the host kernel is too old.

Upstream-Status: Submitted [hhttps://github.com/openssl/openssl/pull/7688]
Signed-off-by: Ross Burton <ross.burton@intel.com>

diff --git a/Configure b/Configure
index 3baa8ce..9ef52ed 100755
--- a/Configure
+++ b/Configure
@@ -1550,20 +1550,7 @@ unless ($disabled{"crypto-mdebug-backtrace"})
 unless ($disabled{afalgeng}) {
     $config{afalgeng}="";
     if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
-        my $minver = 4*10000 + 1*100 + 0;
-        if ($config{CROSS_COMPILE} eq "") {
-            my $verstr = `uname -r`;
-            my ($ma, $mi1, $mi2) = split("\\.", $verstr);
-            ($mi2) = $mi2 =~ /(\d+)/;
-            my $ver = $ma*10000 + $mi1*100 + $mi2;
-            if ($ver < $minver) {
-                $disabled{afalgeng} = "too-old-kernel";
-            } else {
-                push @{$config{engdirs}}, "afalg";
-            }
-        } else {
-            $disabled{afalgeng} = "cross-compiling";
-        }
+        push @{$config{engdirs}}, "afalg";
     } else {
         $disabled{afalgeng}  = "not-linux";
     }