X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FCommonDataClass%2FPackageClass.py;h=ba7d7eb67911ddbf53030c9e54037dd0a94c2f80;hp=1382b80839ef73e88948ca74cdc6a805a10c7c32;hb=9fb9cbfb65a779885bb2d059309237a92bb1b1a9;hpb=b303ea726e1c8ed240dad2bce54821318567eab3 diff --git a/BaseTools/Source/Python/CommonDataClass/PackageClass.py b/BaseTools/Source/Python/CommonDataClass/PackageClass.py index 1382b80839..ba7d7eb679 100644 --- a/BaseTools/Source/Python/CommonDataClass/PackageClass.py +++ b/BaseTools/Source/Python/CommonDataClass/PackageClass.py @@ -1,8 +1,8 @@ ## @file # This file is used to define a class object to describe a package # -# Copyright (c) 2007, Intel Corporation -# All rights reserved. This program and the accompanying materials +# Copyright (c) 2007, 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 @@ -14,7 +14,7 @@ # Import Modules # from CommonClass import * -from Common.Misc import sdict +from collections import OrderedDict ## PackageHeaderClass # @@ -62,7 +62,7 @@ class PackageIndustryStdHeaderClass(CommonClass): # # @var IncludeHeader: To store value for IncludeHeader # @var ModuleType: To store value for ModuleType, it is a set structure as -# BASE | SEC | PEI_CORE | PEIM | DXE_CORE | DXE_DRIVER | DXE_RUNTIME_DRIVER | DXE_SAL_DRIVER | DXE_SMM_DRIVER | TOOL | UEFI_DRIVER | UEFI_APPLICATION | USER_DEFINED | SMM_CORE +# BASE | SEC | PEI_CORE | PEIM | DXE_CORE | DXE_DRIVER | DXE_RUNTIME_DRIVER | DXE_SAL_DRIVER | DXE_SMM_DRIVER | TOOL | UEFI_DRIVER | UEFI_APPLICATION | USER_DEFINED | SMM_CORE | MM_STANDALONE | MM_CORE_STANDALONE # class PackageIncludePkgHeaderClass(object): def __init__(self): @@ -107,7 +107,7 @@ class PackageClass(object): self.IndustryStdHeaders = [] self.ModuleFiles = [] # {[Guid, Value, Path(relative to WORKSPACE)]: ModuleClassObj} - self.Modules = sdict() + self.Modules = OrderedDict() self.PackageIncludePkgHeaders = [] self.GuidDeclarations = [] self.ProtocolDeclarations = []