mirror_edk2/BaseTools/Source/Python
Yonghong Zhu 725cdb8fbf BaseTools: Fix nmake failure due to command-line length limitation
NMAKE is limited to command-line length of 4096 characters. Due to the
large number of /I directives specified on command line (one per include
directory), the path length of WORKSPACE is multiplied by the number of
/I directives and can exceed the limit.
This patch:
1. Add new build option -l, --cmd-len to set the maximum command line
length, default value is 4096.
2. Generate the response file only if the command line length exceed its
maximum characters (default is 4096) when build the module. Cover
PP_FLAGS, CC_FLAGS, VFRPP_FLAGS, APP_FLAGS, ASLPP_FLAGS, ASLCC_FLAGS and
ASM_FLAGS.
3. The content of the response file is combine from the FLAGS option and
INC option.
4. When build failure, it would print out the response file's file
location and its content.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-03-22 17:16:49 +08:00
..
AutoGen BaseTools: Fix nmake failure due to command-line length limitation 2016-03-22 17:16:49 +08:00
BPDG BaseTools/BPDG: Fix the bug to get the PCD Size 2016-03-14 11:33:12 +08:00
build BaseTools: Fix nmake failure due to command-line length limitation 2016-03-22 17:16:49 +08:00
Common BaseTools: Fix nmake failure due to command-line length limitation 2016-03-22 17:16:49 +08:00
CommonDataClass
Ecc
Eot
GenFds
GenPatchPcdTable
PatchPcdValue
Rsa2048Sha256Sign
Table
TargetTool
Trim
UPT
Workspace
GNUmakefile
Makefile BaseTools: Support recent versions of cx_freeze. 2016-03-15 17:03:10 +08:00
sitecustomize.py