mirror of
git://git.yoctoproject.org/poky
synced 2026-09-03 12:23:36 +00:00
Whether the AFALG engine (use of hardware crypto via AF_ALG) is enable or disable depends on whether the host kernel is 4.1 or above, which has no bearing on whether the target system supports it. Remove the complicated logic and simply enable/disable as requested. (From OE-Core rev: 4b6c566c0540fe8e560d0feeb9c765c0eb6e5182) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
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";
|
|
}
|