回复: [edk2-devel] [PATCH 1/1] BaseTools/Scripts/PatchCheck.py: Allow tab in Makefile

gaoliming via groups.io gaoliming=byosoft.com.cn at groups.io
Thu Oct 20 09:28:56 UTC 2022


Reviewed-by: Liming Gao <gaoliming at byosoft.com.cn>

> -----邮件原件-----
> 发件人: Feng, Bob C <bob.c.feng at intel.com>
> 发送时间: 2022年10月19日 9:46
> 收件人: devel at edk2.groups.io; Feng, Bob C <bob.c.feng at intel.com>
> 抄送: Gao, Liming <gaoliming at byosoft.com.cn>; Chen, Christine
> <yuwei.chen at intel.com>
> 主题: RE: [edk2-devel] [PATCH 1/1] BaseTools/Scripts/PatchCheck.py: Allow
> tab in Makefile
> 
> Hi Liming, Christine,
> 
> Please help review this patch.
> 
> This patch can unblock the CI test for the change of Makefile/GNUmakefile.
> https://github.com/tianocore/edk2/pull/3436
> 
> 
> Thanks,
> Bob
> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Bob Feng
> Sent: Sunday, October 16, 2022 11:41 AM
> To: devel at edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng at intel.com>; Gao, Liming
> <gaoliming at byosoft.com.cn>; Chen, Christine <yuwei.chen at intel.com>
> Subject: [edk2-devel] [PATCH 1/1] BaseTools/Scripts/PatchCheck.py: Allow
> tab in Makefile
> 
> The syntax for Makefiles requires that indented lines s tart with a tab,
but not
> a space.
> 
> This change of PatchCheck.py make the patch for Makefile/GNUmakefile pass
> the PatchCheck.py.
> 
> Signed-off-by: Bob Feng <bob.c.feng at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen at intel.com>
> ---
>  BaseTools/Scripts/PatchCheck.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/BaseTools/Scripts/PatchCheck.py
> b/BaseTools/Scripts/PatchCheck.py index 63e6223f8ebc..475b3a8c27d9
> 100755
> --- a/BaseTools/Scripts/PatchCheck.py
> +++ b/BaseTools/Scripts/PatchCheck.py
> @@ -383,6 +383,9 @@ class GitDiffCheck:
>                      #
>                      self.force_crlf = False
>                      self.force_notabs = False
> +                if os.path.basename(self.filename) == 'GNUmakefile' or \
> +                   os.path.basename(self.filename) == 'Makefile':
> +                    self.force_notabs = False
>              elif len(line.rstrip()) != 0:
>                  self.format_error("didn't find diff command")
>              self.line_num += 1
> --
> 2.37.0.windows.1
> 
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#95423): https://edk2.groups.io/g/devel/message/95423
Mute This Topic: https://groups.io/mt/94450055/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list