mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
2127f4dff2
commit
7b2b99a342
Binary file not shown.
Binary file not shown.
|
@ -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}
|
||||
''',
|
||||
},
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue