1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3 Date: Thu, 27 Sep 2018 08:29:21 -0300
4 Subject: Do not use host kernel version to disable AFALG
6 This patch prevents the Configure script from using the host kernel
7 version to disable building the AFALG engine on openwrt targets.
9 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
13 @@ -1677,7 +1677,9 @@ $config{CFLAGS} = [ map { $_ eq '--ossl-
15 unless ($disabled{afalgeng}) {
17 - if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
18 + if ($target =~ m/openwrt$/) {
19 + push @{$config{engdirs}}, "afalg";
20 + } elsif (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
21 my $minver = 4*10000 + 1*100 + 0;
22 if ($config{CROSS_COMPILE} eq "") {
23 my $verstr = `uname -r`;