Add clean and cleanall target for Fat and Logo customized build xml.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 13:52:58 +0000 (13:52 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 13:52:58 +0000 (13:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1468 6f19259b-4bc3-4df7-8a09-765794883524

EdkFatBinPkg/Fat_build.xml
EdkNt32Pkg/Logo/Logo_build.xml

index 4eb2677..23bcb65 100644 (file)
@@ -19,18 +19,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <!-- All Properties --> \r
   <property name="BASE_NAME" value="Fat" /> \r
   \r
-  <!-- Default target --> \r
-  <target name="main" depends="libraries, sourcefiles, sections, output" /> \r
-  <!-- Compile all dependency Library instances. --> \r
-  <target name="libraries" />\r
+  <!-- Default target -->\r
+  <target name="main">\r
+    <copy file="${MODULE_DIR}/${ARCH}/${BASE_NAME}.FFS" \r
+      tofile="${BIN_DIR}/${FILE_GUID}-${BASE_NAME}.FFS" />\r
+  </target>\r
 \r
-  <target name="sourcefiles" />\r
-  \r
-  <target name="sections" />\r
+  <target name="clean">\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>\r
+    </delete>\r
+  </target>\r
 \r
-  <target name="output">\r
-    <copy file="${MODULE_DIR}\${ARCH}\${BASE_NAME}.FFS" \r
-      tofile="${BIN_DIR}\${FILE_GUID}-${BASE_NAME}.FFS" />\r
+  <target name="cleanall">\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>\r
+    </delete>\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_DEBUG}" includes="**/*"/>\r
+    </delete>\r
   </target>\r
-    \r
+\r
 </project>\r
index 32e340d..1706b53 100644 (file)
@@ -20,30 +20,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <property name="BASE_NAME" value="Logo" /> \r
   \r
   <!-- Default target --> \r
-  <target name="main" depends="libraries, sourcefiles, sections, output" /> \r
-  <!-- Compile all dependency Library instances. --> \r
-  <target name="libraries" />\r
+  <target name="main" depends="sourcefiles, sections, output" /> \r
 \r
   <target name="sourcefiles">\r
-    <copy file="${MODULE_DIR}\Logo.bmp" \r
-      tofile="${DEST_DIR_OUTPUT}\Logo.bmp" />\r
-    <!--\r
-    <Build_Graphics FILENAME="logo" FILEPATH="." FILEEXT="bmp"></Build_Graphics>\r
-    -->\r
+    <copy file="${MODULE_DIR}/Logo.bmp" \r
+      tofile="${DEST_DIR_OUTPUT}/Logo.bmp" />\r
   </target>\r
   \r
   <target name="sections">\r
     <OnDependency>\r
       <sourcefiles>\r
-        <file name="${DEST_DIR_OUTPUT}\logo.bmp"/>\r
+        <file name="${DEST_DIR_OUTPUT}/logo.bmp"/>\r
       </sourcefiles>\r
       <targetfiles>\r
-        <file name="${DEST_DIR_OUTPUT}\Logo.bin"/>\r
+        <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>\r
       </targetfiles>\r
       \r
       <sequential>\r
-        <gensection inputfile="${DEST_DIR_OUTPUT}\logo.bmp" \r
-          outputfile="${DEST_DIR_OUTPUT}\Logo.bin\r
+        <gensection inputfile="${DEST_DIR_OUTPUT}/logo.bmp" \r
+          outputfile="${DEST_DIR_OUTPUT}/Logo.sec\r
           sectiontype="EFI_SECTION_RAW" />\r
       </sequential>\r
     </OnDependency>\r
@@ -52,24 +47,37 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   <target name="output">\r
     <OnDependency>\r
       <sourcefiles>\r
-        <file name="${DEST_DIR_OUTPUT}\Logo.bin"/>\r
+        <file name="${DEST_DIR_OUTPUT}/Logo.sec"/>\r
       </sourcefiles>\r
       <targetfiles>\r
-        <file name="${BIN_DIR}\${FILE_GUID}-Logo.FFS"/>\r
+        <file name="${BIN_DIR}/${FILE_GUID}-Logo.FFS"/>\r
       </targetfiles>\r
-      \r
+\r
       <sequential>\r
-        <genffsfile BaseName="Logo" ffsATTRIBCHECKSUM="TRUE"\r
-          ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM" fileGuid="${FILE_GUID}"\r
-          outputDir="${BIN_DIR}">\r
-          <compress compressName="dummy">\r
-            <tool outputPath="${DEST_DIR_OUTPUT}" toolName="${WORKSPACE_DIR}\Tools\Bin\GenCRC32Section">\r
-              <input file="${DEST_DIR_OUTPUT}\Logo.bin" />\r
-            </tool>\r
-          </compress>\r
+        <genffsfile BaseName="Logo" \r
+                    ffsATTRIBCHECKSUM="TRUE"\r
+                    ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM" \r
+                    fileGuid="${FILE_GUID}"\r
+                    outputDir="${BIN_DIR}">\r
+          <sectFile fileName="${DEST_DIR_OUTPUT}/Logo.sec"/>\r
         </genffsfile>\r
       </sequential>\r
     </OnDependency>\r
   </target>\r
-    \r
+\r
+  <target name="clean">\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>\r
+    </delete>\r
+  </target>\r
+\r
+  <target name="cleanall">\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>\r
+    </delete>\r
+    <delete includeemptydirs="true">\r
+       <fileset dir="${DEST_DIR_DEBUG}" includes="**/*"/>\r
+    </delete>\r
+  </target>\r
+\r
 </project>\r