From e2778dfe81a36cb5174ae5d18710cd6a6882cf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Ha=CC=88user?= <8659494+mhaeuser@users.noreply.github.com> Date: Sat, 15 Apr 2023 19:57:36 +0200 Subject: [PATCH] BaseTools/build_rule: Drop deprecated ASM16 definition --- BaseTools/Conf/build_rule.template | 35 +------------------- BaseTools/Source/Python/build/BuildReport.py | 2 -- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 7a85d73e09..a18d3f58a4 100755 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -548,39 +548,6 @@ "$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.pecoff ImageTool GetAcpi -o ${dst} $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.pecoff -[Masm16-Code-File] - - ?.asm16, ?.Asm16, ?.ASM16, ?.s16, ?.S16 - - - $(MAKE_FILE) - - - $(OUTPUT_DIR)(+)${s_base}.com - - - Trim --asm-file -o ${d_path}(+)${s_base}.i -i $(INC_LIST) ${src} - "$(PP)" $(DEPS_FLAGS) $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.ii - Trim --source-code --convert-hex --trim-long -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.ii - cd $(OUTPUT_DIR)(+)${s_dir} - "$(ASM16)" /nologo /c /omf $(ASM16_FLAGS) $(INC) /Fo$(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj ${d_path}(+)${s_base}.iii - "$(ASMLINK)" $(ASMLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj,${dst},,,, - - - Trim --asm-file -o {d_path}(+)${s_base}.i -i $(INC_LIST) ${src} - "$(PP)" $(DEPS_FLAGS) $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.ii - Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.ii - "$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii - "$(DLINK)" -o ${dst} $(DLINK_FLAGS) --start-group $(DLINK_SPATH) $(LIBS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj --end-group - - - Trim --asm-file -o ${d_path}(+)${s_base}.i -i $(INC_LIST) ${src} - "$(PP)" $(DEPS_FLAGS) $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.ii - Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.ii - "$(ASM)" -o $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii - "$(SLINK)" $(SLINK_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj - otool -t $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.slib | hex2bin.py ${dst} - [Nasm-to-Binary-Code-File] @@ -597,7 +564,7 @@ "$(PP)" $(DEPS_FLAGS) $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.ii Trim --source-code --convert-hex -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.ii "$(NASM)" -I${s_path}(+) -l ${d_path}(+)${s_base}.lst $(NASMB_FLAGS) $(NASM_INC) -o $dst ${d_path}(+)${s_base}.iii - # copy the output file with .com postfix that be same to the output file of .asm16 + # copy the output file with .com postfix that be same to the output file of .nasmb $(CP) ${dst} $(OUTPUT_DIR)(+)${s_base}.com [Microcode-File.USER_DEFINED, Microcode-File.Microcode] diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index b9a720d605..7ec6abdf18 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -508,8 +508,6 @@ class BuildFlagsReport(object): BuildOptions["ASLCC"] = 1 BuildOptions["ASLDLINK"] = 1 BuildOptions["CC"] = 1 - elif Ext in [".asm16"]: - BuildOptions["ASMLINK"] = 1 BuildOptions["SLINK"] = 1 BuildOptions["DLINK"] = 1