From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=yonghong.zhu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6808122637DEA for ; Thu, 19 Apr 2018 05:20:10 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2018 05:20:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,469,1517904000"; d="scan'208";a="34848347" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 19 Apr 2018 05:20:09 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Apr 2018 05:20:09 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Apr 2018 05:20:09 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.6]) with mapi id 14.03.0319.002; Thu, 19 Apr 2018 20:20:06 +0800 From: "Zhu, Yonghong" To: "Carsey, Jaben" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Zhu, Yonghong" Thread-Topic: [PATCH v1 1/1] BaseTools: remove PlatformClass as it's not used Thread-Index: AQHT12D+uW6dOjL/E0GEAhf/oeFMFKQIAqsg Date: Thu, 19 Apr 2018 12:20:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH v1 1/1] BaseTools: remove PlatformClass as it's not used X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 12:20:10 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The makefile also need update. Best Regards, Zhu Yonghong -----Original Message----- From: Carsey, Jaben=20 Sent: Thursday, April 19, 2018 6:03 AM To: edk2-devel@lists.01.org Cc: Gao, Liming ; Zhu, Yonghong Subject: [PATCH v1 1/1] BaseTools: remove PlatformClass as it's not used Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey --- BaseTools/Source/Python/CommonDataClass/PlatformClass.py | 456 -----------= --------- 1 file changed, 456 deletions(-) diff --git a/BaseTools/Source/Python/CommonDataClass/PlatformClass.py b/Bas= eTools/Source/Python/CommonDataClass/PlatformClass.py deleted file mode 100644 index a93d1ce2a1db..000000000000 --- a/BaseTools/Source/Python/CommonDataClass/PlatformClass.py +++ /dev/null @@ -1,456 +0,0 @@ -## @file -# This file is used to define a class object to describe a platform -# -# = Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
-# T= his program and the accompanying materials -# are licensed and made availab= le under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may= be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -#= WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLI= ED. - -## -# Import Modules -# -from CommonClass import * - -## SkuInfoListClass -# -# This class defined sku info list item used in platform file -# -# @param= IncludeStatementClass: Inherited from IncludeStatementClass class -# -# @var SkuInfoList: To store value for SkuInfoList, it is a s= et structure as -# { SkuName : SkuId } -# -class SkuInfoListClass(IncludeStatementClass): - def __init__(self): - IncludeStatementClass.__init__(self) - self.SkuInfoList =3D {} - -## PlatformHeaderClass -# -# This class defined header items used in Platform file -#=20 -# @param IdentificationClass: Inherited from IdentificationClass class -# @param CommonHeaderClass: Inherited from CommonHeaderClass class -# @param DefineClass: Inherited from DefineClass class -# -# @var DscSpecification: To store value for DscSpecification -# @var SupArchList: To store value for SupArchList, selection= scope is in below list -# EBC | IA32 | X64 | IPF | ARM | PPC | AARC= H64 -# @var BuildTargets: To store value for BuildTargets, selectio= n scope is in below list -# RELEASE | DEBUG -# @var IntermediateDirectories: To store value for IntermediateDirectorie= s, selection scope is in below list -# MODULE | UNIFIED -# @var OutputDirectory: To store value for OutputDirectory -# @var ForceDebugTarget: To store value for ForceDebugTarget -# @var SkuIdName: To store value for SkuIdName -# @var BuildNumber: To store value for BuildNumber -# @var MakefileName: To store value for MakefileName -# @var ClonedFrom: To store value for ClonedFrom, it is a li= st structure as -# [ ClonedRecordClass, ... ] -# -class PlatformHeaderClass(IdentificationClass, CommonHeaderClass, DefineCl= ass): - def __init__(self): - IdentificationClass.__init__(self) - CommonHeaderClass.__init__(self) - DefineClass.__init__(self) - self.DscSpecification =3D '' - self.SupArchList =3D [] - self.BuildTargets =3D [] - self.IntermediateDirectories =3D '' - self.OutputDirectory =3D '' = =20 - self.ForceDebugTarget =3D '' - self.SkuIdName =3D [] - self.BuildNumber =3D '' - self.MakefileName =3D '' - self.ClonedFrom =3D [] - -## PlatformFlashDefinitionFileClass -# -# This class defined FlashDefinitionFile item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var Id: To store value for Id -# @var UiName: To store value for UiName -# @var Preferred: To store value for Preferred -# @var FilePath: To store value for FilePath -# -class PlatformFlashDefinitionFileClass(object): - def __init__(self): - self.Id =3D '' - self.UiName =3D '' - self.Preferred =3D False - self.FilePath =3D '' - -## BuildScriptClass -# -# This class defined PREBUILD/POSTBUILD item used in platform file -# -# @param object: Inherited from object class -# -# @var Id: To store value for Id -# @var UiName: To store value for UiName -# @var Preferred: To store value for Preferred -# @var FilePath: To store value for FilePath -# -class BuildScriptClass(object): - def __init__(self): - self.Id =3D '' - self.UiName =3D '' - self.Preferred =3D False - self.FilePath =3D '' - -## PlatformFvImageOptionClass -# -# This class defined FvImageOption item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var FvImageOptionName: To store value for FvImageOptionName -# @var FvImageOptionValues: To store value for FvImageOptionValues -# -cl= ass PlatformFvImageOptionClass(object): - def __init__(self): - self.FvImageOptionName =3D '' - self.FvImageOptionValues =3D [] - -## PlatformFvImageClass -# -# This class defined FvImage item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var Name: To store value for Name -# @var Value: To store value for Value -# @var Type: To store value for Type, selection scope is in bel= ow list -# Attributes | Options | Components | ImageName=20 -# @var FvImageNames: To store value for FvImageNames -# @var FvImageOptions: To store value for FvImageOptions, it is a list st= ructure as -# [ PlatformFvImageOption, ...] -# -class PlatformFvImageClass(object): - def __init__(self): - self.Name =3D '' - self.Value =3D '' - self.Type =3D '' - self.FvImageNames =3D [] - self.FvImageOptions =3D [] - -## PlatformFvImageNameClass -# -# This class defined FvImageName item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var Name: To store value for Name -# @var Type: To store value for Type, selection scope is in bel= ow list -# FV_MAIN | FV_MAIN_COMPACT | NV_STORAGE | FV_RECOVE= RY | FV_RECOVERY_FLOPPY | FV_FILE | CAPSULE_CARGO | NULL | USER_DEFINED=20 -# @var FvImageOptions: To store value for FvImageOptions, it is a list st= ructure as -# [ PlatformFvImageOption, ...] -# -class PlatformFvImageNameClass(object): - def __init__(self): - self.Name =3D '' - self.Type =3D '' - self.FvImageOptions =3D [] - -## PlatformFvImagesClass -# -# This class defined FvImages item used in platform file -# -# @param obje= ct: Inherited from object class -# -# @var FvImages: To store value for F= vImages -# -class PlatformFvImagesClass(object): - def __init__(self): - self.FvImages =3D [] - -## PlatformAntTaskClass -# -# This class defined AntTask item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var Id: To store value for Id -# @var AntCmdOptions: To store value for AntCmdOptions -# @var FilePath: To store value for FilePath -# -class PlatformAntTaskClass(object): - def __init__(self): - self.Id =3D '' - self.AntCmdOptions =3D '' - self.FilePath =3D '' - -## PlatformFfsSectionClass -# -# This class defined FfsSection item used in platform file -#=20 -# @param CommonClass: Inherited from CommonClass class -# -# @var BindingOrder: To store value for BindingOrder -# @var Compressible: To store value for Compressible -# @var SectionType: To store value for SectionType -# @var EncapsulationType: To store value for EncapsulationType -# @var ToolName: To store value for ToolName -# @var Filenames: To store value for Filenames -# @var Args: To store value for Args -# @var OutFile: To store value for OutFile -# @var OutputFileExtension: To store value for OutputFileExtension -# @var ToolNameElement: To store value for ToolNameElement -# -class PlatformFfsSectionClass(CommonClass): - def __init__(self): - CommonClass.__init__(self) - self.BindingOrder =3D '' - self.Compressible =3D '' - self.SectionType =3D '' - self.EncapsulationType =3D '' - self.ToolName =3D '' - self.Filenames =3D [] - self.Args =3D '' - self.OutFile =3D '' - self.OutputFileExtension =3D '' - self.ToolNameElement =3D '' - -## PlatformFfsSectionsClass -# -# This class defined FfsSections item used in platform file -#=20 -# @param CommonClass: Inherited from CommonClass class -# -# @var BindingOrder: To store value for BindingOrder -# @var Compressible: To store value for Compressible -# @var SectionType: To store value for SectionType -# @var EncapsulationType: To store value for EncapsulationType -# @var ToolName: To store value for ToolName -# @var Section: To store value for Section, it is a list struct= ure as -# [ PlatformFfsSectionClass, ... ] -# @var Sections: To store value for Sections, it is a list struc= ture as -# [ PlatformFfsSectionsClass, ...] -# -class PlatformFfsSectionsClass(CommonClass): - def __init__(self): - CommonClass.__init__(self) - self.BindingOrder =3D '' - self.Compressible =3D '' - self.SectionType =3D '' - self.EncapsulationType =3D '' - self.ToolName =3D '' - self.Section =3D [] - self.Sections =3D [] - -## PlatformFfsClass -# -# This class defined Ffs item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var Attribute: To store value for Attribute, it is a set structure as -# { [(Name, PlatformFfsSectionsClass)] : Value} -# @var Sections: To store value for Sections, it is a list structure as -# [ PlatformFfsSectionsClass] -# @var ToolName: To store value for ToolName -# -class PlatformFfsClass(object): - def __init__(self): - self.Attribute =3D {} - self.Sections =3D [] - self.Key =3D '' - -## PlatformBuildOptionClass -# -# This class defined BuildOption item used in platform file -#=20 -# @param object: Inherited from object class -# -# @var UserDefinedAntTasks: To store value for UserDefinedAntTasks, it is= a set structure as -# { [Id] : PlatformAntTaskClass, ...} -# @var Options: To store value for Options, it is a list stru= cture as -# [ BuildOptionClass, ...] -# @var UserExtensions: To store value for UserExtensions, it is a se= t structure as -# { [(UserID, Identifier)] : UserExtensionsClas= s, ...} -# @var FfsKeyList: To store value for FfsKeyList, it is a set st= ructure as -# { [FfsKey]: PlatformFfsClass, ...}=20 -# -class PlatformBuildOptionClass(object): - def __init__(self): - self.UserDefinedAntTasks =3D {} - self.Options =3D [] - self.UserExtensions =3D {} - self.FfsKeyList =3D {} - -## PlatformBuildOptionClasses -# -# This class defined BuildOption item list used in platform file -# -# @pa= ram IncludeStatementClass: Inherited from IncludeStatementClass class -# -# @var FvBinding: To store value for FvBinding -# @var FfsFileNameGuid: To store value for FfsFileNameGuid -# @var FfsFormatKey: To store value for FfsFormatKey -# @var BuildOptionList: To store value for BuildOptionList, it is= a list structure as -# [ BuildOptionClass, ... ] -# -class PlatformBuildOptionClasses(IncludeStatementClass): - def __init__(self): - IncludeStatementClass.__init__(self) - self.FvBinding =3D '' - self.FfsFileNameGuid =3D '' - self.FfsFormatKey =3D '' - self.BuildOptionList =3D [] - -## PlatformLibraryClass -# -# This class defined Library item used in platform file -#=20 -# @param CommonClass: Inherited from CommonClass class -# @param DefineClass: Inherited from DefineClass class -# @param Name: Input value for Name, default is '' -# @param FilePath: Input value for FilePath, default is '' -# -# @var Name: To store value for Name -# @var FilePath: To store value for FilePath -# @var ModuleType: To store value for ModuleType -# @var SupModuleList: To store value for SupModuleList -# @var ModuleGuid: To store value for ModuleGuid -# @var ModuleVersion: To store value for ModuleVersion -# @var PackageGuid: To store value for PackageGuid -# @var PackageVersion: To store value for PackageVersion -# -class Platfo= rmLibraryClass(CommonClass, DefineClass): - def __init__(self, Name =3D '', FilePath =3D ''): - CommonClass.__init__(self) - DefineClass.__init__(self) - self.Name =3D Name - self.FilePath =3D FilePath - self.ModuleType =3D [] - self.SupModuleList =3D [] - self.ModuleGuid =3D '' - self.ModuleVersion =3D '' - self.PackageGuid =3D '' - self.PackageVersion =3D '' - -## PlatformLibraryClasses -# -# This class defined Library item list used in platform file -# -# @param = IncludeStatementClass: Inherited from IncludeStatementClass class -# -# @var LibraryList: To store value for LibraryList, it is a l= ist structure as -# [ PlatformLibraryClass, ... ] -# -class PlatformLibraryClasses(IncludeStatementClass): - def __init__(self): - IncludeStatementClass.__init__(self) - self.LibraryList =3D [] - -## PlatformModuleClass -# -# This class defined Module item used in platform file -#=20 -# @param CommonClass: Inherited from CommonClass class -# @param DefineClass: Inherited from DefineClass class -# @param IncludeStatementClass: Inherited from IncludeStatementClass clas= s -# -# @var Name: To store value for Name (Library name or = libraryclass name or module name) -# @var FilePath: To store value for FilePath -# @var Type: To store value for Type, selection scope = is in below list -# LIBRARY | LIBRARY_CLASS | MODULE -# @var ModuleType: To store value for ModuleType -# @var ExecFilePath: To store value for ExecFilePath -# @var LibraryClasses: To store value for LibraryClasses, it is = a structure as -# PlatformLibraryClasses -# @var PcdBuildDefinitions: To store value for PcdBuildDefinitions, i= t is a list structure as -# [ PcdClass, ...] -# @var ModuleSaBuildOption: To store value for ModuleSaBuildOption, i= t is a structure as -# PlatformBuildOptionClasses -# @var Specifications: To store value for Specifications, it is = a list structure as -# [ '', '', ...] -# -class PlatformModuleClass(CommonClass, DefineClass, IncludeStatementClass)= : - def __init__(self): - CommonClass.__init__(self) - DefineClass.__init__(self) - self.Name =3D '' - self.FilePath =3D '' - self.Type =3D '' - self.ModuleType =3D '' - self.ExecFilePath =3D '' - self.LibraryClasses =3D PlatformLibraryClasses() - self.PcdBuildDefinitions =3D [] - self.ModuleSaBuildOption =3D PlatformBuildOptionClasses() - self.Specifications =3D [] - self.SourceOverridePath =3D '' - -## PlatformModuleClasses -# -# This class defined Module item list used in platform file -# -# @param I= ncludeStatementClass: Inherited from IncludeStatementClass class -# -# @var ModuleList: To store value for ModuleList, it is a li= st structure as -# [ PlatformModuleClass, ... ] -# -class PlatformModuleClasses(IncludeStatementClass): - def __init__(self): - IncludeStatementClass.__init__(self) - self.ModuleList =3D [] - -## PlatformClass -# -# This class defined a complete platform item -#=20 -# @param object: Inherited from object class -# -# @var Header: To store value for Header, it is a str= ucture as -# {Arch : PlatformHeaderClass()} -# @var SkuInfos: To store value for SkuInfos, it is a s= tructure as -# SkuInfoListClass -# @var Libraries: To store value for Libraries, it is a = structure as -# PlatformLibraryClasses -# @var LibraryClasses: To store value for LibraryClasses, it = is a structure as -# PlatformLibraryClasses -# @var Modules: To store value for Modules, it is a st= ructure as -# PlatformModuleClasses -# @var FlashDefinitionFile: To store value for FlashDefinitionFile= , it is a structure as -# PlatformFlashDefinitionFileClass -# @var Prebuild: To store value for PREBUILD, it is a s= tructure as -# BuildScriptClass -# @var Postbuild: To store value for POSTBUILD, it is a = structure as -# BuildScriptClass -# @var BuildOptions: To store value for BuildOptions, it is= a structure as -# PlatformBuildOptionClasses -# @var DynamicPcdBuildDefinitions: To store value for DynamicPcdBuildDefi= nitions, it is a list structure as -# [ PcdClass, ...] -# @var Fdf: To store value for Fdf, it is a list s= tructure as -# [ FdfClass, ...] -# @var UserExtensions: To store value for UserExtensions, it = is a list structure as -# [ UserExtensionsClass, ...] -# -class PlatformClass(object): - def __init__(self): - self.Header =3D {} - self.SkuInfos =3D SkuInfoListClass() - self.Libraries =3D PlatformLibraryClasses() - self.LibraryClasses =3D PlatformLibraryClasses() - self.Modules =3D PlatformModuleClasses() - self.FlashDefinitionFile =3D PlatformFlashDefinitionFileClass() - self.Prebuild =3D BuildScriptClass() - self.Postbuild =3D BuildScriptClass() - self.BuildOptions =3D PlatformBuildOptionClasses() - self.DynamicPcdBuildDefinitions =3D [] - self.Fdf =3D [] - self.UserExtensions =3D [] - -## -# -# This acts like the main() function for the script, unless it is 'import'= ed into another -# script. -# -if __name__ =3D=3D '__main__': - P =3D PlatformClass() -- 2.16.2.windows.1