]> git.proxmox.com Git - mirror_edk2.git/commitdiff
- Fixed EDKT240. Now the Blank.pad file for alignment purpose will no longer be needed.
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 25 Jan 2007 01:25:02 +0000 (01:25 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 25 Jan 2007 01:25:02 +0000 (01:25 +0000)
- Fixed EDKT366. For NT32, using "build run" to launch the NT32 emulator. The run.cmd is still be generated in the ${TARGET_DIR}

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2305 6f19259b-4bc3-4df7-8a09-765794883524

15 files changed:
EdkModulePkg/EdkModulePkg.fpd
EdkNt32Pkg/Nt32.fpd
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CompressSection.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenFfsFileTask.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/Section.java
Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java
Tools/Java/Source/GenBuild/org/tianocore/build/FfsProcess.java
Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java
Tools/Java/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java
Tools/Java/Source/GenBuild/org/tianocore/build/global/SurfaceAreaQuery.java
Tools/bin/build.bat
build.xml

index 7ed449c1af4de90b18061a3aa39c98daea3e40dd..4e1e99ef109508cf35d09154119ebb76db0c3075 100644 (file)
       <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEIM"/>\r
       <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>\r
       <Attribute Name="FFS_ATTRIB_DATA_ALIGNMENT" Value="1"/>\r
-      <!--FFS DATA should align 16 bytes.-->\r
+      <!--The PE32 should align on 16 bytes boundary.-->\r
       <Sections>\r
-        <Section SectionType="EFI_SECTION_RAW">\r
-          <!--add 12 bytes blank.pad file-->\r
-          <Filenames>\r
-            <Filename>${PLATFORM_DIR}/Blank.pad</Filename>\r
-          </Filenames>\r
-        </Section>\r
-        <Section SectionType="EFI_SECTION_PE32"/>\r
+        <Section SectionType="EFI_SECTION_PE32" Alignment="1"/>\r
         <Section SectionType="EFI_SECTION_PEI_DEPEX"/>\r
         <Section SectionType="EFI_SECTION_USER_INTERFACE"/>\r
         <Section SectionType="EFI_SECTION_VERSION"/>\r
       <Attribute Name="FFS_FILETYPE" Value="EFI_FV_FILETYPE_PEI_CORE"/>\r
       <Attribute Name="FFS_ATTRIB_CHECKSUM" Value="TRUE"/>\r
       <Attribute Name="FFS_ATTRIB_DATA_ALIGNMENT" Value="1"/>\r
-      <!--FFS DATA should align 16 bytes.-->\r
+      <!--The PE32 should align on 16 bytes boundary.-->\r
       <Sections>\r
-        <Section SectionType="EFI_SECTION_RAW">\r
-          <!--add 12 bytes blank.pad file-->\r
-          <Filenames>\r
-            <Filename>${PLATFORM_DIR}/Blank.pad</Filename>\r
-          </Filenames>\r
-        </Section>\r
-        <Section SectionType="EFI_SECTION_PE32"/>\r
+        <Section SectionType="EFI_SECTION_PE32" Alignment="1"/>\r
         <Section SectionType="EFI_SECTION_USER_INTERFACE"/>\r
         <Section SectionType="EFI_SECTION_VERSION"/>\r
       </Sections>\r
index f4a656319198dc3fb2903f760fc1d2d6103551ce..5c81986e85d702dd644e395879e39986cb4c65ed 100644 (file)
     <concat destfile="${FV_DIR}/FV_RECOVERY.fd" binary="true" force="no">\r
       <fileset dir="${FV_DIR}" includes="*.fv"/>\r
     </concat>\r
-    <!--Generate Run.cmd file. This file will call SecMain.exe to start shell.-->\r
     <pathconvert property="SecMainPath" targetos="windows">\r
       <path path="${TARGET_DIR}/IA32"/>\r
     </pathconvert>\r
-    <echo file="${BUILD_DIR}/run.cmd">@REM
-      @REM Copyright (c) 2006, Intel Corporation
-      @REM All rights reserved. This program and the accompanying materials
-      @REM are licensed and made available under the terms and conditions of the BSD License
-      @REM which accompanies this distribution.  The full text of the license may be found at
-      @REM http://opensource.org/licenses/bsd-license.php
-      @REM 
-      @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-      @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-      @REM 
-      
-      @echo off 
-      pushd . 
-      cd ${SecMainPath}
-      SecMain.exe
-      popd
+    <echo file="${TARGET_DIR}/run.cmd">@REM\r
+      @REM Copyright (c) 2006, Intel Corporation\r
+      @REM All rights reserved. This program and the accompanying materials\r
+      @REM are licensed and made available under the terms and conditions of the BSD License\r
+      @REM which accompanies this distribution.  The full text of the license may be found at\r
+      @REM http://opensource.org/licenses/bsd-license.php\r
+      @REM \r
+      @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+      @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+      @REM \r
+      \r
+      @echo off \r
+      pushd . \r
+      cd ${SecMainPath}\r
+      SecMain.exe\r
+      popd\r
       @echo on</echo>\r
   </UserExtensions>\r
+  <UserExtensions UserID="TianoCore" Identifier="run">\r
+    <!-- execute the NT32 simulator -->\r
+    <exec executable="${TARGET_DIR}/IA32/SecMain.exe" dir="${TARGET_DIR}/IA32" spawn="false"/>\r
+  </UserExtensions>\r
 </PlatformSurfaceArea>
\ No newline at end of file
index 5f35685fbe3b4232c64630612e4d95c4201ecaff..3e2a98f695c8f6cbbba8e3f4e31423c33b779b84 100644 (file)
@@ -33,6 +33,7 @@ import org.apache.tools.ant.BuildException;
  \r
 **/\r
 public class CompressSection implements Section, FfsTypes {\r
+    private int alignment = 0;\r
     //\r
     // The attribute of compressName.\r
     //\r
@@ -197,4 +198,16 @@ public class CompressSection implements Section, FfsTypes {
     public void addTool (Tool tool) {\r
         sectList.add(tool);\r
     }\r
+\r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
 }
\ No newline at end of file
index 3fdeb8d76aa5b74bde31d5b84dfb7e37cb9d921e..ebc26b92a4b7796856b252a8def838652ef3c681 100644 (file)
@@ -741,15 +741,53 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
 \r
        return value;\r
    }\r
-    \r
-    /**\r
-      genFfs\r
-      \r
-      This function is to generate FFS file.\r
-      \r
-       @param ffsFile          Name of FFS file.\r
-       @param isOrg            Flag to indicate generate ORG ffs file or not.\r
-    **/\r
+\r
+   private void alignSection(DataOutputStream dataBuffer, int dataSize, int alignment) throws BuildException {\r
+       if (alignment == 0) {\r
+           return;\r
+       }\r
+       dataSize += 4; // take the section header into account\r
+       int[] alignedBytes = {0, 16, 128, 512, 1024, 4096, 32768, 65536};\r
+       int padSize = (alignedBytes[alignment] - dataSize) & (alignedBytes[alignment] - 1);\r
+       if (padSize == 0) {\r
+           //\r
+           // already aligned\r
+           // \r
+           return;\r
+       }\r
+       //\r
+       // if the pad size is not times of 4, there must be something wrong in previous sections\r
+       // \r
+       if (((4 - padSize) & (4 - 1)) != 0) {\r
+           EdkLog.log(this, EdkLog.EDK_ERROR, "PAD section size must be 4-byte aligned (" + padSize + ")!");\r
+           throw new BuildException ("Alignment can't be satisfied!");\r
+       }\r
+       byte[] pad = new byte[padSize];\r
+       //\r
+       // first three byte stores the section size\r
+       // \r
+       pad[0] = (byte)(padSize & 0xff);\r
+       pad[1] = (byte)((padSize >> 8) & 0xff);\r
+       pad[2] = (byte)((padSize >> 16) & 0xff);\r
+       //\r
+       // the fourth byte are section type. use raw type (0x19)\r
+       // \r
+       pad[3] = 0x19;\r
+       try {\r
+           dataBuffer.write(pad);\r
+       } catch (Exception e) {\r
+           throw new BuildException(e.getMessage());\r
+       }\r
+   }\r
+\r
+   /**\r
+     genFfs\r
+     \r
+     This function is to generate FFS file.\r
+     \r
+      @param ffsFile          Name of FFS file.\r
+      @param isOrg            Flag to indicate generate ORG ffs file or not.\r
+   **/\r
     private void genFfs(File ffsFile) throws BuildException {\r
         Section           sect;\r
         int               fileSize;\r
@@ -775,6 +813,11 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
                 sect = (Section)sectionIter.next(); \r
 \r
                 try {\r
+                    int alignment = sect.getAlignment();\r
+                    if (this.ffsAttribDataAlignment < alignment) {\r
+                        this.ffsAttribDataAlignment = alignment;\r
+                    }\r
+                    alignSection(dataBuffer, dataBuffer.size(), alignment);\r
                     //\r
                     //  The last section don't need 4 byte ffsAligment.\r
                     //\r
@@ -812,6 +855,12 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
                 stringToGuid (this.ffsFileGuid, ffsHeader.name);\r
             }\r
 \r
+            //\r
+            // because we may have changed the ffsAttribDataAlignment, we need to refresh attributes\r
+            // \r
+            this.attributes &= ~(((byte)7) << 3);\r
+            this.attributes |= (((byte)this.ffsAttribDataAlignment) << 3);\r
+\r
             ffsHeader.ffsAttributes = this.attributes;\r
             if ((ffsHeader.fileType = stringToType(this.ffsFileType))== -1) {\r
                 throw new BuildException ("FFS_FILE_TYPE unknow!\n");\r
index e329c0e3eb06d6cfe21edd5cc85c6f87f798eb81..82844f080f1ace13cfb24432bd220266af50e217 100644 (file)
@@ -32,6 +32,7 @@ import org.apache.tools.ant.types.Commandline;
 import org.tianocore.common.logger.EdkLog;\r
 \r
 public class GenSectionTask extends Task implements EfiDefine, Section, FfsTypes {\r
+    private int alignment = 0;\r
     //\r
     // Tool name\r
     // \r
@@ -269,6 +270,18 @@ public class GenSectionTask extends Task implements EfiDefine, Section, FfsTypes
         this.sectFileList.add(task);\r
     }\r
     \r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
+\r
     public void toBuffer(DataOutputStream buffer){\r
         //\r
         // Search SectionList find earch section and call it's\r
index c110f3bc50b27f8e6cfd34bca66a7ee654daf8ab..9d53a21999a8065e0907aff2a9b40d9f948f7343 100644 (file)
@@ -25,6 +25,7 @@ import org.apache.tools.ant.BuildException;
  **/\r
 public class SectFile implements Section {\r
     private String fileName = ""; /// section file name\r
+    private int alignment = 0;\r
 \r
     /**\r
      Get method of ANT task/datatype for "FileName" attribute\r
@@ -44,6 +45,18 @@ public class SectFile implements Section {
         this.fileName = fileName;   \r
     }\r
 \r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
+\r
     public SectFile (){\r
     }\r
 \r
index 5fa8d7b1ee35968f1bf228e12d1286cf131007a6..ff4c6d6d113b88029b4fbcee7baaafb1f7cc5829 100644 (file)
@@ -19,5 +19,8 @@ import java.io.DataOutputStream;
  Section interface is for geting the contain buffer form compress, tool, and sectFile  \r
  **/\r
 public interface Section {\r
+    int alignment = 0;\r
     public void toBuffer (DataOutputStream buffer);\r
+    public void setAlignment(int alignment);\r
+    public int getAlignment();\r
 }
\ No newline at end of file
index 761a0efab041baffcb2ae979f6174eb2541b9302..ea320366b1c7d256432f829a92c84257b7ac0fe3 100644 (file)
@@ -32,6 +32,7 @@ import org.tianocore.common.logger.EdkLog;
  **/\r
 public class Tool implements EfiDefine, Section {\r
 \r
+    private int alignment = 0;\r
     private String toolName     = "";\r
     private ToolArg toolArgList = new ToolArg();\r
     private Input inputFiles = new Input();\r
@@ -247,6 +248,19 @@ public class Tool implements EfiDefine, Section {
     public synchronized int getRand() {\r
         return ran.nextInt();\r
     }\r
+\r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
+\r
 }\r
 \r
 \r
index 884a0d7453fcf1e9e518f02de42ed8f2569583af..dd86346b7f112d6c62747e2788fdfa998e51ad48 100644 (file)
@@ -347,6 +347,7 @@ public class FfsProcess {
     **/\r
     private void dealSection(int mode, Document doc, Element root, XmlCursor cursor, Vector<String> list) {\r
         String type = cursor.getAttributeText(new QName("SectionType"));\r
+        String alignment = cursor.getAttributeText(new QName("Alignment"));\r
         \r
         //\r
         // Judge if file is specified? Yes, just use the file, else call Build Macro\r
@@ -399,6 +400,9 @@ public class FfsProcess {
             } else {\r
                 ele.setAttribute("fileName", fileName);\r
             }\r
+            if (alignment != null) {\r
+                ele.setAttribute("Alignment", alignment);\r
+            }\r
             root.appendChild(ele);\r
         }\r
     }\r
index e240150c29c471bc42f1ce79686e42842d80f8d2..ae1ac7ec936fc3caf45151ff4af2fc63581b9068 100644 (file)
@@ -323,11 +323,7 @@ public class FrameworkBuildTask extends Task{
     }\r
 \r
     public void setType(String type) {\r
-        if (type.equalsIgnoreCase("clean") || type.equalsIgnoreCase("cleanall")) {\r
-            this.type = type.toLowerCase();\r
-        } else {\r
-            this.type = "all";\r
-        }\r
+        this.type = type.toLowerCase();\r
     }\r
     \r
     private void readTargetFile() throws EdkException{\r
index 2265d6ba05cbf2135505727ab0ff75a92b7f62e1..5aa717fbdd05882ddb58efde7afddf6b7e45471a 100644 (file)
@@ -327,10 +327,8 @@ public class GenBuildTask extends Ant {
 \r
                     if (type.equalsIgnoreCase("all") || type.equalsIgnoreCase("build")) {\r
                         applyBuild(targetList[i], toolchainList[j], fpdModuleId);\r
-                    } else if (type.equalsIgnoreCase("clean")) {\r
-                        applyClean(fpdModuleId);\r
-                    } else if (type.equalsIgnoreCase("cleanall")) {\r
-                        applyCleanall(fpdModuleId);\r
+                    } else {\r
+                        applyNonBuildTarget(fpdModuleId);\r
                     }\r
                 }\r
             }\r
@@ -675,6 +673,24 @@ public class GenBuildTask extends Ant {
         antCall(antFilename, null);\r
     }\r
 \r
+    private void applyNonBuildTarget(FpdModuleIdentification fpdModuleId){\r
+        //\r
+        // if it is CUSTOM_BUILD\r
+        // then call the exist BaseName_build.xml directly.\r
+        //\r
+        if (moduleId.getModuleType().equalsIgnoreCase("USER_DEFINED")) {\r
+            EdkLog.log(this, "Calling user-defined " + moduleId.getName() + "_build.xml");\r
+            \r
+            String antFilename = getProject().getProperty("MODULE_DIR") + File.separatorChar + moduleId.getName() + "_build.xml";\r
+            antCall(antFilename, this.type);\r
+            \r
+            return ;\r
+        }\r
+\r
+        String antFilename = getProject().getProperty("DEST_DIR_OUTPUT") + File.separatorChar + moduleId.getName() + "_build.xml";\r
+        antCall(antFilename, this.type);\r
+    }\r
+\r
     private void applyClean(FpdModuleIdentification fpdModuleId){\r
         //\r
         // if it is CUSTOM_BUILD\r
index 1e5c7744b557811323045b0813d6a6ac69af12de..ad2ee2cdd24ccf5d1c945c7d2c60757717513d2f 100644 (file)
@@ -159,7 +159,8 @@ public class PlatformBuildFileGenerator {
             // User Extension Post build\r
             //\r
             applyUserExtensionsPostBuild(document, root);\r
-            \r
+            applyUserExtensions(document, root);\r
+\r
             document.appendChild(rootComment);\r
             document.appendChild(root);\r
             //\r
@@ -630,7 +631,59 @@ public class PlatformBuildFileGenerator {
         \r
         root.appendChild(ele);\r
     }\r
-    \r
+\r
+    private void applyUserExtensions(Document document, Node root) {\r
+        Node[] nodeList = saq.getFpdUserExtensions();\r
+        for (int nodeIndex = 0; nodeIndex < nodeList.length; ++nodeIndex) {\r
+            Node node = nodeList[nodeIndex];\r
+            //\r
+            // User Extensions\r
+            //\r
+            root.appendChild(document.createComment("User Defined Target"));\r
+            Element ele = document.createElement("target");\r
+            ele.setAttribute("name", node.getAttributes().getNamedItem("Identifier").getNodeValue());\r
+\r
+            if (node != null) {\r
+                //\r
+                // For every Target and ToolChain\r
+                //\r
+                String[] targetList = GlobalData.getToolChainInfo().getTargets();\r
+                for (int i = 0; i < targetList.length; i++){\r
+                    String[] toolchainList = GlobalData.getToolChainInfo().getTagnames();\r
+                    for(int j = 0; j < toolchainList.length; j++){\r
+                        //\r
+                        // Prepare FV_DIR\r
+                        //\r
+                        String ffsCommonDir = project.getProperty("BUILD_DIR") + File.separatorChar \r
+                                        + targetList[i] + "_" \r
+                                        + toolchainList[j];\r
+                        File fvDir = new File(ffsCommonDir + File.separatorChar + "FV");\r
+                        Element fvEle = document.createElement("var");\r
+                        fvEle.setAttribute("name", "FV_DIR");\r
+                        fvEle.setAttribute("value", fvDir.getPath().replaceAll("(\\\\)", "/"));\r
+                        ele.appendChild(fvEle);\r
+\r
+                        Element targetDirEle = document.createElement("var");\r
+                        targetDirEle.setAttribute("name", "TARGET_DIR");\r
+                        targetDirEle.setAttribute("value", ffsCommonDir.replaceAll("(\\\\)", "/"));\r
+                        ele.appendChild(targetDirEle);\r
+\r
+                        NodeList childNodes = node.getChildNodes();\r
+                        for (int k = 0; k < childNodes.getLength(); k++) {\r
+                            Node childItem = childNodes.item(k);\r
+                            if (childItem.getNodeType() == Node.ELEMENT_NODE) {\r
+                                ele.appendChild(recursiveNode(childItem, document));\r
+                            }\r
+                        }\r
+\r
+                    }\r
+                }\r
+            }\r
+\r
+            root.appendChild(ele);\r
+        }\r
+    }\r
+\r
     private Element recursiveNode(Node node, Document document) {\r
         Element root = document.createElement(node.getNodeName());\r
         NamedNodeMap attr = node.getAttributes();\r
index 36eda95c3f4791cdb8b695da2d4432db13e475bd..b95c389592a051a011fa0d8e38e62c06d4a3fdd3 100644 (file)
@@ -1492,6 +1492,22 @@ public class SurfaceAreaQuery {
         return a.getDomNode();\r
     }\r
 \r
+    public Node[] getFpdUserExtensions() {\r
+        String[] xPath = new String[] { "/UserExtensions[@UserID='TianoCore' and not(@Identifier='1') and not(@Identifier='0')]" };\r
+\r
+        Object[] queryResult = get("PlatformSurfaceArea", xPath);\r
+        if (queryResult == null || queryResult.length == 0) {\r
+            return new Node[0];\r
+        }\r
+\r
+        Node[] nodeList = new Node[queryResult.length];\r
+        for (int i = 0; i < queryResult.length; ++i) {\r
+            UserExtensionsDocument.UserExtensions a =  (UserExtensionsDocument.UserExtensions)queryResult[i];\r
+            nodeList[i] = a.getDomNode();\r
+        }\r
+\r
+        return nodeList;\r
+    }\r
     /**\r
      * Retrieve FV image option information\r
      *\r
index 3f15bb6775924b33e8ef59486e29f23c3459f9d1..590bed818292e79392e09629d9a932e8634238c5 100644 (file)
@@ -8,5 +8,30 @@
 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 @REM\r
+@echo off\r
+\r
+set _ARGS= \r
+:check_arg\r
+if ""%1""=="""" goto arg_end\r
+if ""%1""==""-q"" goto ant_arg\r
+if ""%1""==""-v"" goto ant_arg\r
+if ""%1""==""-d"" goto ant_arg\r
+\r
+goto ant_target\r
+\r
+:ant_arg    \r
+    set _ARGS=%_ARGS% %1\r
+    shift\r
+    goto check_arg\r
+\r
+:ant_target\r
+    set _ARGS=%_ARGS% -DBUILD_TARGET=%1\r
+    shift\r
+    goto check_arg\r
+\r
+:arg_end\r
+ant -logger org.tianocore.build.global.GenBuildLogger -f %WORKSPACE%/build.xml %_ARGS%\r
+\r
+set _ARGS=\r
+@echo on\r
 \r
-ant -logger org.tianocore.build.global.GenBuildLogger -f %WORKSPACE%/build.xml %*\r
index cf10675f62317127b1006e40426f686ff94170ef..8d179d5eef07269b7d045ad2ac6f3281f20598d0 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -17,8 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <property environment="env" />\r
   \r
   <property name="WORKSPACE_DIR" value="${env.WORKSPACE}" />\r
-  \r
-  <!--property name="COMMON_FILE" value="${WORKSPACE_DIR}/Tools/Conf/Common.xml" /-->\r
+  <property name="BUILD_TARGET" value="all"/>\r
   \r
   <import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />\r
   \r
@@ -36,7 +35,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   </target>\r
   \r
   <target name="build">\r
-    <FrameworkBuild />\r
+    <echo message="TARGET: ${BUILD_TARGET}" level="info"/>\r
+    <FrameworkBuild type="${BUILD_TARGET}"/>\r
   </target>\r
 \r
   <target name="clean" depends="init">\r