diff options
author | Bob Feng <bob.c.feng@intel.com> | 2022-10-16 11:41:05 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-10-22 07:01:41 +0000 |
commit | 913a308df934952bcbedacb6baa8bd023a25b978 (patch) | |
tree | a4d993186d68889a9359252b135231ff44fb1f25 /BaseTools | |
parent | c6720db5ddffec747bb0b2830e528511b1a4bfb2 (diff) | |
download | edk2-913a308df934952bcbedacb6baa8bd023a25b978.tar.gz edk2-913a308df934952bcbedacb6baa8bd023a25b978.tar.bz2 edk2-913a308df934952bcbedacb6baa8bd023a25b978.zip |
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>
Diffstat (limited to 'BaseTools')
-rwxr-xr-x | BaseTools/Scripts/PatchCheck.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index 63e6223f8e..475b3a8c27 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
|