From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web08.6558.1631841008522569346 for ; Thu, 16 Sep 2021 18:10:10 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 17 Sep 2021 09:10:02 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Yuwei Chen'" , Cc: "'Bob Feng'" References: <20210916065911.716-1-yuwei.chen@intel.com> In-Reply-To: <20210916065911.716-1-yuwei.chen@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggMS8xXSBCYXNlVG9vbHM6IENoYW5nZSBSZWFsUGF0aCB0byBBYnNQYXRo?= Date: Fri, 17 Sep 2021 09:10:03 +0800 Message-ID: <00be01d7ab60$bf4e0350$3dea09f0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLUU2w/yVsh79swhMbJgtq9V+xWyKmuGl/g Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Is there any other case to use RealPath in BaseTools? Or, have you = confirm that all RealPath usage have been removed? Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Yuwei Chen > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA9=D4=C216=C8=D5 14:59 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Bob Feng ; Liming Gao > > =D6=F7=CC=E2: [PATCH 1/1] BaseTools: Change RealPath to AbsPath >=20 > Currently the realpath is used when parse modules, which shows the > path with a drive letter in build log. In Windows 'subst' comand is > used to associates a path with a drive letter, when use the mapped > drive letter for build, with realpath function the build log will > have different disk letter info which will cause confusion. In this > situation, if use adspath function to show the path info, it will keep > same letter with the mapped drive letter, which avoids confusion. > This patch modifies the realpath to abspath. >=20 > Cc: Bob Feng > Cc: Liming Gao > Signed-off-by: Yuwei Chen > --- > BaseTools/Source/Python/GenFds/FfsInfStatement.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/BaseTools/Source/Python/GenFds/FfsInfStatement.py > b/BaseTools/Source/Python/GenFds/FfsInfStatement.py > index 20573ca28d2f..568efb6d7685 100644 > --- a/BaseTools/Source/Python/GenFds/FfsInfStatement.py > +++ b/BaseTools/Source/Python/GenFds/FfsInfStatement.py > @@ -707,8 +707,8 @@ class FfsInfStatement(FfsInfStatementClassObject): > FileName, > 'DEBUG' > ) > - OutputPath =3D os.path.realpath(OutputPath) > - DebugPath =3D os.path.realpath(DebugPath) > + OutputPath =3D os.path.abspath(OutputPath) > + DebugPath =3D os.path.abspath(DebugPath) > return OutputPath, DebugPath >=20 > ## __GenSimpleFileSection__() method > -- > 2.26.1.windows.1