From 5d2a7f34d100c50b8fb91fb79f0abc687b0edc56 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Mon, 17 Feb 2020 11:03:09 +0300 Subject: [PATCH] fix conf.templates Signed-off-by: Sergey Isakov --- BaseTools/Conf/build_rule.template | 30 ++++++++++++++++++++++++++---- BaseTools/Conf/target.template | 2 +- BaseTools/Conf/tools_def.template | 1 + Conf/tools_def.txt | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 369b0acde..1aa05fff4 100644 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -106,15 +106,36 @@ # build_rule_version=0.1 # +[Cxx-Code-File] + + ?.cpp + ?.Cpp + ?.CPP + + + $(MAKE_FILE) + + + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + + "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src} + + + # For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues + @"$(CC)" $(CXX_FLAGS) -c -o ${dst} $(INC) ${src} + @"echo" [CPP] ${s_base} + + + @"$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src} + @"echo" [CPP] ${s_base} + [C-Code-File] ?.c ?.C ?.cc ?.CC - ?.cpp - ?.Cpp - ?.CPP $(MAKE_FILE) @@ -297,6 +318,7 @@ $(DEBUG_DIR)(+)$(MODULE_NAME).dll + "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK2_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST) @@ -496,7 +518,7 @@ @"echo" [MTOC-ACPI] $(MODULE_NAME) #@"$(STRIP)" ${src} @"$(MTOC)" -subsystem $(MODULE_TYPE) $(MTOC_FLAGS) $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.dll $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi - @"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.efi $(GENFW_FLAGS) + @"$(GENFW)" -o ${dst} -c $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.pecoff $(GENFW_FLAGS) @"echo" [GENFW-ACPI] $(MODULE_NAME) diff --git a/BaseTools/Conf/target.template b/BaseTools/Conf/target.template index 758e96aac..c8ba2be9a 100755 --- a/BaseTools/Conf/target.template +++ b/BaseTools/Conf/target.template @@ -51,7 +51,7 @@ TOOL_CHAIN_CONF = Conf/tools_def.txt # TAGNAME List Optional Specify the name(s) of the tools_def.txt TagName to use. # If not specified, all applicable TagName tools will be # used for the build. The list uses space character separation. -TOOL_CHAIN_TAG = VS2015x86 +TOOL_CHAIN_TAG = VS2017 # MAX_CONCURRENT_THREAD_NUMBER NUMBER Optional The number of concurrent threads. If not specified or set # to zero, tool automatically detect number of processor diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 9dd45f441..da437cef5 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -2408,6 +2408,7 @@ RELEASE_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -Wno-unused-but-s *_GCC53_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS),-m,elf_x86_64 *_GCC53_X64_ASM_FLAGS = DEF(GCC53_ASM_FLAGS) -m64 *_GCC53_X64_CC_FLAGS = DEF(GCC53_X64_CC_FLAGS) ENV(GCC53_X64_EXTRA_CC_FLAGS) +*_GCC53_X64_CXX_FLAGS = DEF(GCC53_X64_CC_FLAGS) ENV(GCC53_X64_EXTRA_CC_FLAGS) *_GCC53_X64_DLINK_FLAGS = DEF(GCC53_X64_DLINK_FLAGS) DEF(GCC53_X64_CC_FLAGS) ENV(GCC53_X64_EXTRA_CC_FLAGS) *_GCC53_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS) *_GCC53_X64_OBJCOPY_FLAGS = diff --git a/Conf/tools_def.txt b/Conf/tools_def.txt index 020e6bcb3..da437cef5 100644 --- a/Conf/tools_def.txt +++ b/Conf/tools_def.txt @@ -2830,7 +2830,7 @@ RELEASE_RVCTCYGWIN_ARM_CC_FLAGS = "$(CCPATH_FLAG)" $(ARCHCC_FLAGS) $(PLATFORM_F ################## # NASM tool definitions ################## -*_*_*_NASM_PATH = ENV(NASM_PREFIX)\nasm +*_*_*_NASM_PATH = ENV(NASM_PREFIX)/nasm # NASMB uses NASM produce a .bin from a .nasmb NASM source file *_*_*_NASMB_FLAGS = -f bin