Add clean and cleanall target for Fat and Logo customized build xml.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1468 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2006-09-05 13:52:58 +00:00
parent 7c9e5810d0
commit aa64626987
2 changed files with 52 additions and 37 deletions

View File

@ -20,17 +20,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<property name="BASE_NAME" value="Fat" /> <property name="BASE_NAME" value="Fat" />
<!-- Default target --> <!-- Default target -->
<target name="main" depends="libraries, sourcefiles, sections, output" /> <target name="main">
<!-- Compile all dependency Library instances. --> <copy file="${MODULE_DIR}/${ARCH}/${BASE_NAME}.FFS"
<target name="libraries" /> tofile="${BIN_DIR}/${FILE_GUID}-${BASE_NAME}.FFS" />
</target>
<target name="sourcefiles" /> <target name="clean">
<delete includeemptydirs="true">
<fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
</delete>
</target>
<target name="sections" /> <target name="cleanall">
<delete includeemptydirs="true">
<target name="output"> <fileset dir="${DEST_DIR_OUTPUT}" excludes="*.xml" includes="**/*"/>
<copy file="${MODULE_DIR}\${ARCH}\${BASE_NAME}.FFS" </delete>
tofile="${BIN_DIR}\${FILE_GUID}-${BASE_NAME}.FFS" /> <delete includeemptydirs="true">
<fileset dir="${DEST_DIR_DEBUG}" includes="**/*"/>
</delete>
</target> </target>
</project> </project>

View File

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