100-Configure-afalg-support.patch 897 B

1234567891011121314151617181920212223
  1. From bf4f3a5696c65b4a48935599ccba43311c114c95 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. --- a/Configure
  9. +++ b/Configure
  10. @@ -1554,7 +1554,9 @@ unless ($disabled{"crypto-mdebug-backtra
  11. unless ($disabled{afalgeng}) {
  12. $config{afalgeng}="";
  13. - if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
  14. + if ($target =~ m/openwrt$/) {
  15. + push @{$config{engdirs}}, "afalg";
  16. + } elsif (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
  17. my $minver = 4*10000 + 1*100 + 0;
  18. if ($config{CROSS_COMPILE} eq "") {
  19. my $verstr = `uname -r`;