[edk2-devel] 回复: [PATCH v1 4/4] .pytool/EccCheck: Set PACKAGES_PATH env var in Ecc

gaoliming gaoliming at byosoft.com.cn
Thu Jun 24 01:52:22 UTC 2021


Pierre:

> -----邮件原件-----
> 发件人: Pierre.Gondois at arm.com <Pierre.Gondois at arm.com>
> 发送时间: 2021年6月23日 15:23
> 收件人: devel at edk2.groups.io; Sean Brogan <sean.brogan at microsoft.com>;
> Bret Barkelew <Bret.Barkelew at microsoft.com>; Michael D Kinney
> <michael.d.kinney at intel.com>; Liming Gao <gaoliming at byosoft.com.cn>;
> Sami Mujawar <sami.mujawar at arm.com>
> 主题: [PATCH v1 4/4] .pytool/EccCheck: Set PACKAGES_PATH env var in Ecc
> 
> From: Pierre Gondois <Pierre.Gondois at arm.com>
> 
> When running Ecc on other repositories (e.g.: edk2-platforms with
> edk2 as a submodule), edk2 modules are referenced.
> E.g.: MdePkg/..
> The PACKAGES_PATH env var can be used to reference other directories
> containing packages. Set it so that Ecc can find these packages.
> 
> Cc: Sean Brogan <sean.brogan at microsoft.com>
> Cc: Bret Barkelew <Bret.Barkelew at microsoft.com>
> Cc: Michael D Kinney <michael.d.kinney at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Sami Mujawar <sami.mujawar at arm.com>
> Signed-off-by: Pierre Gondois <Pierre.Gondois at arm.com>
> ---
>  .pytool/Plugin/EccCheck/EccCheck.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.pytool/Plugin/EccCheck/EccCheck.py
> b/.pytool/Plugin/EccCheck/EccCheck.py
> index 87f0e65a140f..49d143b32f91 100644
> --- a/.pytool/Plugin/EccCheck/EccCheck.py
> +++ b/.pytool/Plugin/EccCheck/EccCheck.py
> @@ -67,6 +67,7 @@ class EccCheck(ICiBuildPlugin):
>          env = shell_environment.GetEnvironment()
>          env.set_shell_var('PYTHONPATH', python_path)
>          env.set_shell_var('WORKSPACE', workspace_path)
> +        env.set_shell_var('PACKAGES_PATH',
> ":".join(Edk2pathObj.PackagePathList))
":" is Linux OS path separator. Windows OS path separator is ";". 

Thanks
Liming
>          self.ECC_PASS = True
>          self.ApplyConfig(pkgconfig, workspace_path, basetools_path,
> packagename)
>          modify_dir_list = self.GetModifyDir(packagename)
> --
> 2.17.1





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






More information about the edk2-devel-archive mailing list