blob: b7c0e9697f88a0ec00b5f6b138cf466789075f45 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001Don't refuse to build afalgeng if cross-compiling or the host kernel is too old.
2
3Upstream-Status: Submitted [hhttps://github.com/openssl/openssl/pull/7688]
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/Configure b/Configure
7index 3baa8ce..9ef52ed 100755
8--- a/Configure
9+++ b/Configure
10@@ -1550,20 +1550,7 @@ unless ($disabled{"crypto-mdebug-backtrace"})
11 unless ($disabled{afalgeng}) {
12 $config{afalgeng}="";
13 if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
14- my $minver = 4*10000 + 1*100 + 0;
15- if ($config{CROSS_COMPILE} eq "") {
16- my $verstr = `uname -r`;
17- my ($ma, $mi1, $mi2) = split("\\.", $verstr);
18- ($mi2) = $mi2 =~ /(\d+)/;
19- my $ver = $ma*10000 + $mi1*100 + $mi2;
20- if ($ver < $minver) {
Brad Bishop15ae2502019-06-18 21:44:24 -040021- disable('too-old-kernel', 'afalgeng');
Brad Bishop19323692019-04-05 15:28:33 -040022- } else {
23- push @{$config{engdirs}}, "afalg";
24- }
25- } else {
Brad Bishop15ae2502019-06-18 21:44:24 -040026- disable('cross-compiling', 'afalgeng');
Brad Bishop19323692019-04-05 15:28:33 -040027- }
28+ push @{$config{engdirs}}, "afalg";
29 } else {
Brad Bishop15ae2502019-06-18 21:44:24 -040030 disable('not-linux', 'afalgeng');
Brad Bishop19323692019-04-05 15:28:33 -040031 }