From: Sonic Zhang Date: Fri, 9 Sep 2011 16:58:08 +0000 (+0200) Subject: depmod.pl: output correct dep format according to kernel version X-Git-Tag: 1_20_0~245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=880eec8f33843d00142d2639dfe7d807dc125cf9;p=oweals%2Fbusybox.git depmod.pl: output correct dep format according to kernel version All kernel version except for 2.4 has the same dep output format. (Possibly related to era of kernels 3.0+) Signed-off-by: Sonic Zhang Signed-off-by: Denys Vlasenko --- diff --git a/examples/depmod.pl b/examples/depmod.pl index f324b121a..809dc08b3 100755 --- a/examples/depmod.pl +++ b/examples/depmod.pl @@ -199,7 +199,7 @@ if ($stdout == 0) { open(STDOUT, ">$basedir/modules.dep") or die "cannot open $basedir/modules.dep: $!"; } -my $kseries = $basedir =~ m,/2\.6\.[^/]*, ? '2.6' : '2.4'; +my $kseries = $basedir =~ m,/2\.4\.[^/]*, ? '2.4' : 'others'; foreach my $module ( keys %$mod ) { if($kseries eq '2.4') {