blob: e9cd7bf9c1afa65a0a845bf462701f64134b5f62 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3Date: Thu, 27 Sep 2018 08:29:21 -0300
4Subject: Do not use host kernel version to disable AFALG
5
6This patch prevents the Configure script from using the host kernel
7version to disable building the AFALG engine on openwrt targets.
8
9Signed-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`;