Updated task GenEfi to support SEC component type.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@524 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml
index 748f527..4446d59 100644
--- a/Tools/Conf/BuildMacro.xml
+++ b/Tools/Conf/BuildMacro.xml
@@ -295,10 +295,14 @@
</command>
</cc>
<replaceregexp file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.i"
- match="^(#line\ +1\ +.*@{FILEPATH}/@{FILENAME}\.@{FILEEXT}").+\1"
+ match="^(#line +1 +.*@{FILEPATH}/@{FILENAME}\.@{FILEEXT}").+\1"
replace="; Source: ${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
flags="gs"/>
<replaceregexp file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.i"
+ match="^(#line .*)$"
+ replace="; \1"
+ byline="true"/>
+ <replaceregexp file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.i"
match="([^_a-zA-Z])0x([0-9a-fA-F]+)"
replace="\10\2h"
flags="g"
@@ -799,6 +803,12 @@
</targetfiles>
<sequential>
+ <if>
+ <equals arg1="${COMPONENT_TYPE}" arg2="SEC"/>
+ <then>
+ <var name="COMPONENT_TYPE" value="SECURITY_CORE"/>
+ </then>
+ </if>
<fwimage componenttype="${COMPONENT_TYPE}" outImage="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"
peImage="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" time="0"/>
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}/@{FILENAME}.efi" />