mirror of
https://git.busybox.net/busybox.git
synced 2024-11-23 05:33:33 +08:00
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 <sonic.zhang@analog.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f23f7856cb
commit
880eec8f33
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user