diff options
author | jchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 02:44:54 +0000 |
---|---|---|
committer | jchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 02:44:54 +0000 |
commit | 473f57d42eb9934ce612f1ebde94754276b84ae7 (patch) | |
tree | 73adf0fdee36723d607bc504631690e6446d518d /Tools/Conf | |
parent | c84c226d0d5d1a8ff9859c0507d4fe4773eb949d (diff) | |
download | edk2-platforms-473f57d42eb9934ce612f1ebde94754276b84ae7.tar.xz |
Add method for Microcode building
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1447 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Conf')
-rw-r--r-- | Tools/Conf/BuildMacro.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml index e195408918..bad774ec4b 100644 --- a/Tools/Conf/BuildMacro.xml +++ b/Tools/Conf/BuildMacro.xml @@ -1102,13 +1102,29 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.bin"/>
</sequential>
</macrodef>
+ <!--
+ Microcode
+ -->
+ <macrodef name="Build_MICROCODE">
+ <attribute name="FILEPATH"/>
+ <attribute name="FILENAME"/>
+ <attribute name="FILEEXT" default="TXT"/>
+
+ <element name="EXTRA.INC" optional="yes"/>
+ <element name="EXTRA.ARG" optional="yes"/>
+
+ <sequential>
+ <mkdir dir="${BUILD_DIR}/${TARGET}_${TOOLCHAIN}/Microcode"/>
+ <flashmap MCIFile="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" MCOFILE="${BUILD_DIR}/${TARGET}_${TOOLCHAIN}/Microcode/@{FILENAME}.bin"/>
+ </sequential>
+ </macrodef>
<!--
Graphics (bmp, ...)
-->
<macrodef name="Build_Graphics">
<attribute name="FILEPATH"/>
- <attribute name="FILENAME"/>
+ <attribute name="FILENAME"/>
<attribute name="FILEEXT" default="bmp"/>
<element name="EXTRA.INC" optional="yes"/>
|