]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Move Identification file to Eot
authorJaben Carsey <jaben.carsey@intel.com>
Fri, 16 Nov 2018 15:42:25 +0000 (23:42 +0800)
committerBobCF <bob.c.feng@intel.com>
Thu, 6 Dec 2018 09:08:09 +0000 (17:08 +0800)
Move the Identification file.
This file is only ever imported into the Eot tool.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by : Bob Feng <bob.c.feng@intel.com>

BaseTools/Source/Python/Common/Identification.py [deleted file]
BaseTools/Source/Python/Eot/Identification.py [new file with mode: 0644]
BaseTools/Source/Python/Eot/InfParserLite.py

diff --git a/BaseTools/Source/Python/Common/Identification.py b/BaseTools/Source/Python/Common/Identification.py
deleted file mode 100644 (file)
index f43150d..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-## @file\r
-# This file is used to define the identification of INF/DEC/DSC files\r
-#\r
-# Copyright (c) 2007, 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
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-## Identification\r
-#\r
-# This class defined basic Identification information structure which is used by INF/DEC/DSC files\r
-#\r
-# @param object:          Inherited from object class\r
-#\r
-# @var FileName:          To store data for Filename\r
-# @var FileFullPath:      To store data for full path of the file\r
-# @var FileRelativePath:  To store data for relative path of the file\r
-# @var RunStatus:       Status of build system running\r
-#\r
-class Identification(object):\r
-    def __init__(self):\r
-        self.FileName = ''\r
-        self.FileFullPath = ''\r
-        self.FileRelativePath = ''\r
-        self.PackagePath = ''\r
-\r
-    ## GetFileName\r
-    #\r
-    # Reserved\r
-    #\r
-    def GetFileName(self, FileFullPath, FileRelativePath):\r
-        pass\r
-\r
-    ## GetFileName\r
-    #\r
-    # Reserved\r
-    #\r
-    def GetFileFullPath(self, FileName, FileRelativePath):\r
-        pass\r
-\r
-    ## GetFileName\r
-    #\r
-    # Reserved\r
-    #\r
-    def GetFileRelativePath(self, FileName, FileFullPath):\r
-        pass\r
-\r
-##\r
-#\r
-# This acts like the main() function for the script, unless it is 'import'ed into another\r
-# script.\r
-#\r
-if __name__ == '__main__':\r
-    id = Identification()\r
diff --git a/BaseTools/Source/Python/Eot/Identification.py b/BaseTools/Source/Python/Eot/Identification.py
new file mode 100644 (file)
index 0000000..f43150d
--- /dev/null
@@ -0,0 +1,58 @@
+## @file\r
+# This file is used to define the identification of INF/DEC/DSC files\r
+#\r
+# Copyright (c) 2007, 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
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+## Identification\r
+#\r
+# This class defined basic Identification information structure which is used by INF/DEC/DSC files\r
+#\r
+# @param object:          Inherited from object class\r
+#\r
+# @var FileName:          To store data for Filename\r
+# @var FileFullPath:      To store data for full path of the file\r
+# @var FileRelativePath:  To store data for relative path of the file\r
+# @var RunStatus:       Status of build system running\r
+#\r
+class Identification(object):\r
+    def __init__(self):\r
+        self.FileName = ''\r
+        self.FileFullPath = ''\r
+        self.FileRelativePath = ''\r
+        self.PackagePath = ''\r
+\r
+    ## GetFileName\r
+    #\r
+    # Reserved\r
+    #\r
+    def GetFileName(self, FileFullPath, FileRelativePath):\r
+        pass\r
+\r
+    ## GetFileName\r
+    #\r
+    # Reserved\r
+    #\r
+    def GetFileFullPath(self, FileName, FileRelativePath):\r
+        pass\r
+\r
+    ## GetFileName\r
+    #\r
+    # Reserved\r
+    #\r
+    def GetFileRelativePath(self, FileName, FileFullPath):\r
+        pass\r
+\r
+##\r
+#\r
+# This acts like the main() function for the script, unless it is 'import'ed into another\r
+# script.\r
+#\r
+if __name__ == '__main__':\r
+    id = Identification()\r
index c910c129a719a609b2fc6a7978f6c0e226bb749b..0cfe0398f05f00c8c880e377532af63049c5db19 100644 (file)
 #\r
 from __future__ import print_function\r
 from __future__ import absolute_import\r
+\r
 import Common.LongFilePathOs as os\r
 import Common.EdkLogger as EdkLogger\r
 from Common.DataType import *\r
 from CommonDataClass.DataClass import *\r
-from Common.Identification import *\r
+from Eot.Identification import Identification\r
 from Common.StringUtils import *\r
 from Eot.Parser import *\r
 from Eot import Database\r