diff options
author | Erik Troan <ewt@redhat.com> | 1999-05-25 01:51:34 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-05-25 01:51:34 +0000 |
commit | d1afb4a2f75860b4324d01107cffe5521f330234 (patch) | |
tree | bc6a6c7db50c4d60e96220ce304a27783a0891fc | |
parent | d4d70578ff4193ac59c803a1c1b4ccf027e95a6b (diff) | |
download | anaconda-d1afb4a2f75860b4324d01107cffe5521f330234.tar.gz anaconda-d1afb4a2f75860b4324d01107cffe5521f330234.tar.xz anaconda-d1afb4a2f75860b4324d01107cffe5521f330234.zip |
generate a plain text file rather then C source
-rwxr-xr-x | isys/pci/mergeids | 10 |
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, $_); |