summaryrefslogtreecommitdiff
path: root/Tools/Conf
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-04 03:09:01 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-04 03:09:01 +0000
commit46dde08c47d920ae3bebeda086f5573fc5d949da (patch)
tree05ae0326fb03e9bd561c5e6ec0100c6454d454c2 /Tools/Conf
parentc44794ef2236bd701cd3bb25ba33dd7c734724a8 (diff)
downloadedk2-platforms-46dde08c47d920ae3bebeda086f5573fc5d949da.tar.xz
Add to the rules to generate TE section
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@727 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Conf')
-rw-r--r--Tools/Conf/BuildMacro.xml106
1 files changed, 53 insertions, 53 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml
index 8baeab9375..4722908931 100644
--- a/Tools/Conf/BuildMacro.xml
+++ b/Tools/Conf/BuildMacro.xml
@@ -630,6 +630,59 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<!--
EFI_SECTION_PE32
-->
+
+ <macrodef name="EFI_SECTION_TE">
+ <attribute name="FILEPATH"/>
+ <attribute name="FILENAME"/>
+ <attribute name="FILEEXT" default="" />
+
+ <element name="PRE.PROCESS" optional="yes"/>
+ <element name="POST.PROCESS" optional="yes"/>
+
+ <sequential>
+ <PRE.PROCESS/>
+ <if>
+ <not>
+ <equals arg1="${LIBS}" arg2=""/>
+ </not>
+
+ <then>
+ <GenDll FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="">
+ <LIB.ARG></LIB.ARG>
+ <LINK.ARG></LINK.ARG>
+ </GenDll>
+
+ <GenEfi FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="dll"/>
+ </then>
+ </if>
+
+ <OnDependency>
+ <sourcefiles>
+ <file name="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
+ </sourcefiles>
+ <targetfiles>
+ <file name="${DEST_DIR_OUTPUT}/@{FILENAME}.tes"/>
+ </targetfiles>
+
+ <sequential>
+ <copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${BIN_DIR}/@{FILENAME}.efi" />
+ <copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}/@{FILENAME}.efi" />
+ <genteimage Dump="false" Verbose="false" OutputDir="" OutputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.te" InputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
+ <!--
+ <exec executable="${GENTEIMAGE}">
+ <arg line="-o ${DEST_DIR_OUTPUT}/@{FILENAME}.te ${DEST_DIR_OUTPUT}/@{FILENAME}.efi" />
+ </exec>
+ -->
+ <copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.te" tofile="${BIN_DIR}/@{FILENAME}.te" />
+ <gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.te"
+ outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.tes"
+ sectiontype="EFI_SECTION_TE"/>
+ <POST.PROCESS/>
+ </sequential>
+ </OnDependency>
+ </sequential>
+ </macrodef>
+
<macrodef name="EFI_SECTION_PE32">
<attribute name="FILEPATH"/>
<attribute name="FILENAME"/>
@@ -868,59 +921,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<!--
EFI_SECTION_TE
-->
- <macrodef name="EFI_SECTION_TE">
- <attribute name="FILEPATH"/>
- <attribute name="FILENAME"/>
- <attribute name="FILEEXT" default="" />
-
- <element name="PRE.PROCESS" optional="yes"/>
- <element name="POST.PROCESS" optional="yes"/>
-
- <sequential>
- <PRE.PROCESS/>
-
- <if>
- <not>
- <!-- TBD ${OBJECTS} -->
- <equals arg1="${LIBS}" arg2=""/>
- </not>
-
- <then>
- <GenDll FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="">
- <LIB.ARG></LIB.ARG>
- <LINK.ARG></LINK.ARG>
- </GenDll>
-
- <GenEfi FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="dll"/>
- </then>
- </if>
-
- <OnDependency>
- <sourcefiles>
- <file name="${DEST_DIR_OUTPUT}\@{FILENAME}.efi"/>
- </sourcefiles>
- <targetfiles>
- <file name="${DEST_DIR_OUTPUT}\@{FILENAME}.tes"/>
- </targetfiles>
-
- <sequential>
- <copy file="${DEST_DIR_OUTPUT}\@{FILENAME}.efi" tofile="${BIN_DIR}\@{FILENAME}.efi" />
- <copy file="${DEST_DIR_OUTPUT}\@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}\@{FILENAME}.efi" />
-
- <exec executable="${GENTEIMAGE}">
- <arg line="-o ${DEST_DIR_OUTPUT}\@{FILENAME}.te ${DEST_DIR_OUTPUT}\@{FILENAME}.efi" />
- </exec>
-
- <copy file="${DEST_DIR_OUTPUT}\@{FILENAME}.te" tofile="${BIN_DIR}\@{FILENAME}.te" />
-
- <gensection inputfile="${DEST_DIR_OUTPUT}\@{FILENAME}.te"
- outputfile="${DEST_DIR_OUTPUT}\@{FILENAME}.tes"
- sectiontype="EFI_SECTION_TE"/>
- <POST.PROCESS/>
- </sequential>
- </OnDependency>
- </sequential>
- </macrodef>
<!--