]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/InfClassObjectLight.py
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / Python / Common / InfClassObjectLight.py
index a655828e6a7a7f35ea0c78c80e54e1d4b8fce7c9..020addfdb74b3e1001fa487e1f2c1524c2816266 100644 (file)
@@ -1,8 +1,8 @@
 ## @file\r
 # This file is used to define each component of INF file\r
 #\r
-# Copyright (c) 2007, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2007 - 2010, 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
@@ -71,7 +71,8 @@ class InfHeader(ModuleHeaderClass):
         TAB_INF_DEFINES_BASE_NAME                   : "Name",\r
         TAB_INF_DEFINES_FILE_GUID                   : "Guid",\r
         TAB_INF_DEFINES_MODULE_TYPE                 : "ModuleType",\r
-        TAB_INF_DEFINES_EFI_SPECIFICATION_VERSION   : "EfiSpecificationVersion",\r
+        TAB_INF_DEFINES_EFI_SPECIFICATION_VERSION   : "UefiSpecificationVersion",\r
+        TAB_INF_DEFINES_UEFI_SPECIFICATION_VERSION  : "UefiSpecificationVersion",\r
         TAB_INF_DEFINES_EDK_RELEASE_VERSION         : "EdkReleaseVersion",        \r
 \r
         # Optional Fields\r
@@ -583,7 +584,7 @@ class Inf(InfObject):
                     ModuleHeader.PcdIsDriver = Value\r
                 elif Name == TAB_INF_DEFINES_MODULE_TYPE:\r
                     ModuleHeader.ModuleType = Value\r
-                elif Name == TAB_INF_DEFINES_UEFI_SPECIFICATION_VERSION:\r
+                elif Name in (TAB_INF_DEFINES_UEFI_SPECIFICATION_VERSION, TAB_INF_DEFINES_UEFI_SPECIFICATION_VERSION):\r
                     ModuleHeader.UefiSpecificationVersion = Value\r
                 elif Name == TAB_INF_DEFINES_PI_SPECIFICATION_VERSION:\r
                     ModuleHeader.PiSpecificationVersion = Value\r