]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/CommonDataClass/PlatformClass.py
BaseTools: Enhance BaseTools supports FixedAtBuild usage in VFR file
[mirror_edk2.git] / BaseTools / Source / Python / CommonDataClass / PlatformClass.py
index a95ec068b1cb34ac52fbb0d50a109b1cc7ea6fc7..a93d1ce2a1dbf187f3423319d1b6aa66524d2418 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # This file is used to define a class object to describe a platform\r
 #\r
-# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.    The full text of the license may be found at\r
@@ -86,6 +86,24 @@ class PlatformFlashDefinitionFileClass(object):
         self.Preferred = False\r
         self.FilePath = ''\r
 \r
+## BuildScriptClass\r
+#\r
+# This class defined PREBUILD/POSTBUILD item used in platform file\r
+#\r
+# @param object:   Inherited from object class\r
+#\r
+# @var Id:         To store value for Id\r
+# @var UiName:     To store value for UiName\r
+# @var Preferred:  To store value for Preferred\r
+# @var FilePath:   To store value for FilePath\r
+#\r
+class BuildScriptClass(object):\r
+    def __init__(self):\r
+        self.Id = ''\r
+        self.UiName = ''\r
+        self.Preferred = False\r
+        self.FilePath = ''\r
+\r
 ## PlatformFvImageOptionClass\r
 #\r
 # This class defined FvImageOption item used in platform file\r
@@ -401,6 +419,10 @@ class PlatformModuleClasses(IncludeStatementClass):
 #                                   PlatformModuleClasses\r
 # @var FlashDefinitionFile:         To store value for FlashDefinitionFile, it is a structure as\r
 #                                   PlatformFlashDefinitionFileClass\r
+# @var Prebuild:                    To store value for PREBUILD, it is a structure as\r
+#                                   BuildScriptClass\r
+# @var Postbuild:                   To store value for POSTBUILD, it is a structure as\r
+#                                   BuildScriptClass\r
 # @var BuildOptions:                To store value for BuildOptions, it is a structure as\r
 #                                   PlatformBuildOptionClasses\r
 # @var DynamicPcdBuildDefinitions:  To store value for DynamicPcdBuildDefinitions, it is a list structure as\r
@@ -418,6 +440,8 @@ class PlatformClass(object):
         self.LibraryClasses = PlatformLibraryClasses()\r
         self.Modules = PlatformModuleClasses()\r
         self.FlashDefinitionFile = PlatformFlashDefinitionFileClass()\r
+        self.Prebuild = BuildScriptClass()\r
+        self.Postbuild = BuildScriptClass()\r
         self.BuildOptions = PlatformBuildOptionClasses()\r
         self.DynamicPcdBuildDefinitions = []\r
         self.Fdf = []\r