diff options
author | Bob Feng <bob.c.feng@intel.com> | 2020-02-27 22:25:24 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-02 02:36:25 +0000 |
commit | 2be4828af1c92a848af90429a9a0b44544c80553 (patch) | |
tree | 347571ed2df979714e97980ab92aae32525f8928 | |
parent | edfe16a6d9f8c6830d7ad93ee7616225fe4e9c13 (diff) | |
download | edk2-2be4828af1c92a848af90429a9a0b44544c80553.tar.gz edk2-2be4828af1c92a848af90429a9a0b44544c80553.tar.bz2 edk2-2be4828af1c92a848af90429a9a0b44544c80553.zip |
BaseTools: Remove invalid leading space before !INCLUDE in Makefile
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2563
This patch is to fix a incremental build regression bug
which happen when using nmake. That's introduced by 818283de3f6d.
If there is white space before !INCLUDE instruction, nmake will not
process it. Source code's dependent header files are listed in
${deps_file} file, if it's not included successfully, nmake will
not detect the change of those header file.
This patch has been verified in Windows with VS2015 and Linux with GCC5.
The header file add/modify/delete can trig the incremental build with this fix.
There is no impact on the clean build.
Cc: Andrew Fish <afish@apple.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Tested-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | BaseTools/Source/Python/AutoGen/IncludesAutoGen.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py index 0a6314266f..720d93395a 100644 --- a/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py @@ -52,17 +52,17 @@ class IncludesAutoGen(): EdkLogger.error("build", PARAMETER_MISSING, Message="No Make path available.")
elif "nmake" in MakePath:
_INCLUDE_DEPS_TEMPLATE = TemplateString('''
- ${BEGIN}
- !IF EXIST(${deps_file})
- !INCLUDE ${deps_file}
- !ENDIF
- ${END}
+${BEGIN}
+!IF EXIST(${deps_file})
+!INCLUDE ${deps_file}
+!ENDIF
+${END}
''')
else:
_INCLUDE_DEPS_TEMPLATE = TemplateString('''
- ${BEGIN}
- -include ${deps_file}
- ${END}
+${BEGIN}
+-include ${deps_file}
+${END}
''')
try:
|