X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FCommonDataClass%2FPlatformClass.py;h=a93d1ce2a1dbf187f3423319d1b6aa66524d2418;hp=1966fb9f8c10ab30cc2dfa1671e16eb852320703;hb=066c71544ed1c0e1a703b26982f9da60d21bcc5a;hpb=30fdf1140b8d1ce93f3821d986fa165552023440 diff --git a/BaseTools/Source/Python/CommonDataClass/PlatformClass.py b/BaseTools/Source/Python/CommonDataClass/PlatformClass.py index 1966fb9f8c..a93d1ce2a1 100644 --- a/BaseTools/Source/Python/CommonDataClass/PlatformClass.py +++ b/BaseTools/Source/Python/CommonDataClass/PlatformClass.py @@ -1,8 +1,8 @@ ## @file # This file is used to define a class object to describe a platform # -# Copyright (c) 2007, Intel Corporation -# All rights reserved. This program and the accompanying materials +# Copyright (c) 2007 - 2016, 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 # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php @@ -39,7 +39,7 @@ class SkuInfoListClass(IncludeStatementClass): # # @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 +# EBC | IA32 | X64 | IPF | ARM | PPC | AARCH64 # @var BuildTargets: To store value for BuildTargets, selection scope is in below list # RELEASE | DEBUG # @var IntermediateDirectories: To store value for IntermediateDirectories, selection scope is in below list @@ -86,6 +86,24 @@ class PlatformFlashDefinitionFileClass(object): self.Preferred = False self.FilePath = '' +## 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 = '' + self.UiName = '' + self.Preferred = False + self.FilePath = '' + ## PlatformFvImageOptionClass # # This class defined FvImageOption item used in platform file @@ -401,6 +419,10 @@ class PlatformModuleClasses(IncludeStatementClass): # PlatformModuleClasses # @var FlashDefinitionFile: To store value for FlashDefinitionFile, it is a structure as # PlatformFlashDefinitionFileClass +# @var Prebuild: To store value for PREBUILD, it is a structure 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 DynamicPcdBuildDefinitions, it is a list structure as @@ -418,6 +440,8 @@ class PlatformClass(object): self.LibraryClasses = PlatformLibraryClasses() self.Modules = PlatformModuleClasses() self.FlashDefinitionFile = PlatformFlashDefinitionFileClass() + self.Prebuild = BuildScriptClass() + self.Postbuild = BuildScriptClass() self.BuildOptions = PlatformBuildOptionClasses() self.DynamicPcdBuildDefinitions = [] self.Fdf = []