Fix EDKT138. And add active_platform file info for stand alone module build.
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Jul 2006 07:43:21 +0000 (07:43 +0000)
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Jul 2006 07:43:21 +0000 (07:43 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1032 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
Tools/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java
Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java
Tools/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java

index 286fd69..c5c51be 100644 (file)
@@ -153,6 +153,8 @@ public class FrameworkBuildTask extends Task{
         // Build every MSA files (SINGLE MODULE BUILD)\r
         //\r
         else if (buildFile.getName().endsWith(".msa")) {\r
+            File tmpFile = new File(GlobalData.getWorkspacePath() + File.separatorChar + activePlatform);\r
+            System.out.println("Using FPD file [" + tmpFile.getPath() + "] as active platform. ");\r
             System.out.println("Start to build MSA file [" + buildFile.getPath() + "] ..>> ");\r
             GenBuildTask genBuildTask = new GenBuildTask();\r
             genBuildTask.setSingleModuleBuild(true);\r
index 73db7de..c85cda8 100644 (file)
@@ -500,6 +500,9 @@ public class FpdParserTask extends Task {
       @param moduleName current module identification\r
     **/\r
     private void updateFvs(String fvSequence, String fvName, FpdModuleIdentification fpdModuleId) {\r
+        if (fvName == null || fvName.trim().length() == 0) {\r
+            fvName = "NULL";\r
+        }\r
         String upcaseFvName = fvName.toUpperCase();\r
         String[] fvNameArray = upcaseFvName.split("[, \t]+");\r
         for (int i = 0; i < fvNameArray.length; i++) {\r
index 1972516..101e14f 100644 (file)
@@ -26,13 +26,11 @@ import java.util.Set;
 import java.util.logging.Logger;\r
 \r
 import org.apache.tools.ant.BuildException;\r
-import org.apache.tools.ant.Project;\r
 import org.apache.xmlbeans.XmlObject;\r
 import org.tianocore.DbPathAndFilename;\r
 import org.tianocore.FrameworkDatabaseDocument;\r
 import org.tianocore.ModuleSurfaceAreaDocument;\r
 import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r
-import org.tianocore.PcdBuildDefinitionDocument;\r
 import org.tianocore.build.id.FpdModuleIdentification;\r
 import org.tianocore.build.id.ModuleIdentification;\r
 import org.tianocore.build.id.PackageIdentification;\r
index 0dcc80c..f795e1e 100644 (file)
@@ -1924,9 +1924,6 @@ public class SurfaceAreaQuery {
     }\r
 \r
        public static boolean isHaveTianoR8FlashMap(){\r
-        PcdCodedDocument.PcdCoded.PcdEntry[] pcdEntries  = null;\r
-        String[]            results;\r
-        int                 index;\r
         String[]            xPath       = new String[] {"/"};\r
         Object[]         returns     = get ("Externs", xPath);\r
 \r