回复: [edk2-devel] [PATCH v1 0/1] Use Pip version of BaseTools

gaoliming gaoliming at byosoft.com.cn
Wed Nov 11 02:51:24 UTC 2020


Matthew:

 I suggest to provide the option to let user choose BaseTools from PIP or from Source.

 

  For this patch set, all linux scripts should be UNIX file format. I review the patch https://github.com/tianocore/edk2/pull/1072. I find some linux script are DOS file format, for example BaseTools/BuildEnv. Please correct them. 

 

Thanks

Liming

发件人: Matthew Carlson <matthewfcarlson at gmail.com> 
发送时间: 2020年11月4日 2:50
收件人: Shi, Steven <steven.shi at intel.com>
抄送: devel at edk2.groups.io; Feng, Bob C <bob.c.feng at intel.com>; Liming Gao <gaoliming at byosoft.com.cn>; Chen, Christine <yuwei.chen at intel.com>; Sean Brogan <sean.brogan at microsoft.com>; Kinney, Michael D <michael.d.kinney at intel.com>
主题: Re: [edk2-devel] [PATCH v1 0/1] Use Pip version of BaseTools

 

Hey Steven,

 

So there's a pip requirement file that should keep things in lockstep in terms of dependencies. The initial plan is to have every commit into basetools be released. Changes in BaseTools will be submitted and then edk2 will be updated to consume that new feature. So it will simply be a new patch in the series when people submit. So whenever there's some sort of change where it is required in lockstep, the expectation is that basetools will be updated first. 

 

Right now, the basetools repo doesn't try to build with EDK2 (though that is coming). It does unit tests, code coverage, linting, and a few other things (most of them won't cause an error, due to it breaking current builds). But we already do CI with EDK2 in the pytools repos (https://github.com/tianocore/edk2-pytool-extensions) where we clone, install locally, and test. It's run as an optional test and the expectation is that build breaks should be well-understood and tested by the person submitting the breaking change. The goal eventually is for the unit tests to provide a very good litmus test for whether it will break edk2 or not, but BaseTools is currently at 4% coverage, so we have a good ways to go there.

 

Great question!


-Matthew Carlson

 

 

On Mon, Nov 2, 2020 at 8:54 PM Shi, Steven <steven.shi at intel.com <mailto:steven.shi at intel.com> > wrote:

Hello Carlson,
I'd like to know the validation process of the BaseTools patch in Open CI after we fully adopt the pip based BaseTools. There will be two different repos as edk2-basetools and edk2,  and the two repos closely depend on each other to do the build validation. We might need a mechanism to sync the two repos dependency when we want to change the edk2-basetools. When I send a patch to change edk2-basetools, is there a mechanism in Open CI to let the build agent not to use the pre-installed pip basetools, but to clone the new branch version of edk2-basetools, build&install the new version basetools, and force the edk2 to finish build with the new version basetools?


Thanks
Steven Shi

> -----Original Message-----
> From: devel at edk2.groups.io <mailto:devel at edk2.groups.io>  <devel at edk2.groups.io <mailto:devel at edk2.groups.io> > On Behalf Of
> Matthew Carlson
> Sent: Tuesday, November 3, 2020 8:36 AM
> To: devel at edk2.groups.io <mailto:devel at edk2.groups.io> 
> Cc: Feng, Bob C <bob.c.feng at intel.com <mailto:bob.c.feng at intel.com> >; Liming Gao
> <gaoliming at byosoft.com.cn <mailto:gaoliming at byosoft.com.cn> >; Chen, Christine <yuwei.chen at intel.com <mailto:yuwei.chen at intel.com> >;
> Sean Brogan <sean.brogan at microsoft.com <mailto:sean.brogan at microsoft.com> >; Kinney, Michael D
> <michael.d.kinney at intel.com <mailto:michael.d.kinney at intel.com> >
> Subject: [edk2-devel] [PATCH v1 0/1] Use Pip version of BaseTools
> 
> From: Matthew Carlson <matthewfcarlson at gmail.com <mailto:matthewfcarlson at gmail.com> >
> 
> Hello all,
> 
> This patch adds the capability to leverage the pip based BaseTools.
> The BaseTools master is current with EDK2 master (as of 3pm Nov 2, 2020).
> While I could rehash a lot of what has gone out on the mailing list, I think
> it might be better just to link the discussion.
> 
> In a nutshell, setup will detect if edk2-basetools is installed, and if it
> is, use the other verison of BinWrappers (BinPipWrappers). This should
> provide an easy and convenient way to transition over. By default, CI
> uses the pip version.
> 
> The pipeline is setup. Every commit that gets pushed to master on basetools
> get published to pypi and tagged. This should offer bisectability and easier
> debugging. Additionally, the pip requirements file tracks a specific version.
> 
> We'd like to set a date for when PR's no longer go into EDK2 for BaseTools
> and instead go exclusively into the new basetools repo.
> 
> Ref: https://edk2.groups.io/g/devel/topic/76572200#64993
> Ref: https://github.com/tianocore/edk2-basetools
> Ref: https://github.com/tianocore/edk2/pull/1072
> 
> Cc: Bob Feng <bob.c.feng at intel.com <mailto:bob.c.feng at intel.com> >
> Cc: Liming Gao <gaoliming at byosoft.com.cn <mailto:gaoliming at byosoft.com.cn> >
> Cc: Yuwei Chen <yuwei.chen at intel.com <mailto:yuwei.chen at intel.com> >
> Cc: Sean Brogan <sean.brogan at microsoft.com <mailto:sean.brogan at microsoft.com> >
> Cc: Michael Kinney <michael.d.kinney at intel.com <mailto:michael.d.kinney at intel.com> >
> 
> Matthew Carlson (1):
>   BaseTools: Use pip module if available, CI uses it by default
> 
>  .pytool/CISettings.py                                                               |  20 +-
>  BaseTools/BinPipWrappers/PosixLike/AmlToC                                           |  14 +
>  BaseTools/BinPipWrappers/PosixLike/BPDG                                             |  12 +
>  BaseTools/BinPipWrappers/PosixLike/Brotli                                           |  29 ++
>  BaseTools/BinPipWrappers/PosixLike/BrotliCompress                                   |
> 34 ++
>  BaseTools/BinPipWrappers/PosixLike/DevicePath                                       |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/Ecc                                              |  13 +
>  BaseTools/BinPipWrappers/PosixLike/EfiRom                                           |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/GenCrc32                                         |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/GenDepex                                         |  12
> +
>  BaseTools/BinPipWrappers/PosixLike/GenFds                                           |  12 +
>  BaseTools/BinPipWrappers/PosixLike/GenFfs                                           |  29 ++
>  BaseTools/BinPipWrappers/PosixLike/GenFv                                            |  29 ++
>  BaseTools/BinPipWrappers/PosixLike/GenFw                                            |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable                                 |
> 12 +
>  BaseTools/BinPipWrappers/PosixLike/GenSec                                           |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/GenerateCapsule                                  |
> 12 +
>  BaseTools/BinPipWrappers/PosixLike/LzmaCompress                                     |
> 29 ++
>  BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress                                  |
> 19 +
>  BaseTools/BinPipWrappers/PosixLike/PatchPcdValue                                    |
> 12 +
>  BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign                                        |  12 +
>  BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys
> |  12 +
>  BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign
> |  12 +
>  BaseTools/BinPipWrappers/PosixLike/Split                                            |  29 ++
>  BaseTools/BinPipWrappers/PosixLike/TargetTool                                       |  12
> +
>  BaseTools/BinPipWrappers/PosixLike/TianoCompress                                    |
> 29 ++
>  BaseTools/BinPipWrappers/PosixLike/Trim                                             |  13 +
>  BaseTools/BinPipWrappers/PosixLike/UPT                                              |  12 +
>  BaseTools/BinPipWrappers/PosixLike/VfrCompile                                       |  29
> ++
>  BaseTools/BinPipWrappers/PosixLike/VolInfo                                          |  29 ++
>  BaseTools/BinPipWrappers/PosixLike/build                                            |  12 +
>  BaseTools/{BinWrappers =>
> BinPipWrappers}/PosixLike/posix_path_env.yaml             |   3 +-
>  BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat                                     |
> 3 +
>  BaseTools/BinPipWrappers/WindowsLike/BPDG.bat                                       |
> 3 +
>  BaseTools/BinPipWrappers/WindowsLike/BrotliCompress.bat
> |  55 ++
>  BaseTools/BinPipWrappers/WindowsLike/Ecc.bat                                        |   3
> +
>  BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat
> |   3 +
>  BaseTools/BinPipWrappers/WindowsLike/GenFds.bat                                     |
> 3 +
>  BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat
> |   3 +
>  BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat
> |   1 +
>  BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat
> |   3 +
>  BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat                                  |
> 3 +
>  BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat
> |   1 +
>  BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat
> |   3 +
>  BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat                                 |
> 3 +
>  BaseTools/BinPipWrappers/WindowsLike/Trim.bat                                       |   3
> +
>  BaseTools/BinPipWrappers/WindowsLike/UPT.bat                                        |   3
> +
>  BaseTools/BinPipWrappers/WindowsLike/build.bat                                      |   3
> +
>  BaseTools/{BinWrappers =>
> BinPipWrappers}/WindowsLike/win_build_tools_path_env.yaml |   3 +-
>  BaseTools/BinWrappers/PosixLike/posix_path_env.yaml                                 |
> 1 +
>  BaseTools/BinWrappers/WindowsLike/win_build_tools_path_env.yaml
> |   1 +
>  BaseTools/BuildEnv                                                                  | 548 ++++++++++---
> -------
>  BaseTools/Scripts/PatchCheck.py                                                     |   1 +
>  BaseTools/toolsetup.bat                                                             |  19 +
>  pip-requirements.txt                                                                |   1 +
>  55 files changed, 1035 insertions(+), 272 deletions(-)
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/AmlToC
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/BPDG
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Brotli
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/BrotliCompress
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/DevicePath
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Ecc
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/EfiRom
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenCrc32
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenDepex
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFds
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFfs
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFv
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenFw
>  create mode 100644
> BaseTools/BinPipWrappers/PosixLike/GenPatchPcdTable
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenSec
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/GenerateCapsule
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/LzmaCompress
>  create mode 100644
> BaseTools/BinPipWrappers/PosixLike/LzmaF86Compress
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/PatchPcdValue
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Pkcs7Sign
>  create mode 100644
> BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256GenerateKeys
>  create mode 100644
> BaseTools/BinPipWrappers/PosixLike/Rsa2048Sha256Sign
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Split
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/TargetTool
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/TianoCompress
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/Trim
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/UPT
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/VfrCompile
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/VolInfo
>  create mode 100644 BaseTools/BinPipWrappers/PosixLike/build
>  copy BaseTools/{BinWrappers =>
> BinPipWrappers}/PosixLike/posix_path_env.yaml (71%)
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/AmlToC.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/BPDG.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/BrotliCompress.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/Ecc.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/GenDepex.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/GenFds.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/GenPatchPcdTable.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/GenerateCapsule.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/PatchPcdValue.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/Pkcs7Sign.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256GenerateKeys.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/Rsa2048Sha256Sign.bat
>  create mode 100644
> BaseTools/BinPipWrappers/WindowsLike/TargetTool.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/Trim.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/UPT.bat
>  create mode 100644 BaseTools/BinPipWrappers/WindowsLike/build.bat
>  copy BaseTools/{BinWrappers =>
> BinPipWrappers}/WindowsLike/win_build_tools_path_env.yaml (70%)
> 
> --
> 2.28.0.vfs.0.0
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67267): https://edk2.groups.io/g/devel/message/67267
Mute This Topic: https://groups.io/mt/78175361/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20201111/842fafc8/attachment.htm>


More information about the edk2-devel-archive mailing list