I will merge tomorrow. Mike
> -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Marvin Häuser > Sent: Tuesday, February 7, 2023 4:49 AM > To: Kinney, Michael D <michael.d.kin...@intel.com> > Cc: devel@edk2.groups.io; Feng, Bob C <bob.c.f...@intel.com>; Chen, Christine > <yuwei.c...@intel.com>; Sean Brogan > <sean.bro...@microsoft.com>; Michael Kubacki <mikub...@linux.microsoft.com>; > Gao, Liming <gaolim...@byosoft.com.cn>; Pedro Falcato > <pedro.falc...@gmail.com> > Subject: Re: [edk2-devel] [PATCH 1/1] .pytool/Plugin/EccCheck: Add > PACKAGES_PATH support > > Hi Mike, > > This patch was reviewed by Michael Kubacki. It is required to enable > edk2-platforms CI for Ext4Pkg, upstream workarounds on the > edk2-platforms side would be *very* ugly. Also, the change is trivial and > basically just a copy-and-paste from other pytools. Can we > please merge this into the next stable tag? > > Best regards, > Marvin > > > On 1. Feb 2023, at 20:56, Kinney, Michael D <michael.d.kin...@intel.com> > > wrote: > > > > +Bob > > +Christine > > > > > >> -----Original Message----- > >> From: Marvin Häuser <mhaeu...@posteo.de> > >> Sent: Wednesday, February 1, 2023 6:48 AM > >> To: devel@edk2.groups.io > >> Cc: Marvin Häuser <mhaeu...@posteo.de>; Sean Brogan > >> <sean.bro...@microsoft.com>; Michael Kubacki > >> <mikub...@linux.microsoft.com>; Kinney, Michael D > >> <michael.d.kin...@intel.com>; Gao, Liming > >> <gaolim...@byosoft.com.cn>; Pedro Falcato <pedro.falc...@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.bro...@microsoft.com> > >> Cc: Michael Kubacki <mikub...@linux.microsoft.com> > >> Cc: Michael D Kinney <michael.d.kin...@intel.com> > >> Cc: Liming Gao <gaolim...@byosoft.com.cn> > >> Cc: Pedro Falcato <pedro.falc...@gmail.com> > >> Signed-off-by: Marvin Häuser <mhaeu...@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 > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99787): https://edk2.groups.io/g/devel/message/99787 Mute This Topic: https://groups.io/mt/96677674/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-