summaryrefslogtreecommitdiffstats
path: root/kernel/dependencies.pl
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dependencies.pl')
-rw-r--r--kernel/dependencies.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/dependencies.pl b/kernel/dependencies.pl
index 10663b56b..e3be14212 100644
--- a/kernel/dependencies.pl
+++ b/kernel/dependencies.pl
@@ -3,10 +3,11 @@ use strict;
use MDK::Common;
use list_modules;
+my $version = shift @ARGV;
my $depfile = shift @ARGV;
load_dependencies($depfile);
print STDERR "Loaded dependencies from $depfile\n";
my @modules = uniq(map { dependencies_closure($_) } @ARGV);
-print join " ", map { "$_.o" } @modules;
+print join " ", map { $_ . ($version == 24 ? '.o' : '.ko') } @modules;
print "\n";