summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pci-resource
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
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')
-rw-r--r--mdk-stage1/pci-resource/Makefile6
-rwxr-xr-xmdk-stage1/pci-resource/update-pci-ids.pl7
2 files changed, 9 insertions, 4 deletions
diff --git a/mdk-stage1/pci-resource/Makefile b/mdk-stage1/pci-resource/Makefile
index ed16b6f67..84d335c91 100644
--- a/mdk-stage1/pci-resource/Makefile
+++ b/mdk-stage1/pci-resource/Makefile
@@ -13,12 +13,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
- # Portions from Erik Troan (ewt@redhat.com) Copyright 1996 Red Hat Software
- #
#*****************************************************************************
-pci-ids.h: ../../perl-install/pci_probing/pcitable
+all: pci-ids.h
+
+pci-ids.h: ../../perl-install/pci_probing/pcitable update-pci-ids.pl
make -C ../../perl-install/pci_probing
perl update-pci-ids.pl > $@
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";
}