summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Split/__init__.py
diff options
context:
space:
mode:
authorBob Feng <bob.c.feng@intel.com>2021-01-13 11:12:24 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-01-21 10:19:09 +0000
commit5b4a97bbc39ed8e7eb50038b9cffe2e948e49995 (patch)
tree64fb4b3beaee4632fad244d2e9194c4b3eca9f96 /BaseTools/Source/Python/Split/__init__.py
parent339371ef78eb3a6f2e9848f8b058379de5e87d39 (diff)
downloadedk2-5b4a97bbc39ed8e7eb50038b9cffe2e948e49995.tar.gz
edk2-5b4a97bbc39ed8e7eb50038b9cffe2e948e49995.tar.bz2
edk2-5b4a97bbc39ed8e7eb50038b9cffe2e948e49995.zip
BaseTools: Convert Split tool to python
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3165 There are 2 reasons to convert Split tool from C to Python. 1. We are in the process of moving the Basetools Python code to a separate repository. But there still are many C tools under edk2/BaseTools. To make all Basetools be in the separate repo, we can convert the C tools to Python tools. 2. The original Split tool is very slow. This python tool can reduce 90% time. Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Split/__init__.py')
-rw-r--r--BaseTools/Source/Python/Split/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Split/__init__.py b/BaseTools/Source/Python/Split/__init__.py
new file mode 100644
index 0000000000..8f4daf86e8
--- /dev/null
+++ b/BaseTools/Source/Python/Split/__init__.py
@@ -0,0 +1,10 @@
+# @file
+# Split a file into two pieces at the request offset.
+#
+# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+# Import Modules