From: Pierre Gondois <[email protected]> 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 <[email protected]> Cc: Bret Barkelew <[email protected]> Cc: Michael D Kinney <[email protected]> Cc: Liming Gao <[email protected]> Cc: Sami Mujawar <[email protected]> Signed-off-by: Pierre Gondois <[email protected]> --- .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)) 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 (#76906): https://edk2.groups.io/g/devel/message/76906 Mute This Topic: https://groups.io/mt/83732991/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
