summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pci-resource/update-pci-ids.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-14 23:47:36 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-14 23:47:36 +0000
commit752c59eb0ab37ca75bb410052aaf40514818cd54 (patch)
treef083ed8b39dedee72a7eadaa4f7631f6b11fc0e7 /mdk-stage1/pci-resource/update-pci-ids.pl
parent4cfd9a056d6e652efb751a6a2ea56c700886ce51 (diff)
downloaddrakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar
drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.gz
drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.bz2
drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.tar.xz
drakx-backup-do-not-use-752c59eb0ab37ca75bb410052aaf40514818cd54.zip
- do progressbar since it seems nobody can live without it
- write real separation between cdrom, disk, and network code; have multiple targets for that issue - begin network code: network interface is up and runing (static IP only), network is configured
Diffstat (limited to 'mdk-stage1/pci-resource/update-pci-ids.pl')
-rwxr-xr-xmdk-stage1/pci-resource/update-pci-ids.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdk-stage1/pci-resource/update-pci-ids.pl b/mdk-stage1/pci-resource/update-pci-ids.pl
index 4aaa04b70..396621faa 100755
--- a/mdk-stage1/pci-resource/update-pci-ids.pl
+++ b/mdk-stage1/pci-resource/update-pci-ids.pl
@@ -19,6 +19,9 @@ struct pci_module_map {
my %t = (scsi => 'scsi', eth => 'net');
foreach (keys %t) {
+ print "#ifndef DISABLE_NETWORK\n" if ($_ eq 'eth');
+ print "#ifndef DISABLE_MEDIAS\n" if ($_ eq 'scsi');
+
print "
struct pci_module_map ${_}_pci_ids[] = {
";
@@ -36,6 +39,8 @@ struct pci_module_map ${_}_pci_ids[] = {
print "
};
int ${_}_num_ids=sizeof(${_}_pci_ids)/sizeof(struct pci_module_map);
-"
+";
+
+ print "#endif\n";
}