b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 |
| 5 | |
| 6 | This patch prevents the Configure script from using the host kernel |
| 7 | version to disable building the AFALG engine on openwrt targets. |
| 8 | |
| 9 | Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com> |
| 10 | |
| 11 | --- a/Configure |
| 12 | +++ b/Configure |
| 13 | @@ -1677,7 +1677,9 @@ $config{CFLAGS} = [ map { $_ eq '--ossl- |
| 14 | |
| 15 | unless ($disabled{afalgeng}) { |
| 16 | $config{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`; |