diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 20:56:12 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 20:56:12 +0000 |
commit | 75d0c5b183b87b2fabc1a55496f82364da29c154 (patch) | |
tree | b16e12cc7397ab571e607f3b6abe3f329f8f7063 /Tools | |
parent | 03fed93ef9ee6efbb6f1d4cf225404e2bf698fb1 (diff) | |
download | edk2-75d0c5b183b87b2fabc1a55496f82364da29c154.zip edk2-75d0c5b183b87b2fabc1a55496f82364da29c154.tar.gz edk2-75d0c5b183b87b2fabc1a55496f82364da29c154.tar.bz2 |
Add a macro for GCC Assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@268 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Conf/BuildMacro.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml index b8d3cd5..b3a6ff1 100644 --- a/Tools/Conf/BuildMacro.xml +++ b/Tools/Conf/BuildMacro.xml @@ -283,6 +283,64 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </macrodef>
<!--
+ GCC Assembly
+ -->
+ <macrodef name="Build_GCC_Assembly_Code">
+ <attribute name="FILEPATH"/>
+ <attribute name="FILENAME"/>
+ <attribute name="FILEEXT" default="s"/>
+
+ <element name="EXTRA.INC" optional="yes"/>
+ <element name="EXTRA.ARG" optional="yes"/>
+
+ <sequential>
+ <mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
+
+ <if>
+ <available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
+ <then>
+ <makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
+ <input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
+ <includepath path="${WORKSPACE_DIR}"/>
+ <includepath path="${MODULE_DIR}"/>
+ <includepath path="${MODULE_DIR}/${ARCH}"/>
+ <EXTRA.INC/>
+ </makedeps>
+ </then>
+ </if>
+
+ <OnDependency>
+ <sourcefiles>
+ <file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
+ </sourcefiles>
+ <targetfiles>
+ <file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
+ </targetfiles>
+
+ <sequential>
+
+ <cc userdefine="on">
+ <command type="ASM" includepathDelimiter="-I">
+ <EXTRA.INC/>
+
+ <argument value="${ASM_FLAGS}"/>
+ <EXTRA.ARG/>
+ <!-- <argument value="-o ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
+ <OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
+
+ <fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
+ </command>
+ </cc>
+ </sequential>
+ </OnDependency>
+ <!--
+ for library generation later
+ -->
+ <bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
+ </sequential>
+ </macrodef>
+
+ <!--
IPF Assembly
-->
<macrodef name="Build_IPF_Assembly_Code">
|