From 5b4a97bbc39ed8e7eb50038b9cffe2e948e49995 Mon Sep 17 00:00:00 2001 From: Bob Feng Date: Wed, 13 Jan 2021 11:12:24 +0800 Subject: 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 Cc: Liming Gao Cc: Yuwei Chen Reviewed-by: Liming Gao Reviewed-by: Yuwei Chen --- BaseTools/Source/Python/Split/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 BaseTools/Source/Python/Split/__init__.py (limited to 'BaseTools/Source/Python/Split/__init__.py') 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.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +# Import Modules -- cgit v1.2.3