summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-05 10:26:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-05 10:26:09 +0000
commit436ea92274d25b4f0ef20a7811107ace94be4e8e (patch)
tree11773deb052e4e7d62f058e553ba0a6534801266
parent2025cb011746bb9c538547822d383e4ad4f3c0a5 (diff)
downloaddrakx-backup-do-not-use-436ea92274d25b4f0ef20a7811107ace94be4e8e.tar
drakx-backup-do-not-use-436ea92274d25b4f0ef20a7811107ace94be4e8e.tar.gz
drakx-backup-do-not-use-436ea92274d25b4f0ef20a7811107ace94be4e8e.tar.bz2
drakx-backup-do-not-use-436ea92274d25b4f0ef20a7811107ace94be4e8e.tar.xz
drakx-backup-do-not-use-436ea92274d25b4f0ef20a7811107ace94be4e8e.zip
add pci_modules4stage1 for use in mdk-stage1/pci-resource/update-pci-ids.pl
-rw-r--r--kernel/modules.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl
index ebcdaaa2c..067c47386 100644
--- a/kernel/modules.pl
+++ b/kernel/modules.pl
@@ -1,5 +1,12 @@
use strict;
+
+BEGIN {
+ #- for testing purpose
+ (my $f = __FILE__) =~ s|/[^/]*$||;
+ push @INC, $f;
+}
+
use MDK::Common;
use list_modules;
@@ -45,6 +52,7 @@ my %images = (
my $verbose = "@ARGV" =~ /-v/;
images() if "@ARGV" =~ /images/;
check() if "@ARGV" =~ /check/;
+pci_modules4stage1($1) if "@ARGV" =~ /pci_modules4stage1:(.*)/;
sub images {
load_dependencies('modules.dep');
@@ -68,6 +76,10 @@ sub images {
}
}
+sub pci_modules4stage1 {
+ print "$_\n" foreach difference2([ category2modules($_[0]) ], \@skip_modules_on_stage1);
+}
+
sub check {
my $error;
my %listed;