summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pci-resource
diff options
context:
space:
mode:
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";
}