From: lgao4 Date: Thu, 2 Aug 2007 05:26:55 +0000 (+0000) Subject: Update GenFw and Genfv tool to support Microcode and FvMap. And Update build rules... X-Git-Tag: edk2-stable201903~22432 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=7b2b99a342b3d5fcf4bc050652c15ff2441fcc08;hp=2127f4dff223b91df888fae42989b2b59f8b3f04 Update GenFw and Genfv tool to support Microcode and FvMap. And Update build rules for micro code file type. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3529 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/BaseTools/Bin/Win32/GenFv.exe b/BaseTools/Bin/Win32/GenFv.exe index 38417c599f..a46e5e6b1c 100755 Binary files a/BaseTools/Bin/Win32/GenFv.exe and b/BaseTools/Bin/Win32/GenFv.exe differ diff --git a/BaseTools/Bin/Win32/GenFw.exe b/BaseTools/Bin/Win32/GenFw.exe index 857ffbeddd..10834538d2 100755 Binary files a/BaseTools/Bin/Win32/GenFw.exe and b/BaseTools/Bin/Win32/GenFw.exe differ diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index eee3e0df48..a45bf1f800 100644 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -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} +''', }, #