diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-07-07 04:55:41 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-12 14:53:55 +0000 |
commit | fb5b6220a9718fc28ae67f317d3611214a05589c (patch) | |
tree | f7a4e18af2122a7861e6c2cf2f0b37ab9b7c19e9 /.pytool | |
parent | 50672d269266e84e37bee925ad61da166bd22944 (diff) | |
download | edk2-fb5b6220a9718fc28ae67f317d3611214a05589c.tar.gz |
.pytool/EccCheck: Set PACKAGES_PATH env var in Ecc
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@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to '.pytool')
-rw-r--r-- | .pytool/Plugin/EccCheck/EccCheck.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.pytool/Plugin/EccCheck/EccCheck.py b/.pytool/Plugin/EccCheck/EccCheck.py index 87f0e65a14..2d0612269b 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', os.pathsep.join(Edk2pathObj.PackagePathList))
self.ECC_PASS = True
self.ApplyConfig(pkgconfig, workspace_path, basetools_path, packagename)
modify_dir_list = self.GetModifyDir(packagename)
|