From 7806713f00e92b37799ef920daae3ebf14c5b07f Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Fri, 27 Oct 2023 08:15:51 -0700 Subject: BaseTools: Plugin: Integration of edk2-pytools Performs Integration instructions necessary to upgrade edk2-pytool-library to 0.19.3 and edk2-pytool-extensions to 0.25.1. This includes resolving the deprecation of builder.mws and replacing it with builder.edk2path functionality. Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Joey Vagedes Message-Id: <20231027151551.1043941-3-joeyvagedes@microsoft.com> Reviewed-by: Rebecca Cran Reviewed-by: Michael Kubacki --- .../DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py b/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py index b154466602..aa3a2bbcab 100644 --- a/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py +++ b/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py @@ -58,12 +58,12 @@ class DebugMacroCheckBuildPlugin(IUefiBuildPlugin): if "no-target" in build_target: return 0 - pp = builder.pp.split(os.pathsep) - edk2 = Edk2Path(builder.ws, pp) + edk2 = builder.edk2path package = edk2.GetContainingPackage( - builder.mws.join(builder.ws, - builder.env.GetValue( - "ACTIVE_PLATFORM"))) + builder.edk2path.GetAbsolutePathOnThisSystemFromEdk2RelativePath( + builder.env.GetValue("ACTIVE_PLATFORM") + ) + ) package_path = Path( edk2.GetAbsolutePathOnThisSystemFromEdk2RelativePath( package)) -- cgit v1.2.3