From 37de70b764200718cc39a21abc491c335e3da7b3 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 22 Nov 2017 15:42:25 +0800 Subject: BaseTools: Update Makefile to support FFS file generation Update Makefile to support FFS file generation with new build option --genfds-multi-thread. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/GenFds/VerSection.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'BaseTools/Source/Python/GenFds/VerSection.py') diff --git a/BaseTools/Source/Python/GenFds/VerSection.py b/BaseTools/Source/Python/GenFds/VerSection.py index ad995d314b..e29029980f 100644 --- a/BaseTools/Source/Python/GenFds/VerSection.py +++ b/BaseTools/Source/Python/GenFds/VerSection.py @@ -1,7 +1,7 @@ ## @file # process Version section generation # -# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -48,7 +48,7 @@ class VerSection (VerSectionClassObject): # @param Dict dictionary contains macro and its value # @retval tuple (Generated file name, section alignment) # - def GenSection(self, OutputPath, ModuleName, SecNum, KeyStringList, FfsInf=None, Dict={}): + def GenSection(self, OutputPath, ModuleName, SecNum, KeyStringList, FfsInf=None, Dict={}, IsMakefile = False): # # Prepare the parameter of GenSection # @@ -65,7 +65,7 @@ class VerSection (VerSectionClassObject): # Get String Data StringData = '' if self.StringData != None: - StringData = self.StringData + StringData = self.StringData elif self.FileName != None: FileNameStr = GenFdsGlobalVariable.ReplaceWorkspaceMacro(self.FileName) FileNameStr = GenFdsGlobalVariable.MacroExtend(FileNameStr, Dict) @@ -75,9 +75,8 @@ class VerSection (VerSectionClassObject): FileObj.close() else: StringData = '' - GenFdsGlobalVariable.GenerateSection(OutputFile, [], 'EFI_SECTION_VERSION', - Ver=StringData, BuildNumber=self.BuildNum) + Ver=StringData, BuildNumber=self.BuildNum, IsMakefile=IsMakefile) OutputFileList = [] OutputFileList.append(OutputFile) return OutputFileList, self.Alignment -- cgit v1.2.3