mirror of https://github.com/acidanthera/audk.git
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@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
c6720db5dd
commit
913a308df9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue