summaryrefslogtreecommitdiffstats
path: root/kernel/dependencies.pl
blob: e3be1421253fe42b035d05650fb6a22a14ac50a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 { $_ . ($version == 24 ? '.o' : '.ko') } @modules;
print "\n";