diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-05 07:05:21 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-07-05 07:05:21 +0000 |
commit | 8a7f0c4c6b814fe50a18ed0c96e3d871e98bd224 (patch) | |
tree | 51ec634ce52a3dc03e8a4a65619a8516de9c4e09 /Tools | |
parent | b6fc09bf79d45585fd7098e2676671ae7aed358f (diff) | |
download | edk2-8a7f0c4c6b814fe50a18ed0c96e3d871e98bd224.zip edk2-8a7f0c4c6b814fe50a18ed0c96e3d871e98bd224.tar.gz edk2-8a7f0c4c6b814fe50a18ed0c96e3d871e98bd224.tar.bz2 |
Add the rule to handle the naming change of industry standard header files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3068 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index d65d72f..c72399e 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -361,11 +361,32 @@ public final class ModuleReader implements Common.ForDoAll { .group(1))) {
templine = mtrinclude.group();
} else {
- templine = MigrationTool.MIGRATIONCOMMENT
- + mtrinclude.group();
- }
- mtrinclude.appendReplacement(wholebuffer, templine);
- }
+ String line = mtrinclude.group().toLowerCase();
+ if (line.contains("pal.h")) {
+ templine = "#include <IndustryStandard/Pal.h>\n";
+ } else if (line.contains("sal.h")) {
+ templine = "#include <IndustryStandard/Sal.h>\n";
+ } else if (line.contains("pci22.h")) {
+ templine = "#include <IndustryStandard/Pci22.h>\n";
+ } else if (line.contains("pci23.h")) {
+ templine = "#include <IndustryStandard/Pci23.h>\n";
+ } else if (line.contains("pci30.h")) {
+ templine = "#include <IndustryStandard/Pci30.h>\n";
+ } else if (line.contains("pci.h")) {
+ templine = "#include <IndustryStandard/Pci.h>\n";
+ } else if (line.contains("acpi.h")) {
+ templine = "#include <IndustryStandard/Acpi.h>\n";
+ } else if (line.contains("scsi.h")) {
+ templine = "#include <IndustryStandard/Scsi.h>\n";
+ } else if (line.contains("usb.h")) {
+ templine = "#include <IndustryStandard/Usb.h>\n";
+ } else {
+ templine = MigrationTool.MIGRATIONCOMMENT
+ + mtrinclude.group();
+ }
+ }
+ mtrinclude.appendReplacement(wholebuffer, templine);
+ }
mtrinclude.appendTail(wholebuffer);
return wholebuffer.toString();
}
|