Update GenFw and Genfv tool to support Microcode and FvMap. And Update build rules...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 2 Aug 2007 05:26:55 +0000 (05:26 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 2 Aug 2007 05:26:55 +0000 (05:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3529 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Bin/Win32/GenFv.exe
BaseTools/Bin/Win32/GenFw.exe
BaseTools/Conf/build_rule.template

index 38417c5..a46e5e6 100755 (executable)
Binary files a/BaseTools/Bin/Win32/GenFv.exe and b/BaseTools/Bin/Win32/GenFv.exe differ
index 857ffbe..1083453 100755 (executable)
Binary files a/BaseTools/Bin/Win32/GenFw.exe and b/BaseTools/Bin/Win32/GenFw.exe differ
index eee3e0d..a45bf1f 100644 (file)
@@ -25,6 +25,7 @@ FileTypeMapping = {
     ".dxs"  :   "Dependency-Expression",
     ".Dxs"  :   "Dependency-Expression",
     ".DXS"  :   "Dependency-Expression",
+    ".TXT"  :   "MicorCode-Text",
     ".fv"   :   "FirmwareVolume",
     ".Fv"   :   "FirmwareVolume",
     ".FV"   :   "FirmwareVolume",
@@ -66,6 +67,7 @@ ObjectFileMapping = {
     "Acpi-Source-Language"          :   ".aml",
     "Acpi-Table-Source"             :   ".acpi",
     "Masm16-Code"                   :   ".com",
+    "MicorCode-Text"                :   ".bin",
 }
 
 DefaultToolCode = ["CC", "ASM", "SLINK", "DLINK", "PCH", "PP", "ASL", "ASMLINK"]
@@ -104,6 +106,7 @@ ToolChainFamilyMapping = {
     "Acpi-Source-Language"          :   ["MSFT", "INTEL"],
     "Acpi-Table-Source"             :   ["MSFT", "INTEL"],
     "Masm16-Code"                   :   ["MSFT"],
+    "MicorCode-Text"                :   ["MSFT", "INTEL"], 
 }
 
 ## Build rules for makefile
@@ -173,11 +176,18 @@ ${END}\t"$(CC)" /Fo$(@D)${_sep_}${fbase}.obj $(CC_FLAGS) $(INC) $(WORKSPACE)${_s
 
 "Masm16-Code" : '''\
 $(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.com : $(COMMON_DEPS)
-\tpushd .
+${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.com : $(WORKSPACE)${_sep_}${fdep}
+${END}\tpushd .
 \tcd $(OUTPUT_DIR)${_sep_}${fdir}
 \t"$(ASM)" /nologo /omf $(WORKSPACE)${_sep_}${fpath} /Bl"$(ASMLINK)" $(ASMLINK_FLAGS)
 \t-copy ${fbase}.com $(OUTPUT_DIR)${_sep_}${fbase}.com /Y & popd
 ''',
+
+"MicorCode-Text" : '''\
+$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.bin : $(COMMON_DEPS)
+${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.bin : $(WORKSPACE)${_sep_}${fdep}
+${END}\tGenFw -o $@ -m $(WORKSPACE)${_sep_}${fpath}
+''',
 },
 
 #