X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FConf%2Fbuild_rule.template;h=83dd6a8fd0fd31447e70db637864a5a0f46c7111;hb=a7d376877f5d552dccc613099c8d6030dbef7ab4;hp=385f0202708d2f80839f0b295050d8ffd78b8241;hpb=f285eb1628e0e31470c127db83a890d57b9c6b86;p=mirror_edk2.git diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 385f020270..83dd6a8fd0 100644 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -64,6 +64,7 @@ # $(BIN_DIR) Common directory for executable files # $(FV_DIR) Directory to store flash image files # $(INC) Search path of current module +# $(INC_LIST) A file containing search pathes of current module # $(LIBS) Static library files of current module # $(_FLAGS) Tools flags of current module # $(MODULE_NAME) Current module name @@ -73,9 +74,17 @@ # $(TARGET) Target of current module (DEBUG/RELEASE) # $() Path of tool # $(EDK_TOOLS_PATH) Path of build tools -# $() File list of each file type +# $() File list of each file type # (Note: The macro name is derived from file type name. For example, -# C-Code-File will have C_CODE_FILE_LIST macro.) +# C-Code-File will have C_CODE_FILES macro.) +# $() Macro point to a file containing list of files of a file type +# ( +# Note: The macro and file name are derived from file type name. +# For example, C-Code-File will have C_CODE_FILES_LIST macro pointing +# to $(OUTPUT_DIR)/c_code_files.lst. The list file and macro name +# will be generated only when this macro is used in command line. +# This is intended to get over the long command line limitation. +# ) # # $(CP) copy command # $(MV) move command @@ -144,7 +153,7 @@ "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i - "$(ASM)" /Fo${dst} $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii + "$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i @@ -179,7 +188,7 @@ $(DEBUG_DIR)(+)${s_dir}(+)${s_base}.c - "$(PP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i + "$(VFRPP)" $(VFRPP_FLAGS) $(INC) ${src} > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i Trim --vfr-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i -mkdir ${d_path} > NUL 2>&1 "$(VFR)" $(VFR_FLAGS) --output-directory ${d_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii @@ -193,27 +202,42 @@ $(OUTPUT_DIR)(+)$(MODULE_NAME).lib - "$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} ${src} + "$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} $(OBJECT_FILES) - "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) ${src} + "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) $(OBJECT_FILES) [Static-Library-File] - ?.lib + *.lib - $(LIBS) $(MAKE_FILE) $(DEBUG_DIR)(+)$(MODULE_NAME).dll - "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) $(LIBS) ${src} + "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) - "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(LIBS) ${src} -\) $(DLINK2_FLAGS) + "$(DLINK)" -o ${dst} $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -\) $(DLINK2_FLAGS) + +[Static-Library-File.USER_DEFINED] + + *.lib + + + $(MAKE_FILE) + + + $(DEBUG_DIR)(+)$(MODULE_NAME) + + + "$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) + + + "$(DLINK)" $(DLINK_FLAGS) -\( $(DLINK_SPATH) $(STATIC_LIBRARY_FILES) -\) $(DLINK2_FLAGS) [Dynamic-Library-File] @@ -245,28 +269,44 @@ ?.asl, ?.Asl, ?.ASL - $(OUTPUT_DIR)(+)${s_base}.aml + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.aml $(MAKE_FILE) - "$(PP)" $(APP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i - "$(ASL)" -p ${dst} $(ASL_FLAGS) ${d_path}(+)${s_base}.i + Trim --asl-file -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i ${src} + "$(ASLPP)" $(ASLPP_FLAGS) $(INC) /I${s_path} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.i > $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii + "$(ASL)" -p ${dst} $(ASL_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.iii + +[C-Code-File.AcpiTable] + + ?.c + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi + + + $(MAKE_FILE) + + + "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src} + "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + GenFw -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll [Acpi-Table-Code-File] - ?.aslc + ?.aslc, ?.act - $(OUTPUT_DIR)(+)${s_base}.acpi + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.acpi $(MAKE_FILE) - "$(CC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(INC) ${src} - "$(DLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + "$(ASLCC)" /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(CC_FLAGS) $(ASLCC_FLAGS) $(INC) ${src} + "$(ASLDLINK)" /OUT:$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(ASLDLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj GenFw -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll [Masm16-Code-File] @@ -286,7 +326,7 @@ [Microcode-File] - ?.txt, ?.TXT, ?.Txt + ?.txt, ?.TXT, ?.Txt, ?.mut $(OUTPUT_DIR)(+)${s_base}.mcb @@ -302,24 +342,23 @@ $(OUTPUT_DIR)(+)$(MODULE_NAME).bin - GenFw -o ${dst} -j ${src} + GenFw -o ${dst} -j $(MICROCODE_BINARY_FILES) -$(CP) ${dst} $(BIN_DIR) -[Unicode-Text-File] +[EFI-Image-File] - *.uni, *.Uni, *.UNI + ?.efi, ?.Efi, ?.EFI - $(DEBUG_DIR)(+)AutoGen.c - $(DEBUG_DIR)(+)AutoGen.h -[EFI-Image-File] +[Unicode-Text-File] - ?.efi, ?.Efi, ?.EFI + *.uni, *.Uni, *.UNI + $(DEBUG_DIR)(+)AutoGen.c + $(DEBUG_DIR)(+)$(MODULE_NAME)StrDefs.h -