From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.5943.1610531774284313300 for ; Wed, 13 Jan 2021 01:56:14 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: bob.c.feng@intel.com) IronPort-SDR: JwYtCsqoW53Xr+XDRhnqahMAxUhnCtPrfMjKsbxcm0wuTRadQ/H19u5yFj/rOTwGGDo1Bd0NKO hcOxiXrShXEw== X-IronPort-AV: E=McAfee;i="6000,8403,9862"; a="177403454" X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="177403454" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2021 01:56:13 -0800 IronPort-SDR: u2MEp+qKfDcGV0+v4HwcTWHLyxArVlllY9YM04qUC83l7LBTx/0ErgB5M6lnRitFPehwA447D9 Ud1sMoCO7Z6Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="464844997" Received: from shwdepsi1121.ccr.corp.intel.com ([10.239.158.32]) by fmsmga001.fm.intel.com with ESMTP; 13 Jan 2021 01:56:12 -0800 From: "Bob Feng" To: devel@edk2.groups.io Subject: [Patch 0/2] Convert Split tool to python Date: Wed, 13 Jan 2021 17:56:07 +0800 Message-Id: <20210113095609.1398-1-bob.c.feng@intel.com> X-Mailer: git-send-email 2.29.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable There are 2 reasons to convert Split tool from C to Python.=0D 1. We are in the process of moving the Basetools Python code=0D to a separate repository. But there still are many C tools under=0D edk2/BaseTools. To make all Basetools be in the separate repo,=0D we can convert the C tools to Python tools.=0D 2. The original Split tool is very slow. This python tool can reduce=0D 90% time Bob Feng (2): BaseTools: Convert Split tool to python BaseTools: Add unittest for Split tool BaseTools/Source/C/Split/Split.c | 466 -------------------- BaseTools/BinWrappers/PosixLike/Split | 31 +- BaseTools/BinWrappers/WindowsLike/Split.bat | 3 + BaseTools/Source/C/GNUmakefile | 1 - BaseTools/Source/C/Makefile | 1 - BaseTools/Source/C/Split/GNUmakefile | 17 - BaseTools/Source/C/Split/Makefile | 16 - BaseTools/Source/Python/Split/Split.py | 203 +++++++++ BaseTools/Source/Python/Split/__init__.py | 10 + BaseTools/Source/Python/tests/test_split.py | 101 +++++ 10 files changed, 325 insertions(+), 524 deletions(-) delete mode 100644 BaseTools/Source/C/Split/Split.c create mode 100644 BaseTools/BinWrappers/WindowsLike/Split.bat delete mode 100644 BaseTools/Source/C/Split/GNUmakefile delete mode 100644 BaseTools/Source/C/Split/Makefile create mode 100644 BaseTools/Source/Python/Split/Split.py create mode 100644 BaseTools/Source/Python/Split/__init__.py create mode 100644 BaseTools/Source/Python/tests/test_split.py --=20 2.29.1.windows.1