diff options
Diffstat (limited to 'BaseTools/Conf/build_rule.template')
-rw-r--r-- | BaseTools/Conf/build_rule.template | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index e389ede4b2..2cabd4fd39 100644 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -38,6 +38,7 @@ FileTypeMapping = { ".asl" : "Acpi-Source-Language", ".Asl" : "Acpi-Source-Language", ".ASL" : "Acpi-Source-Language", + ".aslc" : "Acpi-Table-Source", ".obj" : "Object", ".o" : "Object", ".lib" : "Static-Library", @@ -46,6 +47,22 @@ FileTypeMapping = { ".so" : "Dynamic-Library", } +ObjectFileMapping = { + "C-Code" : ".obj", +# "C-Header" : ".gch", + "Masm-Code" : ".obj", + "Iasm-Code" : ".obj", # IPF assembly code + "Gasm-Code" : ".obj", # GNU assembly code + "Visual-Form-Representation" : ".obj", + "Preprocessed-Code" : ".obj", + "Object" : ".dll", + "Static-Library" : ".dll", + "Dynamic-Library" : ".efi", + "Dependency-Expression" : ".depex", + "Acpi-Source-Language" : ".aml", + "Acpi-Table-Source" : ".acpi", +} + DefaultToolCode = ["CC", "ASM", "SLINK", "DLINK", "PCH", "PP", "ASL"] ToolCodeMapping = { @@ -60,6 +77,8 @@ ToolCodeMapping = { "Object" : ["SLINK"], "Static-Library" : ["DLINK"], "Dependency-Expression" : ["PP"], + "Acpi-Source-Language" : ["PP", "ASL"], + "Acpi-Table-Source" : ["CC", "DLINK"], } ToolChainFamilyMapping = { @@ -124,6 +143,23 @@ ${END}\t"$(PP)" $(VFRPP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep \tVfrCompile -od $(DEBUG_DIR)${_sep_}${fdir} $(@D)${_sep_}${fbase}.iii \t"$(CC)" /Fo$@ $(CC_FLAGS) $(INC) $(DEBUG_DIR)${_sep_}${fdir}${_sep_}${fbase}.c ''', + +"Acpi-Source-Language" : +''' +$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(COMMON_DEPS) +${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.aml : $(WORKSPACE)${_sep_}${fdep} +${END}\t"$(PP)" $(APP_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} > $(@D)${_sep_}${fbase}.i +\t"$(ASL)" /nologo /Fo$@ $(@D)${_sep_}${fbase}.i +''', + +"Acpi-Table-Source" : +''' +$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(COMMON_DEPS) +${BEGIN}$(OUTPUT_DIR)${_sep_}${fdir}${_sep_}${fbase}.acpi : $(WORKSPACE)${_sep_}${fdep} +${END}\t"$(CC)" /Fo$(@D)${_sep_}${fbase}.obj $(CC_FLAGS) $(INC) $(WORKSPACE)${_sep_}${fpath} +\t"$(DLINK)" /out:$(@D)${_sep_}${fbase}.dll $(DLINK_FLAGS) $(DLINK_SPATH) $(LIBS) +\tGenFw -o $@ -c $(@D)${_sep_}${fbase}.dll +''', }, # |