summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSonic Zhang2011-09-09 18:58:08 +0200
committerDenys Vlasenko2011-09-09 18:58:08 +0200
commit880eec8f33843d00142d2639dfe7d807dc125cf9 (patch)
treec55b43cfa1566bc548db4b2448a832dcbeffcd50 /examples
parentf23f7856cbbc578beb8e2c57d8669c7c211ee221 (diff)
downloadbusybox-880eec8f33843d00142d2639dfe7d807dc125cf9.zip
busybox-880eec8f33843d00142d2639dfe7d807dc125cf9.tar.gz
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>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/depmod.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/depmod.pl b/examples/depmod.pl
index f324b12..809dc08 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') {