100-Configure-afalg-support.patch 973 B

12345678910111213141516171819202122232425
  1. From 559fbff13af9ce2fbc0b9bc5727a7323e1db6217 Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <[email protected]>
  3. Date: Thu, 27 Sep 2018 08:29:21 -0300
  4. Subject: Do not use host kernel version to disable AFALG
  5. This patch prevents the Configure script from using the host kernel
  6. version to disable building the AFALG engine on openwrt targets.
  7. Signed-off-by: Eneas U de Queiroz <[email protected]>
  8. diff --git a/Configure b/Configure
  9. index 5a699836f3..74d057c219 100755
  10. --- a/Configure
  11. +++ b/Configure
  12. @@ -1532,7 +1532,9 @@ unless ($disabled{"crypto-mdebug-backtrace"})
  13. unless ($disabled{afalgeng}) {
  14. $config{afalgeng}="";
  15. - if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
  16. + if ($target =~ m/openwrt$/) {
  17. + push @{$config{engdirs}}, "afalg";
  18. + } elsif (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
  19. my $minver = 4*10000 + 1*100 + 0;
  20. if ($config{CROSS_COMPILE} eq "") {
  21. my $verstr = `uname -r`;