Support to handle IPF assembly files
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Oct 2006 12:44:46 +0000 (12:44 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 Oct 2006 12:44:46 +0000 (12:44 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1767 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java
Tools/Java/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java

index 69862f6..df07f83 100644 (file)
@@ -108,15 +108,17 @@ public final class ModuleInfo {
     \r
     public final void enroll(String filepath) throws Exception {\r
         String temp = null;\r
-        if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") || \r
-                filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni")) {\r
-               addSourceFile(filepath.replace(modulepath + File.separator, ""), null);\r
-        } else if (filepath.contains(".inf") || filepath.contains(".msa")) {\r
+         if (filepath.contains(".inf") || filepath.contains(".msa")) {\r
             temp = filepath.replace(modulepath + File.separator, "");\r
             if (!temp.contains(File.separator)) {                            // .inf in subdirectory is not regarded\r
                 msaorinf.add(temp);\r
             }\r
-        }\r
+        } else if (filepath.contains(".c") || filepath.contains(".C") || filepath.contains(".h") || \r
+                filepath.contains(".H") || filepath.contains(".dxs") || filepath.contains(".uni") ||\r
+                filepath.contains(".s") || filepath.contains(".S") || filepath.contains(".i") ||\r
+                filepath.contains(".asm")) {\r
+               addSourceFile(filepath.replace(modulepath + File.separator, ""), null);\r
+        } \r
     }\r
 \r
     public static final boolean isModule(String path) {\r
index 843af37..4a4d71c 100644 (file)
@@ -75,7 +75,9 @@ public final class SourceFileReplacer implements Common.ForDoAll {
         }\r
         \r
         public boolean recognize(String filename) {\r
-            return filename.contains(".h") || filename.contains(".H") || filename.contains(".uni");\r
+            return filename.contains(".h") || filename.contains(".H") || filename.contains(".uni") ||\r
+                   filename.contains(".s") || filename.contains(".S") || filename.contains(".asm") ||\r
+                   (!filename.contains(".inf") && filename.contains(".i"));\r
         }\r
 \r
         public String namechange(String oldname) {\r