]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add class header to FrameworkBuildTask. Remove some unused code from top level build...
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 17 Aug 2006 06:51:51 +0000 (06:51 +0000)
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 17 Aug 2006 06:51:51 +0000 (06:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1306 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java
build.xml

index 14de2d824ddfdab4d9930697434df1667e9e83f9..fe7a8ce70da7475efe752f7ae7e843e41b46fb83 100644 (file)
@@ -29,6 +29,41 @@ import org.tianocore.build.toolchain.ConfigReader;
 import org.tianocore.build.toolchain.ToolChainInfo;\r
 import org.tianocore.common.definitions.ToolDefinitions;\r
 \r
+/**\r
+  <p>\r
+  <code>FrameworkBuildTask</code> is an Ant task. The main function is finding\r
+  and processing a FPD or MSA file, then building a platform or stand-alone \r
+  module. \r
+  \r
+  <p>\r
+  The task search current directory and find out all MSA and FPD files by file\r
+  extension. Base on ACTIVE_PLATFORM policy, decide to build a platform or a\r
+  stand-alone module. The ACTIVE_PLATFORM policy is: \r
+  \r
+  <pre>\r
+  1. More than one MSA files, report error; \r
+  2. Only one MSA file, but ACTIVE_PLATFORM is not specified, report error;\r
+  3. Only one MSA file, and ACTIVE_PLATFORM is also specified, build this module;\r
+  4. No MSA file, and ACTIVE_PLATFORM is specified, build the active platform;\r
+  5. No MSA file, no ACTIVE_PLATFORM, and no FPD file, report error;\r
+  6. No MSA file, no ACTIVE_PLATFORM, and only one FPD file, build the platform;\r
+  7. No MSA file, no ACTIVE_PLATFORM, and more than one FPD files, list all platform\r
+  and let user choose one. \r
+  </pre>\r
+  \r
+  <p>\r
+  Framework build task also parse target file [${WORKSPACE_DIR}/Tools/Conf/target.txt].\r
+  And load all system environment variables to Ant properties.  \r
+  \r
+  <p>\r
+  The usage for this task is : \r
+  \r
+  <pre>\r
+  &lt;FrameworkBuild type="cleanall" /&gt;\r
+  </pre>\r
+  \r
+  @since GenBuild 1.0\r
+**/\r
 public class FrameworkBuildTask extends Task{\r
 \r
     private Set<File> buildFiles = new LinkedHashSet<File>();\r
@@ -103,8 +138,6 @@ public class FrameworkBuildTask extends Task{
         getProject().setProperty("WORKSPACE_DIR", workspacePath.getPath().replaceAll("(\\\\)", "/"));\r
         GlobalData.initInfo(dbFilename, workspacePath.getPath(), toolsDefFilename);\r
         \r
-\r
-        \r
         //\r
         // If find MSA file and ACTIVE_PLATFORM is set, build the module; \r
         // else fail build. \r
index b82c28c413511e1dcca94324090f1db383dc3fcb..c8cc4ad74890729a245d705ac896467b4ca0d5be 100644 (file)
@@ -55,12 +55,14 @@ import org.tianocore.build.tools.ModuleItem;
   <p>The main function of this task is to parse module's surface area (MSA),\r
   then generate the corresponding <em>BaseName_build.xml</em> (the real ANT\r
   build script) and call this to build the module. The whole process including:\r
+  <pre>\r
   1. generate AutoGen.c and AutoGen.h; \r
   2. build all dependent library instances;\r
   3. build all source files inlcude AutoGen.c; \r
   4. generate sections;\r
   5. generate FFS file if it is driver module while LIB file if it is Library module.\r
-  </p>\r
+  </pre>\r
+\r
 \r
   <p>\r
   The usage is (take module <em>HelloWorld</em> for example):\r
index 4b7e95428ba81c9c43f30a5f94d901c6b1d4326d..cf10675f62317127b1006e40426f686ff94170ef 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -33,9 +33,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         <fail message="WORKSPACE environmental variable not set." />\r
       </then>\r
     </if>\r
-    <!--\r
-    <ToolChainSetup confPath="${WORKSPACE_DIR}/Tools/Conf" />\r
-    -->\r
   </target>\r
   \r
   <target name="build">\r