summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-05-25 01:51:34 +0000
committerErik Troan <ewt@redhat.com>1999-05-25 01:51:34 +0000
commitd1afb4a2f75860b4324d01107cffe5521f330234 (patch)
treebc6a6c7db50c4d60e96220ce304a27783a0891fc
parentd4d70578ff4193ac59c803a1c1b4ccf027e95a6b (diff)
downloadanaconda-d1afb4a2f75860b4324d01107cffe5521f330234.tar.gz
anaconda-d1afb4a2f75860b4324d01107cffe5521f330234.tar.xz
anaconda-d1afb4a2f75860b4324d01107cffe5521f330234.zip
generate a plain text file rather then C source
-rwxr-xr-xisys/pci/mergeids10
1 files changed, 7 insertions, 3 deletions
diff --git a/isys/pci/mergeids b/isys/pci/mergeids
index 0e5cdcf3c..2c9c4e387 100755
--- a/isys/pci/mergeids
+++ b/isys/pci/mergeids
@@ -58,9 +58,13 @@ while (<F>) {
open(F, "<pci.ids");
open(UNKNOWN, ">unknown");
-open(DRIVERS, ">driverlist.h");
+open(DRIVERS, ">pcitable");
-print DRIVERS "struct pciDrivers pciDriverList[] = {\n";
+print DRIVERS "# This file is automatically generated from isys/pci. Editing\n";
+print DRIVERS "# it by hand is rarely the right thing to do.";
+print DRIVERS "\n";
+print DRIVERS "# The format is (\"%d\\t%s\\t%s\\n\", classid, devid, moduleName)";
+print DRIVERS "\n\n";
$class = "";
$gotunknown = 0;
@@ -83,7 +87,7 @@ while (<F>) {
$name = $class . "|" . $_;
if ($unsupported{$name}) {
} elsif ($drivers{$name}) {
- printf(DRIVERS "\t{ 0x%s, 0x%s, \"%s\"},\n", $classid, $devid,
+ printf(DRIVERS "0x%s\t0x%s\t%s\n", $classid, $devid,
$drivers{$name});
} else {
printf(UNKNOWN "%-25s|%s\n", $class, $_);