summaryrefslogtreecommitdiffstats
path: root/kernel/dependencies.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-29 16:13:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-29 16:13:47 +0000
commite2ffebc8fd3f10c175846d6b5a7f40e202277d7d (patch)
tree0eb5ff217d1f6767a4d0340ed7ba5d6670215b12 /kernel/dependencies.pl
parent368a0547548096f496c71a6690124366cc05424c (diff)
downloaddrakx-e2ffebc8fd3f10c175846d6b5a7f40e202277d7d.tar
drakx-e2ffebc8fd3f10c175846d6b5a7f40e202277d7d.tar.gz
drakx-e2ffebc8fd3f10c175846d6b5a7f40e202277d7d.tar.bz2
drakx-e2ffebc8fd3f10c175846d6b5a7f40e202277d7d.tar.xz
drakx-e2ffebc8fd3f10c175846d6b5a7f40e202277d7d.zip
handle depfile per kernel, not just 2.4* modules.dep
Diffstat (limited to 'kernel/dependencies.pl')
-rw-r--r--kernel/dependencies.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/dependencies.pl b/kernel/dependencies.pl
new file mode 100644
index 000000000..10663b56b
--- /dev/null
+++ b/kernel/dependencies.pl
@@ -0,0 +1,12 @@
+use strict;
+
+use MDK::Common;
+use list_modules;
+
+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 "\n";