]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/CommonDataClass/CommonClass.py
BaseTools: Enhance BaseTools supports FixedAtBuild usage in VFR file
[mirror_edk2.git] / BaseTools / Source / Python / CommonDataClass / CommonClass.py
index e226f1b0d6b2661ea4398b44e6b961322373f89e..5e908a6edf2ae75618622bb943c1c89ecb914631 100644 (file)
@@ -1,8 +1,8 @@
 ## @file\r
 # This file is used to define common items of class object\r
 #\r
-# Copyright (c) 2007, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2007 - 2015, 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
 # http://opensource.org/licenses/bsd-license.php\r
@@ -38,7 +38,7 @@ def GenerateHelpText(Text, Lang):
 #                      ALWAYS_CONSUMED | SOMETIMES_CONSUMED | ALWAYS_PRODUCED | SOMETIMES_PRODUCED | TO_START | BY_START | PRIVATE\r
 # @var FeatureFlag:    To store value for FeatureFlag\r
 # @var SupArchList:    To store value for SupArchList, selection scope is in below list\r
-#                      EBC | IA32 | X64 | IPF | ARM | PPC\r
+#                      EBC | IA32 | X64 | IPF | ARM | PPC | AARCH64\r
 # @var HelpText:       To store value for HelpText\r
 #\r
 class CommonClass(object):\r
@@ -53,7 +53,7 @@ class CommonClass(object):
         self.HelpText = HelpText\r
         self.HelpTextList = []\r
 \r
-## CommonClass\r
+## CommonHeaderClass\r
 #\r
 # This class defined common items used in Module/Platform/Package files\r
 # \r
@@ -270,7 +270,7 @@ class PpiClass(GuidProtocolPpiCommonClass):
 #\r
 class SkuInfoClass(object):\r
     def __init__(self, SkuIdName = '', SkuId = '', VariableName = '', VariableGuid = '', VariableOffset = '', \r
-                 HiiDefaultValue = '', VpdOffset = '', DefaultValue = '', VariableGuidValue = ''):\r
+                 HiiDefaultValue = '', VpdOffset = '', DefaultValue = '', VariableGuidValue = '', VariableAttribute = ''):\r
         self.SkuIdName = SkuIdName\r
         self.SkuId = SkuId\r
         \r
@@ -282,6 +282,7 @@ class SkuInfoClass(object):
         self.VariableGuidValue = VariableGuidValue\r
         self.VariableOffset = VariableOffset\r
         self.HiiDefaultValue = HiiDefaultValue\r
+        self.VariableAttribute = VariableAttribute\r
         \r
         #\r
         # Used by Vpd\r
@@ -301,7 +302,7 @@ class SkuInfoClass(object):
     #  @retval Rtn Formatted String\r
     #\r
     def __str__(self):\r
-        Rtn = Rtn = 'SkuId = ' + str(self.SkuId) + "," + \\r
+        Rtn = 'SkuId = ' + str(self.SkuId) + "," + \\r
                     'SkuIdName = ' + str(self.SkuIdName) + "," + \\r
                     'VariableName = ' + str(self.VariableName) + "," + \\r
                     'VariableGuid = ' + str(self.VariableGuid) + "," + \\r
@@ -400,7 +401,7 @@ class PcdClass(CommonClass):
 # @var TagName:                  To store value for TagName\r
 # @var ToolCode:                 To store value for ToolCode\r
 # @var SupArchList:              To store value for SupArchList, selection scope is in below list\r
-#                                EBC | IA32 | X64 | IPF | ARM | PPC\r
+#                                EBC | IA32 | X64 | IPF | ARM | PPC | AARCH64\r
 #\r
 class BuildOptionClass(IncludeStatementClass):\r
     def __init__(self, ToolChainFamily = '', ToolChain = '', Option = ''):\r