From nobody Mon Nov 25 04:50:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77537+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77537+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1625605007; cv=none; d=zohomail.com; s=zohoarc; b=crBAQwVUaElL1K2UtX+oDcYQ9hXh0mY/FiU23cB9v/JA1/dasH9YNjXU742EGG4EnZmzCq083Uvp/gIfbX39HfGIh8h+PngLBPRHc7bvi9NhiKAUILUgCf4oyx8Kfnip3OEWchCf8KCCXaRDMOfYHBb4hfdXe25q6aBUOmaHG80= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625605006; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=bCuNDvUGy0UaFyWoNFYzgPVNrqo6K5LIPDn98kiw03s=; b=IYtHNJgt7dM1PDyAwzg9AjbYsQh38YMKbsA/E3h9Yrq6cHU6uCbd0BcDmSkQLppKrdAAi3D/jf6nOCGlQOIr2rXmi6gmZPz34eR60pPXfGAXGzx7gVk1XfQoQWub91ZqCfWxyy4WOoA1a1C9Kj4pGEaoCIrCbvrnO2/wrCUmBpo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77537+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 16256050069961022.7564990596526; Tue, 6 Jul 2021 13:56:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id LPbbYY1788612xLGJsI4q9wc; Tue, 06 Jul 2021 13:56:46 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.12349.1625605001097711616 for ; Tue, 06 Jul 2021 13:56:41 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BFB2B106F; Tue, 6 Jul 2021 13:56:40 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.77.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1E8803F5A1; Tue, 6 Jul 2021 13:56:38 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH v2 4/4] .pytool/EccCheck: Set PACKAGES_PATH env var in Ecc Date: Tue, 6 Jul 2021 21:55:41 +0100 Message-Id: <20210706205541.9176-5-Pierre.Gondois@arm.com> In-Reply-To: <20210706205541.9176-1-Pierre.Gondois@arm.com> References: <20210706205541.9176-1-Pierre.Gondois@arm.com> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: NQI1TSNDh0c8yQaW52V6aEGFx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1625605006; bh=X7L2KnHWPPkfsGkPOGeNToR4V5JkJqrmJcUb1jrGuak=; h=Date:From:Reply-To:Subject:To; b=vcrnpR347mkSg1zJcvJoVHf3mS4o5xo43uF/l2sXdsNp2zfKwrh12ZM3GnftDFt8U7T Z8omzSM+rKfPytJoRlAGw9n3yi2j6KdwB4uwnluFDzO2Vc4qW6RG2rH25rcPXKGNsv4n9 ouHe37YDq39NJkZokmGdnD/SITU2Tb91ALs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1625605008972100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois 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 Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Pierre Gondois Reviewed-by: Bob Feng --- Notes: v2: - Use ';' path separator for Windows host [Liming] .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..2d0612269b2e 100644 --- a/.pytool/Plugin/EccCheck/EccCheck.py +++ b/.pytool/Plugin/EccCheck/EccCheck.py @@ -67,6 +67,7 @@ class EccCheck(ICiBuildPlugin): env =3D 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.Pac= kagePathList)) self.ECC_PASS =3D True self.ApplyConfig(pkgconfig, workspace_path, basetools_path, packag= ename) modify_dir_list =3D self.GetModifyDir(packagename) --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77537): https://edk2.groups.io/g/devel/message/77537 Mute This Topic: https://groups.io/mt/84030568/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-