## @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
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
# 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
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