From: "Zhu, Yonghong" <yonghong.zhu@intel.com>
To: "Carsey, Jaben" <jaben.carsey@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Gao, Liming" <liming.gao@intel.com>,
"Zhu, Yonghong" <yonghong.zhu@intel.com>
Subject: Re: [PATCH v1] BaseTools: remove an unused file
Date: Tue, 17 Apr 2018 12:52:52 +0000 [thread overview]
Message-ID: <B9726D6DCCFB8B4CA276A9169B02216D51FED513@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <c36892ba464376d7ed76397094610c34f59098e3.1523639371.git.jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Best Regards,
Zhu Yonghong
-----Original Message-----
From: Carsey, Jaben
Sent: Saturday, April 14, 2018 1:10 AM
To: edk2-devel@lists.01.org
Cc: Gao, Liming <liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>
Subject: [PATCH v1] BaseTools: remove an unused file
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
---
BaseTools/Source/Python/CommonDataClass/PackageClass.py | 127 --------------------
BaseTools/Source/Python/Makefile | 1 -
2 files changed, 128 deletions(-)
diff --git a/BaseTools/Source/Python/CommonDataClass/PackageClass.py b/BaseTools/Source/Python/CommonDataClass/PackageClass.py
deleted file mode 100644
index ba7d7eb67911..000000000000
--- a/BaseTools/Source/Python/CommonDataClass/PackageClass.py
+++ /dev/null
@@ -1,127 +0,0 @@
-## @file
-# This file is used to define a class object to describe a package -# -# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR> -# 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
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-##
-# Import Modules
-#
-from CommonClass import *
-from collections import OrderedDict
-
-## PackageHeaderClass
-#
-# This class defined header items used in Package file -# -# @param IdentificationClass: Inherited from IdentificationClass class
-# @param CommonHeaderClass: Inherited from CommonHeaderClass class
-#
-# @var DecSpecification: To store value for DecSpecification
-# @var ReadOnly: To store value for ReadOnly
-# @var RePackage: To store value for RePackage
-# @var ClonedFrom: To store value for ClonedFrom, it is a set structure as
-# [ ClonedRecordClass, ...]
-#
-class PackageHeaderClass(IdentificationClass, CommonHeaderClass):
- def __init__(self):
- IdentificationClass.__init__(self)
- CommonHeaderClass.__init__(self)
- self.DecSpecification = ''
- self.ReadOnly = False
- self.RePackage = False
- self.PackagePath = ''
- self.ClonedFrom = []
-
-## PackageIndustryStdHeaderClass
-#
-# This class defined industry std header items used in Package file -# -# @param CommonHeaderClass: Inherited from CommonHeaderClass class -#
-# @var Name: To store value for Name
-# @var IncludeHeader: To store value for IncludeHeader
-#
-class PackageIndustryStdHeaderClass(CommonClass):
- def __init__(self):
- self.Name = ''
- self.IncludeHeader = ''
- CommonClass.__init__(self)
-
-## PackageIncludePkgHeaderClass
-#
-# This class defined include Pkg header items used in Package file -#
-# @param object: Inherited from object class
-#
-# @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 | MM_STANDALONE | MM_CORE_STANDALONE
-#
-class PackageIncludePkgHeaderClass(object):
- def __init__(self):
- self.IncludeHeader = ''
- self.ModuleType = []
-
-## PackageClass
-#
-# This class defined a complete package item -#
-# @param object: Inherited from object class
-#
-# @var Header: To store value for Header, it is a structure as
-# {Arch : PackageHeaderClass}
-# @var Includes: To store value for Includes, it is a list structure as
-# [ IncludeClass, ...]
-# @var LibraryClassDeclarations: To store value for LibraryClassDeclarations, it is a list structure as
-# [ LibraryClassClass, ...]
-# @var IndustryStdHeaders: To store value for IndustryStdHeaders, it is a list structure as
-# [ PackageIndustryStdHeader, ...]
-# @var ModuleFiles: To store value for ModuleFiles, it is a list structure as
-# [ '', '', ...]
-# @var PackageIncludePkgHeaders: To store value for PackageIncludePkgHeaders, it is a list structure as
-# [ PackageIncludePkgHeader, ...]
-# @var GuidDeclarations: To store value for GuidDeclarations, it is a list structure as
-# [ GuidClass, ...]
-# @var ProtocolDeclarations: To store value for ProtocolDeclarations, it is a list structure as
-# [ ProtocolClass, ...]
-# @var PpiDeclarations: To store value for PpiDeclarations, it is a list structure as
-# [ PpiClass, ...]
-# @var PcdDeclarations: To store value for PcdDeclarations, it is a list structure as
-# [ PcdClass, ...]
-# @var UserExtensions: To store value for UserExtensions, it is a list structure as
-# [ UserExtensionsClass, ...]
-#
-class PackageClass(object):
- def __init__(self):
- self.PackageHeader = PackageHeaderClass()
- self.Header = {}
- self.Includes = []
- self.LibraryClassDeclarations = []
- self.IndustryStdHeaders = []
- self.ModuleFiles = []
- # {[Guid, Value, Path(relative to WORKSPACE)]: ModuleClassObj}
- self.Modules = OrderedDict()
- self.PackageIncludePkgHeaders = []
- self.GuidDeclarations = []
- self.ProtocolDeclarations = []
- self.PpiDeclarations = []
- self.PcdDeclarations = []
- self.PcdChecks = []
- self.UserExtensions = UserExtensionsClass()
- self.MiscFiles = MiscFileClass()
- self.FileList = []
-
-##
-#
-# This acts like the main() function for the script, unless it is 'import'ed into another -# script.
-#
-if __name__ == '__main__':
- P = PackageClass()
diff --git a/BaseTools/Source/Python/Makefile b/BaseTools/Source/Python/Makefile
index c1c58dc0a423..27eed82b6ac3 100644
--- a/BaseTools/Source/Python/Makefile
+++ b/BaseTools/Source/Python/Makefile
@@ -59,7 +59,6 @@ COMMON_PYTHON=$(BASE_TOOLS_PATH)\Source\Python\Common\BuildToolError.py \
$(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\Exceptions.py \
$(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\FdfClass.py \
$(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\ModuleClass.py \
- $(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\PackageClass.py \
$(BASE_TOOLS_PATH)\Source\Python\CommonDataClass\PlatformClass.py \
$(BASE_TOOLS_PATH)\Source\Python\Table\Table.py \
$(BASE_TOOLS_PATH)\Source\Python\Table\TableDataModel.py \
--
2.16.2.windows.1
prev parent reply other threads:[~2018-04-17 12:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1523639371.git.jaben.carsey@intel.com>
2018-04-13 17:10 ` [PATCH v1] BaseTools: remove an unused file Jaben
2018-04-17 12:52 ` Zhu, Yonghong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B9726D6DCCFB8B4CA276A9169B02216D51FED513@shsmsx102.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox