From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "Marvin Häuser" <mhaeuser@posteo.de>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
"Feng, Bob C" <bob.c.feng@intel.com>,
"Chen, Christine" <yuwei.chen@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>,
Michael Kubacki <mikuback@linux.microsoft.com>,
"Gao, Liming" <gaoliming@byosoft.com.cn>,
Pedro Falcato <pedro.falcato@gmail.com>,
"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: [PATCH 1/1] .pytool/Plugin/EccCheck: Add PACKAGES_PATH support
Date: Wed, 1 Feb 2023 19:56:46 +0000 [thread overview]
Message-ID: <CO1PR11MB4929DB1299C470E4A266BB95D2D19@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230201144750.71495-1-mhaeuser@posteo.de>
+Bob
+Christine
> -----Original Message-----
> From: Marvin Häuser <mhaeuser@posteo.de>
> Sent: Wednesday, February 1, 2023 6:48 AM
> To: devel@edk2.groups.io
> Cc: Marvin Häuser <mhaeuser@posteo.de>; Sean Brogan <sean.brogan@microsoft.com>; Michael Kubacki
> <mikuback@linux.microsoft.com>; Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <gaoliming@byosoft.com.cn>; Pedro Falcato <pedro.falcato@gmail.com>
> Subject: [PATCH 1/1] .pytool/Plugin/EccCheck: Add PACKAGES_PATH support
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4326
>
> EccBuild currently assumes all packages reside in WORKSPACE. However,
> this is obviously not the case for many setups. Most notably, Ext4Pkg
> is located in edk2-platforms/Features and thus cannot be in WORKSPACE
> in any reasonable setup.
>
> Use Edk2Path to locate the package in WORKSPACE and PACKAGES_PATH.
>
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Cc: Michael Kubacki <mikuback@linux.microsoft.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Pedro Falcato <pedro.falcato@gmail.com>
> Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
> ---
> .pytool/Plugin/EccCheck/EccCheck.py | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/.pytool/Plugin/EccCheck/EccCheck.py b/.pytool/Plugin/EccCheck/EccCheck.py
> index 4fbc67765fdf..7235fcb55cea 100644
> --- a/.pytool/Plugin/EccCheck/EccCheck.py
> +++ b/.pytool/Plugin/EccCheck/EccCheck.py
> @@ -69,6 +69,13 @@ class EccCheck(ICiBuildPlugin):
> env.set_shell_var('PACKAGES_PATH', os.pathsep.join(Edk2pathObj.PackagePathList))
> self.ECC_PASS = True
>
> + abs_pkg_path = Edk2pathObj.GetAbsolutePathOnThisSystemFromEdk2RelativePath(packagename)
> +
> + if abs_pkg_path is None:
> + tc.SetSkipped()
> + tc.LogStdError("No Package folder {0}".format(abs_pkg_path))
> + return 0
> +
> # Create temp directory
> temp_path = os.path.join(workspace_path, 'Build', '.pytool', 'Plugin', 'EccCheck')
> try:
> @@ -77,7 +84,7 @@ class EccCheck(ICiBuildPlugin):
> shutil.rmtree(temp_path)
> # Copy package being scanned to temp_path
> shutil.copytree (
> - os.path.join(workspace_path, packagename),
> + abs_pkg_path,
> os.path.join(temp_path, packagename),
> symlinks=True
> )
> --
> 2.39.1
next prev parent reply other threads:[~2023-02-01 19:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 14:47 [PATCH 1/1] .pytool/Plugin/EccCheck: Add PACKAGES_PATH support Marvin Häuser
2023-02-01 18:09 ` Pedro Falcato
2023-02-01 19:56 ` Michael D Kinney [this message]
2023-02-07 12:48 ` Marvin Häuser
2023-02-08 7:33 ` [edk2-devel] " Michael D Kinney
2023-02-08 20:24 ` Michael D Kinney
2023-02-02 1:04 ` Michael Kubacki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CO1PR11MB4929DB1299C470E4A266BB95D2D19@CO1PR11MB4929.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox